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  Context {
  Context::Unknown,
  Context::User,
  Context::Shared,
  Context::Bundled,
  Context::Tmp,
  Context::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)
 
- Protected Member Functions inherited from dp_misc::MutexHolder
::osl::Mutex & getMutex () const
 

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
 

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 199 of file dp_backend.h.

Member Typedef Documentation

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

Definition at line 210 of file dp_backend.h.

Member Enumeration Documentation

Enumerator
Unknown 
User 
Shared 
Bundled 
Tmp 
Document 

Definition at line 219 of file dp_backend.h.

Constructor & Destructor Documentation

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

Definition at line 59 of file dp_backend.cxx.

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

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
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().

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

Definition at line 106 of file dp_backend.cxx.

References dp_misc::MutexHolder::getMutex().

Referenced by bindPackage().

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

Definition at line 229 of file dp_backend.cxx.

References dp_misc::erase_path().

Referenced by deleteUnusedFolders().

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

Definition at line 117 of file dp_backend.cxx.

References Any, Exception, cppu::getCaughtException(), m_bound, and m_xComponentContext.

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

Definition at line 267 of file dp_backend.h.

References m_cachePath.

Referenced by createFolder(), and deleteUnusedFolders().

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

Definition at line 270 of file dp_backend.h.

References m_context.

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

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

Definition at line 223 of file dp_backend.h.

References DpResId().

Referenced by dp_registry::backend::sfwk::BackendImpl::bindPackage_().

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

Definition at line 261 of file dp_backend.h.

References DpResId().

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

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

Definition at line 262 of file dp_backend.h.

References DpResId().

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

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

Definition at line 224 of file dp_backend.h.

References DpResId().

Referenced by dp_registry::backend::sfwk::BackendImpl::bindPackage_().

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

Definition at line 268 of file dp_backend.h.

Member Data Documentation

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

Definition at line 211 of file dp_backend.h.

Referenced by bindPackage(), and disposing().

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

Definition at line 214 of file dp_backend.h.

Referenced by getCachePath(), and PackageRegistryBackend().

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

Definition at line 217 of file dp_backend.h.

Referenced by getContext(), and PackageRegistryBackend().

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

Definition at line 215 of file dp_backend.h.

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


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