LibreOffice Module ucb (master)  1
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
UniversalContentBroker Class Reference

#include <ucb.hxx>

Inheritance diagram for UniversalContentBroker:
[legend]
Collaboration diagram for UniversalContentBroker:
[legend]

Public Member Functions

 UniversalContentBroker (const css::uno::Reference< css::uno::XComponentContext > &xContext)
 
virtual ~UniversalContentBroker () override
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) override
 
virtual void SAL_CALL acquire () override throw ()
 
virtual void SAL_CALL release () override throw ()
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () override
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
virtual void SAL_CALL dispose () override
 
virtual void SAL_CALL addEventListener (const css::uno::Reference< css::lang::XEventListener > &Listener) override
 
virtual void SAL_CALL removeEventListener (const css::uno::Reference< css::lang::XEventListener > &Listener) override
 
virtual void SAL_CALL initialize (const css::uno::Sequence< css::uno::Any > &aArguments) override
 
virtual css::uno::Reference< css::ucb::XContentProvider > SAL_CALL registerContentProvider (const css::uno::Reference< css::ucb::XContentProvider > &Provider, const OUString &Scheme, sal_Bool ReplaceExisting) override
 
virtual void SAL_CALL deregisterContentProvider (const css::uno::Reference< css::ucb::XContentProvider > &Provider, const OUString &Scheme) override
 
virtual css::uno::Sequence< css::ucb::ContentProviderInfo > SAL_CALL queryContentProviders () override
 
virtual css::uno::Reference< css::ucb::XContentProvider > SAL_CALL queryContentProvider (const OUString &Identifier) override
 
virtual css::uno::Reference< css::ucb::XContent > SAL_CALL queryContent (const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier) override
 
virtual sal_Int32 SAL_CALL compareContentIds (const css::uno::Reference< css::ucb::XContentIdentifier > &Id1, const css::uno::Reference< css::ucb::XContentIdentifier > &Id2) override
 
virtual css::uno::Reference< css::ucb::XContentIdentifier > SAL_CALL createContentIdentifier (const OUString &ContentId) override
 
virtual sal_Int32 SAL_CALL createCommandIdentifier () override
 
virtual css::uno::Any SAL_CALL execute (const css::ucb::Command &aCommand, sal_Int32 CommandId, const css::uno::Reference< css::ucb::XCommandEnvironment > &Environment) override
 
virtual void SAL_CALL abort (sal_Int32 CommandId) override
 
virtual void SAL_CALL releaseCommandIdentifier (sal_Int32 aCommandId) override
 
virtual void SAL_CALL changesOccurred (const css::util::ChangesEvent &Event) override
 
virtual void SAL_CALL disposing (const css::lang::EventObject &Source) override
 
- Public Member Functions inherited from cppu::OWeakObject
 OWeakObject ()
 
 OWeakObject (const OWeakObject &)
 
OWeakObject &SAL_CALL operator= (const OWeakObject &)
 
virtual css::uno::Reference< css::uno::XAdapter > SAL_CALL queryAdapter () SAL_OVERRIDE
 
SAL_CALL operator css::uno::Reference< css::uno::XInterface > ()
 

Static Public Member Functions

static OUString getImplementationName_Static ()
 
static css::uno::Sequence< OUString > getSupportedServiceNames_Static ()
 
static css::uno::Reference< css::lang::XSingleServiceFactory > createServiceFactory (const css::uno::Reference< css::lang::XMultiServiceFactory > &rxServiceMgr)
 

Private Member Functions

css::uno::Reference< css::ucb::XContentProvider > queryContentProvider (const OUString &Identifier, bool bResolved)
 
void globalTransfer (const css::ucb::GlobalTransferCommandArgument2 &rArg, const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
 
css::uno::Any checkIn (const css::ucb::CheckinArgument &rArg, const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
 
void configureUcb ()
 
bool getContentProviderData (const OUString &rKey1, const OUString &rKey2, ucbhelper::ContentProviderDataList &rListToFill)
 
void prepareAndRegister (const ucbhelper::ContentProviderDataList &rData)
 

Static Private Member Functions

static css::uno::Reference< css::ucb::XCommandInfo > getCommandInfo ()
 

Private Attributes

css::uno::Reference< css::uno::XComponentContext > m_xContext
 
css::uno::Reference< css::util::XChangesNotifier > m_xNotifier
 
css::uno::Sequence< css::uno::Any > m_aArguments
 
ProviderMap_Impl m_aProviders
 
osl::Mutex m_aMutex
 
std::unique_ptr< comphelper::OInterfaceContainerHelper2m_pDisposeEventListeners
 
sal_Int32 m_nCommandId
 

Additional Inherited Members

- Protected Member Functions inherited from cppu::OWeakObject
virtual ~OWeakObject () COVERITY_NOEXCEPT_FALSE
 
void disposeWeakConnectionPoint ()
 
- Protected Attributes inherited from cppu::OWeakObject
oslInterlockedCount m_refCount
 

Detailed Description

Definition at line 56 of file ucb.hxx.

Constructor & Destructor Documentation

UniversalContentBroker::UniversalContentBroker ( const css::uno::Reference< css::uno::XComponentContext > &  xContext)
explicit

Definition at line 233 of file ucb.cxx.

References m_xContext, and m_xContext.

UniversalContentBroker::~UniversalContentBroker ( )
overridevirtual

Definition at line 244 of file ucb.cxx.

Member Function Documentation

void SAL_CALL UniversalContentBroker::abort ( sal_Int32  CommandId)
overridevirtual

Definition at line 701 of file ucb.cxx.

void SAL_CALL UniversalContentBroker::acquire ( )
throw (
)
overridevirtual

Reimplemented from cppu::OWeakObject.

Definition at line 250 of file ucb.cxx.

void SAL_CALL UniversalContentBroker::addEventListener ( const css::uno::Reference< css::lang::XEventListener > &  Listener)
overridevirtual

Definition at line 312 of file ucb.cxx.

References m_aMutex, and m_pDisposeEventListeners.

void SAL_CALL UniversalContentBroker::changesOccurred ( const css::util::ChangesEvent &  Event)
overridevirtual

Definition at line 711 of file ucb.cxx.

References aData, and prepareAndRegister().

uno::Any UniversalContentBroker::checkIn ( const css::ucb::CheckinArgument &  rArg,
const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv 
)
private
Exceptions
css::uno::Exception

Definition at line 1867 of file ucbcmds.cxx.

References ucbhelper::cancelCommandExecution(), createContentIdentifier(), comphelper::InitAnyPropertySequence(), m_xContext, and queryContent().

Referenced by execute().

sal_Int32 SAL_CALL UniversalContentBroker::compareContentIds ( const css::uno::Reference< css::ucb::XContentIdentifier > &  Id1,
const css::uno::Reference< css::ucb::XContentIdentifier > &  Id2 
)
overridevirtual

Definition at line 537 of file ucb.cxx.

References queryContentProvider().

void UniversalContentBroker::configureUcb ( )
private
Exceptions
css::uno::RuntimeException

Definition at line 778 of file ucb.cxx.

References aData, getContentProviderData(), m_aArguments, prepareAndRegister(), and SAL_WARN.

Referenced by initialize().

sal_Int32 SAL_CALL UniversalContentBroker::createCommandIdentifier ( )
overridevirtual

Definition at line 596 of file ucb.cxx.

References m_aMutex, and m_nCommandId.

Reference< XContentIdentifier > SAL_CALL UniversalContentBroker::createContentIdentifier ( const OUString &  ContentId)
overridevirtual

Definition at line 564 of file ucb.cxx.

References queryContentProvider().

Referenced by checkIn(), and globalTransfer().

static css::uno::Reference< css::lang::XSingleServiceFactory > UniversalContentBroker::createServiceFactory ( const css::uno::Reference< css::lang::XMultiServiceFactory > &  rxServiceMgr)
static
void SAL_CALL UniversalContentBroker::deregisterContentProvider ( const css::uno::Reference< css::ucb::XContentProvider > &  Provider,
const OUString &  Scheme 
)
overridevirtual
void SAL_CALL UniversalContentBroker::dispose ( void  )
overridevirtual

Definition at line 297 of file ucb.cxx.

References m_pDisposeEventListeners, and m_xNotifier.

void SAL_CALL UniversalContentBroker::disposing ( const css::lang::EventObject &  Source)
overridevirtual

Definition at line 751 of file ucb.cxx.

References m_aMutex, and m_xNotifier.

Any SAL_CALL UniversalContentBroker::execute ( const css::ucb::Command &  aCommand,
sal_Int32  CommandId,
const css::uno::Reference< css::ucb::XCommandEnvironment > &  Environment 
)
overridevirtual
uno::Reference< ucb::XCommandInfo > UniversalContentBroker::getCommandInfo ( )
staticprivate

Definition at line 1541 of file ucbcmds.cxx.

Referenced by execute().

bool UniversalContentBroker::getContentProviderData ( const OUString &  rKey1,
const OUString &  rKey2,
ucbhelper::ContentProviderDataList rListToFill 
)
private

Definition at line 822 of file ucb.cxx.

References comphelper::InitAnyPropertySequence(), m_xContext, m_xNotifier, and SAL_WARN.

Referenced by configureUcb().

virtual css::uno::Sequence< sal_Int8 > SAL_CALL UniversalContentBroker::getImplementationId ( )
overridevirtual
virtual OUString SAL_CALL UniversalContentBroker::getImplementationName ( )
overridevirtual
static OUString UniversalContentBroker::getImplementationName_Static ( )
static
virtual css::uno::Sequence< OUString > SAL_CALL UniversalContentBroker::getSupportedServiceNames ( )
overridevirtual
css::uno::Sequence< OUString > UniversalContentBroker::getSupportedServiceNames_Static ( )
static

Definition at line 347 of file ucb.cxx.

References UCB_SERVICE_NAME.

virtual css::uno::Sequence< css::uno::Type > SAL_CALL UniversalContentBroker::getTypes ( )
overridevirtual
void UniversalContentBroker::globalTransfer ( const css::ucb::GlobalTransferCommandArgument2 &  rArg,
const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv 
)
private
void SAL_CALL UniversalContentBroker::initialize ( const css::uno::Sequence< css::uno::Any > &  aArguments)
overridevirtual

Definition at line 363 of file ucb.cxx.

References configureUcb(), m_aArguments, and m_aMutex.

void UniversalContentBroker::prepareAndRegister ( const ucbhelper::ContentProviderDataList rData)
private

Definition at line 799 of file ucb.cxx.

References m_aArguments, m_xContext, and registerAtUcb().

Referenced by changesOccurred(), and configureUcb().

Reference< XContent > SAL_CALL UniversalContentBroker::queryContent ( const css::uno::Reference< css::ucb::XContentIdentifier > &  Identifier)
overridevirtual

Definition at line 516 of file ucb.cxx.

References queryContentProvider().

Referenced by checkIn(), and globalTransfer().

Reference< XContentProvider > SAL_CALL UniversalContentBroker::queryContentProvider ( const OUString &  Identifier)
overridevirtual

Definition at line 505 of file ucb.cxx.

Referenced by compareContentIds(), createContentIdentifier(), and queryContent().

Reference< XContentProvider > UniversalContentBroker::queryContentProvider ( const OUString &  Identifier,
bool  bResolved 
)
private

Definition at line 766 of file ucb.cxx.

References m_aMutex, m_aProviders, and ucb_impl::RegexpMap< Val >::map().

css::uno::Sequence< ContentProviderInfo > SAL_CALL UniversalContentBroker::queryContentProviders ( )
overridevirtual
css::uno::Any SAL_CALL UniversalContentBroker::queryInterface ( const css::uno::Type &  rType)
overridevirtual

Reimplemented from cppu::OWeakObject.

Definition at line 262 of file ucb.cxx.

References cppu::queryInterface().

Reference< XContentProvider > SAL_CALL UniversalContentBroker::registerContentProvider ( const css::uno::Reference< css::ucb::XContentProvider > &  Provider,
const OUString &  Scheme,
sal_Bool  ReplaceExisting 
)
overridevirtual
void SAL_CALL UniversalContentBroker::release ( )
throw (
)
overridevirtual

Reimplemented from cppu::OWeakObject.

Definition at line 256 of file ucb.cxx.

void SAL_CALL UniversalContentBroker::releaseCommandIdentifier ( sal_Int32  aCommandId)
overridevirtual

Definition at line 694 of file ucb.cxx.

void SAL_CALL UniversalContentBroker::removeEventListener ( const css::uno::Reference< css::lang::XEventListener > &  Listener)
overridevirtual

Definition at line 323 of file ucb.cxx.

References m_pDisposeEventListeners.

virtual sal_Bool SAL_CALL UniversalContentBroker::supportsService ( const OUString &  ServiceName)
overridevirtual

Member Data Documentation

css::uno::Sequence< css::uno::Any > UniversalContentBroker::m_aArguments
private

Definition at line 182 of file ucb.hxx.

Referenced by configureUcb(), initialize(), and prepareAndRegister().

osl::Mutex UniversalContentBroker::m_aMutex
private
ProviderMap_Impl UniversalContentBroker::m_aProviders
private
sal_Int32 UniversalContentBroker::m_nCommandId
private

Definition at line 186 of file ucb.hxx.

Referenced by createCommandIdentifier().

std::unique_ptr<comphelper::OInterfaceContainerHelper2> UniversalContentBroker::m_pDisposeEventListeners
private

Definition at line 185 of file ucb.hxx.

Referenced by addEventListener(), dispose(), and removeEventListener().

css::uno::Reference< css::uno::XComponentContext > UniversalContentBroker::m_xContext
private
css::uno::Reference< css::util::XChangesNotifier > UniversalContentBroker::m_xNotifier
private

Definition at line 180 of file ucb.hxx.

Referenced by dispose(), disposing(), and getContentProviderData().


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