LibreOffice Module desktop (master) 1
Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Private Types | Private Attributes | List of all members
dp_registry::backend::PackageRegistryBackend Class Referenceabstract

#include <dp_backend.h>

Inheritance diagram for dp_registry::backend::PackageRegistryBackend:
[legend]
Collaboration diagram for dp_registry::backend::PackageRegistryBackend:
[legend]

Public Member Functions

css::uno::Reference< css::uno::XComponentContext > const & getComponentContext () const
 
OUString const & getCachePath () const
 
bool transientMode () const
 
const OUString & getContext () const
 
virtual void SAL_CALL disposing (css::lang::EventObject const &evt) override
 
virtual css::uno::Reference< css::deployment::XPackage > SAL_CALL bindPackage (OUString const &url, OUString const &mediaType, sal_Bool bRemoved, OUString const &identifier, css::uno::Reference< css::ucb::XCommandEnvironment > const &xCmdEnv) override
 

Static Public Member Functions

static OUString StrRegisteringPackage ()
 
static OUString StrRevokingPackage ()
 

Protected Types

enum class  Context {
  Unknown ,
  User ,
  Shared ,
  Bundled ,
  Tmp ,
  Document
}
 

Protected Member Functions

virtual css::uno::Reference< css::deployment::XPackage > bindPackage_ (OUString const &url, OUString const &mediaType, bool bRemoved, OUString const &identifier, css::uno::Reference< css::ucb::XCommandEnvironment > const &xCmdEnv)=0
 
void check ()
 
virtual void SAL_CALL disposing () override
 
virtual ~PackageRegistryBackend () override
 
 PackageRegistryBackend (css::uno::Sequence< css::uno::Any > const &args, css::uno::Reference< css::uno::XComponentContext > const &xContext)
 
OUString createFolder (css::uno::Reference< css::ucb::XCommandEnvironment > const &xCmdEnv)
 
void deleteUnusedFolders (std::vector< OUString > const &usedFolders)
 

Static Protected Member Functions

static OUString StrCannotDetectMediaType ()
 
static OUString StrUnsupportedMediaType ()
 
static void deleteTempFolder (OUString const &folderUrl)
 

Protected Attributes

OUString m_cachePath
 
css::uno::Reference< css::uno::XComponentContext > m_xComponentContext
 
OUString m_context
 
enum dp_registry::backend::PackageRegistryBackend::Context m_eContext
 
- Protected Attributes inherited from cppu::BaseMutex
mutable::osl::Mutex m_aMutex
 

Private Types

typedef std::unordered_map< OUString, css::uno::Reference< css::deployment::XPackage > > t_string2ref
 

Private Attributes

t_string2ref m_bound
 

Detailed Description

Definition at line 195 of file dp_backend.h.

Member Typedef Documentation

◆ t_string2ref

typedef std::unordered_map< OUString, css::uno::Reference<css::deployment::XPackage> > dp_registry::backend::PackageRegistryBackend::t_string2ref
private

Definition at line 206 of file dp_backend.h.

Member Enumeration Documentation

◆ Context

Enumerator
Unknown 
User 
Shared 
Bundled 
Tmp 
Document 

Definition at line 215 of file dp_backend.h.

Constructor & Destructor Documentation

◆ ~PackageRegistryBackend()

dp_registry::backend::PackageRegistryBackend::~PackageRegistryBackend ( )
overrideprotectedvirtual

Definition at line 58 of file dp_backend.cxx.

◆ PackageRegistryBackend()

dp_registry::backend::PackageRegistryBackend::PackageRegistryBackend ( css::uno::Sequence< css::uno::Any > const &  args,
css::uno::Reference< css::uno::XComponentContext > const &  xContext 
)
protected

Member Function Documentation

◆ bindPackage()

Reference< deployment::XPackage > dp_registry::backend::PackageRegistryBackend::bindPackage ( OUString const &  url,
OUString const &  mediaType,
sal_Bool  bRemoved,
OUString const &  identifier,
css::uno::Reference< css::ucb::XCommandEnvironment > const &  xCmdEnv 
)
overridevirtual

◆ bindPackage_()

virtual css::uno::Reference< css::deployment::XPackage > dp_registry::backend::PackageRegistryBackend::bindPackage_ ( OUString const &  url,
OUString const &  mediaType,
bool  bRemoved,
OUString const &  identifier,
css::uno::Reference< css::ucb::XCommandEnvironment > const &  xCmdEnv 
)
protectedpure virtual

Referenced by bindPackage().

◆ check()

void dp_registry::backend::PackageRegistryBackend::check ( )
protected

Definition at line 105 of file dp_backend.cxx.

References cppu::BaseMutex::m_aMutex.

Referenced by bindPackage().

◆ createFolder()

OUString dp_registry::backend::PackageRegistryBackend::createFolder ( css::uno::Reference< css::ucb::XCommandEnvironment > const &  xCmdEnv)
protected

◆ deleteTempFolder()

void dp_registry::backend::PackageRegistryBackend::deleteTempFolder ( OUString const &  folderUrl)
staticprotected

Definition at line 228 of file dp_backend.cxx.

References dp_misc::erase_path().

Referenced by deleteUnusedFolders().

◆ deleteUnusedFolders()

void dp_registry::backend::PackageRegistryBackend::deleteUnusedFolders ( std::vector< OUString > const &  usedFolders)
protected

◆ disposing() [1/2]

void dp_registry::backend::PackageRegistryBackend::disposing ( )
overrideprotectedvirtual

Definition at line 116 of file dp_backend.cxx.

References Any, Exception, m_bound, and m_xComponentContext.

◆ disposing() [2/2]

virtual void SAL_CALL dp_registry::backend::PackageRegistryBackend::disposing ( css::lang::EventObject const &  evt)
overridevirtual

◆ getCachePath()

OUString const & dp_registry::backend::PackageRegistryBackend::getCachePath ( ) const
inline

Definition at line 263 of file dp_backend.h.

References m_cachePath.

Referenced by createFolder(), and deleteUnusedFolders().

◆ getComponentContext()

css::uno::Reference< css::uno::XComponentContext > const & dp_registry::backend::PackageRegistryBackend::getComponentContext ( ) const
inline

Definition at line 261 of file dp_backend.h.

References m_xComponentContext.

◆ getContext()

const OUString & dp_registry::backend::PackageRegistryBackend::getContext ( ) const
inline

Definition at line 266 of file dp_backend.h.

References m_context.

Referenced by dp_registry::backend::Package::getRepositoryName().

◆ StrCannotDetectMediaType()

static OUString dp_registry::backend::PackageRegistryBackend::StrCannotDetectMediaType ( )
inlinestaticprotected

Definition at line 219 of file dp_backend.h.

References DpResId().

◆ StrRegisteringPackage()

static OUString dp_registry::backend::PackageRegistryBackend::StrRegisteringPackage ( )
inlinestatic

Definition at line 257 of file dp_backend.h.

References DpResId().

Referenced by dp_registry::backend::Package::processPackage_impl().

◆ StrRevokingPackage()

static OUString dp_registry::backend::PackageRegistryBackend::StrRevokingPackage ( )
inlinestatic

Definition at line 258 of file dp_backend.h.

References DpResId().

Referenced by dp_registry::backend::Package::processPackage_impl().

◆ StrUnsupportedMediaType()

static OUString dp_registry::backend::PackageRegistryBackend::StrUnsupportedMediaType ( )
inlinestaticprotected

Definition at line 220 of file dp_backend.h.

References DpResId().

◆ transientMode()

bool dp_registry::backend::PackageRegistryBackend::transientMode ( ) const
inline

Definition at line 264 of file dp_backend.h.

References m_cachePath.

Member Data Documentation

◆ m_bound

t_string2ref dp_registry::backend::PackageRegistryBackend::m_bound
private

Definition at line 207 of file dp_backend.h.

Referenced by bindPackage(), and disposing().

◆ m_cachePath

OUString dp_registry::backend::PackageRegistryBackend::m_cachePath
protected

Definition at line 210 of file dp_backend.h.

Referenced by getCachePath(), PackageRegistryBackend(), and transientMode().

◆ m_context

OUString dp_registry::backend::PackageRegistryBackend::m_context
protected

Definition at line 213 of file dp_backend.h.

Referenced by getContext(), and PackageRegistryBackend().

◆ m_eContext

enum dp_registry::backend::PackageRegistryBackend::Context dp_registry::backend::PackageRegistryBackend::m_eContext
protected

Referenced by PackageRegistryBackend().

◆ m_xComponentContext

css::uno::Reference<css::uno::XComponentContext> dp_registry::backend::PackageRegistryBackend::m_xComponentContext
protected

Definition at line 211 of file dp_backend.h.

Referenced by deleteUnusedFolders(), disposing(), and getComponentContext().


The documentation for this class was generated from the following files: