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

#include <dp_backend.h>

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

Classes

class  TypeInfo
 

Public Member Functions

virtual void SAL_CALL dispose () override
 
virtual void SAL_CALL addEventListener (css::uno::Reference< css::lang::XEventListener > const &xListener) override
 
virtual void SAL_CALL removeEventListener (css::uno::Reference< css::lang::XEventListener > const &xListener) override
 
virtual void SAL_CALL addModifyListener (css::uno::Reference< css::util::XModifyListener > const &xListener) override
 
virtual void SAL_CALL removeModifyListener (css::uno::Reference< css::util::XModifyListener > const &xListener) override
 
virtual css::uno::Reference< css::task::XAbortChannel > SAL_CALL createAbortChannel () override
 
virtual css::beans::Optional< css::beans::Ambiguous< sal_Bool > > SAL_CALL isRegistered (css::uno::Reference< css::task::XAbortChannel > const &xAbortChannel, css::uno::Reference< css::ucb::XCommandEnvironment > const &xCmdEnv) override
 
virtual ::sal_Int32 SAL_CALL checkPrerequisites (const css::uno::Reference< css::task::XAbortChannel > &xAbortChannel, const css::uno::Reference< css::ucb::XCommandEnvironment > &xCmdEnv, sal_Bool noLicenseChecking) override
 
virtual ::sal_Bool SAL_CALL checkDependencies (const css::uno::Reference< css::ucb::XCommandEnvironment > &xCmdEnv) override
 
virtual void SAL_CALL registerPackage (sal_Bool startup, css::uno::Reference< css::task::XAbortChannel > const &xAbortChannel, css::uno::Reference< css::ucb::XCommandEnvironment > const &xCmdEnv) override
 
virtual void SAL_CALL revokePackage (sal_Bool startup, css::uno::Reference< css::task::XAbortChannel > const &xAbortChannel, css::uno::Reference< css::ucb::XCommandEnvironment > const &xCmdEnv) override
 
virtual sal_Bool SAL_CALL isBundle () override
 
virtual css::uno::Sequence< css::uno::Reference< css::deployment::XPackage > > SAL_CALL getBundle (css::uno::Reference< css::task::XAbortChannel > const &xAbortChannel, css::uno::Reference< css::ucb::XCommandEnvironment > const &xCmdEnv) override
 
virtual OUString SAL_CALL getName () override
 
virtual css::beans::Optional< OUString > SAL_CALL getIdentifier () override
 
virtual OUString SAL_CALL getVersion () override
 
virtual OUString SAL_CALL getURL () override
 
virtual OUString SAL_CALL getDisplayName () override
 
virtual OUString SAL_CALL getDescription () override
 
virtual OUString SAL_CALL getLicenseText () override
 
virtual css::uno::Sequence< OUString > SAL_CALL getUpdateInformationURLs () override
 
virtual css::beans::StringPair SAL_CALL getPublisherInfo () override
 
virtual css::uno::Reference< css::graphic::XGraphic > SAL_CALL getIcon (sal_Bool bHighContrast) override
 
virtual css::uno::Reference< css::deployment::XPackageTypeInfo > SAL_CALL getPackageType () override
 
virtual void SAL_CALL exportTo (OUString const &destFolderURL, OUString const &newTitle, sal_Int32 nameClashAction, css::uno::Reference< css::ucb::XCommandEnvironment > const &xCmdEnv) override
 
virtual OUString SAL_CALL getRepositoryName () override
 
virtual css::beans::Optional< OUString > SAL_CALL getRegistrationDataURL () override
 
virtual sal_Bool SAL_CALL isRemoved () override
 

Protected Member Functions

void check () const
 
void fireModified ()
 
virtual void SAL_CALL disposing () override
 
void checkAborted (::rtl::Reference< ::dp_misc::AbortChannel > const &abortChannel)
 
virtual css::beans::Optional< css::beans::Ambiguous< sal_Bool > > isRegistered_ (::osl::ResettableMutexGuard &guard, ::rtl::Reference< ::dp_misc::AbortChannel > const &abortChannel, css::uno::Reference< css::ucb::XCommandEnvironment > const &xCmdEnv)=0
 
virtual void processPackage_ (::osl::ResettableMutexGuard &guard, bool registerPackage, bool startup, ::rtl::Reference< ::dp_misc::AbortChannel > const &abortChannel, css::uno::Reference< css::ucb::XCommandEnvironment > const &xCmdEnv)=0
 
virtual ~Package () override
 
 Package (::rtl::Reference< PackageRegistryBackend > myBackend, OUString url, OUString name, OUString displayName, css::uno::Reference< css::deployment::XPackageTypeInfo > const &xPackageType, bool bRemoved, OUString identifier)
 

Protected Attributes

::rtl::Reference< PackageRegistryBackendm_myBackend
 
const OUString m_url
 
OUString m_name
 
OUString m_displayName
 
const css::uno::Reference< css::deployment::XPackageTypeInfo > m_xPackageType
 
const bool m_bRemoved
 
const OUString m_identifier
 
- Protected Attributes inherited from cppu::BaseMutex
mutable::osl::Mutex m_aMutex
 

Private Member Functions

PackageRegistryBackendgetMyBackend () const
 
void processPackage_impl (bool registerPackage, bool startup, css::uno::Reference< css::task::XAbortChannel > const &xAbortChannel, css::uno::Reference< css::ucb::XCommandEnvironment > const &xCmdEnv)
 

Detailed Description

Definition at line 47 of file dp_backend.h.

Constructor & Destructor Documentation

◆ ~Package()

dp_registry::backend::Package::~Package ( )
overrideprotectedvirtual

Definition at line 294 of file dp_backend.cxx.

◆ Package()

dp_registry::backend::Package::Package ( ::rtl::Reference< PackageRegistryBackend myBackend,
OUString  url,
OUString  name,
OUString  displayName,
css::uno::Reference< css::deployment::XPackageTypeInfo > const &  xPackageType,
bool  bRemoved,
OUString  identifier 
)
protected

Definition at line 299 of file dp_backend.cxx.

References aName, identifier, index, m_aMutex, m_bRemoved, m_name, m_name, m_url, m_url, name, and SAL_WARN_IF.

Member Function Documentation

◆ addEventListener()

void dp_registry::backend::Package::addEventListener ( css::uno::Reference< css::lang::XEventListener > const &  xListener)
overridevirtual

Definition at line 356 of file dp_backend.cxx.

◆ addModifyListener()

void dp_registry::backend::Package::addModifyListener ( css::uno::Reference< css::util::XModifyListener > const &  xListener)
overridevirtual

Definition at line 375 of file dp_backend.cxx.

References check().

◆ check()

void dp_registry::backend::Package::check ( ) const
protected

◆ checkAborted()

void dp_registry::backend::Package::checkAborted ( ::rtl::Reference< ::dp_misc::AbortChannel > const &  abortChannel)
protected

Definition at line 391 of file dp_backend.cxx.

◆ checkDependencies()

sal_Bool dp_registry::backend::Package::checkDependencies ( const css::uno::Reference< css::ucb::XCommandEnvironment > &  xCmdEnv)
override

Definition at line 426 of file dp_backend.cxx.

References m_bRemoved.

◆ checkPrerequisites()

sal_Int32 dp_registry::backend::Package::checkPrerequisites ( const css::uno::Reference< css::task::XAbortChannel > &  xAbortChannel,
const css::uno::Reference< css::ucb::XCommandEnvironment > &  xCmdEnv,
sal_Bool  noLicenseChecking 
)
override

Definition at line 415 of file dp_backend.cxx.

References m_bRemoved.

◆ createAbortChannel()

Reference< task::XAbortChannel > dp_registry::backend::Package::createAbortChannel ( )
overridevirtual

Definition at line 402 of file dp_backend.cxx.

References check().

◆ dispose()

void dp_registry::backend::Package::dispose ( void  )
overridevirtual

Definition at line 348 of file dp_backend.cxx.

◆ disposing()

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

Definition at line 329 of file dp_backend.cxx.

References m_myBackend.

◆ exportTo()

void dp_registry::backend::Package::exportTo ( OUString const &  destFolderURL,
OUString const &  newTitle,
sal_Int32  nameClashAction,
css::uno::Reference< css::ucb::XCommandEnvironment > const &  xCmdEnv 
)
overridevirtual

◆ fireModified()

void dp_registry::backend::Package::fireModified ( )
protected

Definition at line 552 of file dp_backend.cxx.

References cppu::OInterfaceContainerHelper::getElements(), and x.

Referenced by processPackage_impl().

◆ getBundle()

Sequence< Reference< deployment::XPackage > > dp_registry::backend::Package::getBundle ( css::uno::Reference< css::task::XAbortChannel > const &  xAbortChannel,
css::uno::Reference< css::ucb::XCommandEnvironment > const &  xCmdEnv 
)
overridevirtual

Definition at line 435 of file dp_backend.cxx.

◆ getDescription()

OUString dp_registry::backend::Package::getDescription ( )
overridevirtual

Definition at line 479 of file dp_backend.cxx.

References m_bRemoved.

◆ getDisplayName()

OUString dp_registry::backend::Package::getDisplayName ( )
overridevirtual

Definition at line 471 of file dp_backend.cxx.

References m_bRemoved, and m_displayName.

Referenced by processPackage_impl().

◆ getIcon()

uno::Reference< css::graphic::XGraphic > dp_registry::backend::Package::getIcon ( sal_Bool  bHighContrast)
overridevirtual

Definition at line 512 of file dp_backend.cxx.

References m_bRemoved.

◆ getIdentifier()

beans::Optional< OUString > dp_registry::backend::Package::getIdentifier ( )
overridevirtual

Definition at line 448 of file dp_backend.cxx.

References m_bRemoved, and m_identifier.

◆ getLicenseText()

OUString dp_registry::backend::Package::getLicenseText ( )
overridevirtual

Definition at line 487 of file dp_backend.cxx.

References m_bRemoved.

◆ getMyBackend()

PackageRegistryBackend * dp_registry::backend::Package::getMyBackend ( ) const
private

Definition at line 701 of file dp_backend.cxx.

References check(), and m_myBackend.

Referenced by exportTo(), and getRepositoryName().

◆ getName()

OUString dp_registry::backend::Package::getName ( )
overridevirtual

Definition at line 443 of file dp_backend.cxx.

References m_name.

Referenced by processPackage_impl().

◆ getPackageType()

Reference< deployment::XPackageTypeInfo > dp_registry::backend::Package::getPackageType ( )
overridevirtual

Definition at line 522 of file dp_backend.cxx.

References m_xPackageType.

◆ getPublisherInfo()

css::beans::StringPair dp_registry::backend::Package::getPublisherInfo ( )
overridevirtual

Definition at line 503 of file dp_backend.cxx.

References m_bRemoved.

◆ getRegistrationDataURL()

beans::Optional< OUString > dp_registry::backend::Package::getRegistrationDataURL ( )
overridevirtual

Definition at line 722 of file dp_backend.cxx.

References m_bRemoved.

◆ getRepositoryName()

OUString dp_registry::backend::Package::getRepositoryName ( )
overridevirtual

◆ getUpdateInformationURLs()

Sequence< OUString > dp_registry::backend::Package::getUpdateInformationURLs ( )
overridevirtual

Definition at line 495 of file dp_backend.cxx.

References m_bRemoved.

◆ getURL()

OUString dp_registry::backend::Package::getURL ( )
overridevirtual

Definition at line 465 of file dp_backend.cxx.

References m_url.

Referenced by exportTo().

◆ getVersion()

OUString dp_registry::backend::Package::getVersion ( )
overridevirtual

Definition at line 457 of file dp_backend.cxx.

References m_bRemoved.

◆ isBundle()

sal_Bool dp_registry::backend::Package::isBundle ( )
overridevirtual

Definition at line 409 of file dp_backend.cxx.

◆ isRegistered()

beans::Optional< beans::Ambiguous< sal_Bool > > dp_registry::backend::Package::isRegistered ( css::uno::Reference< css::task::XAbortChannel > const &  xAbortChannel,
css::uno::Reference< css::ucb::XCommandEnvironment > const &  xCmdEnv 
)
overridevirtual

Definition at line 572 of file dp_backend.cxx.

References Any, Exception, isRegistered_(), and cppu::BaseMutex::m_aMutex.

◆ isRegistered_()

virtual css::beans::Optional< css::beans::Ambiguous< sal_Bool > > dp_registry::backend::Package::isRegistered_ ( ::osl::ResettableMutexGuard &  guard,
::rtl::Reference< ::dp_misc::AbortChannel > const &  abortChannel,
css::uno::Reference< css::ucb::XCommandEnvironment > const &  xCmdEnv 
)
protectedpure virtual

◆ isRemoved()

sal_Bool dp_registry::backend::Package::isRemoved ( )
overridevirtual

Definition at line 729 of file dp_backend.cxx.

References m_bRemoved.

Referenced by processPackage_impl().

◆ processPackage_()

virtual void dp_registry::backend::Package::processPackage_ ( ::osl::ResettableMutexGuard &  guard,
bool  registerPackage,
bool  startup,
::rtl::Reference< ::dp_misc::AbortChannel > const &  abortChannel,
css::uno::Reference< css::ucb::XCommandEnvironment > const &  xCmdEnv 
)
protectedpure virtual

Referenced by processPackage_impl().

◆ processPackage_impl()

void dp_registry::backend::Package::processPackage_impl ( bool  registerPackage,
bool  startup,
css::uno::Reference< css::task::XAbortChannel > const &  xAbortChannel,
css::uno::Reference< css::ucb::XCommandEnvironment > const &  xCmdEnv 
)
private

◆ registerPackage()

void dp_registry::backend::Package::registerPackage ( sal_Bool  startup,
css::uno::Reference< css::task::XAbortChannel > const &  xAbortChannel,
css::uno::Reference< css::ucb::XCommandEnvironment > const &  xCmdEnv 
)
overridevirtual

Definition at line 681 of file dp_backend.cxx.

References m_bRemoved, and processPackage_impl().

◆ removeEventListener()

void dp_registry::backend::Package::removeEventListener ( css::uno::Reference< css::lang::XEventListener > const &  xListener)
overridevirtual

Definition at line 365 of file dp_backend.cxx.

◆ removeModifyListener()

void dp_registry::backend::Package::removeModifyListener ( css::uno::Reference< css::util::XModifyListener > const &  xListener)
overridevirtual

Definition at line 383 of file dp_backend.cxx.

References check().

◆ revokePackage()

void dp_registry::backend::Package::revokePackage ( sal_Bool  startup,
css::uno::Reference< css::task::XAbortChannel > const &  xAbortChannel,
css::uno::Reference< css::ucb::XCommandEnvironment > const &  xCmdEnv 
)
overridevirtual

Definition at line 692 of file dp_backend.cxx.

References processPackage_impl().

Member Data Documentation

◆ m_bRemoved

const bool dp_registry::backend::Package::m_bRemoved
protected

◆ m_displayName

OUString dp_registry::backend::Package::m_displayName
protected

Definition at line 60 of file dp_backend.h.

Referenced by getDisplayName().

◆ m_identifier

const OUString dp_registry::backend::Package::m_identifier
protected

Definition at line 64 of file dp_backend.h.

Referenced by getIdentifier().

◆ m_myBackend

::rtl::Reference<PackageRegistryBackend> dp_registry::backend::Package::m_myBackend
protected

Definition at line 57 of file dp_backend.h.

Referenced by disposing(), and getMyBackend().

◆ m_name

OUString dp_registry::backend::Package::m_name
protected

Definition at line 59 of file dp_backend.h.

Referenced by getName(), and Package().

◆ m_url

const OUString dp_registry::backend::Package::m_url
protected

Definition at line 58 of file dp_backend.h.

Referenced by getURL(), and Package().

◆ m_xPackageType

const css::uno::Reference<css::deployment::XPackageTypeInfo> dp_registry::backend::Package::m_xPackageType
protected

Definition at line 61 of file dp_backend.h.

Referenced by getPackageType().


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