LibreOffice Module ucb (master)  1
Public Member Functions | Private Types | Private Member Functions | Private Attributes | Friends | List of all members
fileaccess::BaseContent Class Reference

#include <bc.hxx>

Inheritance diagram for fileaccess::BaseContent:
[legend]
Collaboration diagram for fileaccess::BaseContent:
[legend]

Public Member Functions

 BaseContent (TaskManager *pMyShell, const css::uno::Reference< css::ucb::XContentIdentifier > &xContentIdentifier, const OUString &aUnqPath)
 
virtual ~BaseContent () override
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &aType) override
 
virtual void SAL_CALL acquire () override throw ()
 
virtual void SAL_CALL release () override throw ()
 
virtual void SAL_CALL dispose () override
 
virtual void SAL_CALL addEventListener (const css::uno::Reference< css::lang::XEventListener > &xListener) override
 
virtual void SAL_CALL removeEventListener (const css::uno::Reference< css::lang::XEventListener > &aListener) override
 
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 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 css::uno::Reference< css::ucb::XContentIdentifier > SAL_CALL getIdentifier () override
 
virtual OUString SAL_CALL getContentType () override
 
virtual void SAL_CALL addContentEventListener (const css::uno::Reference< css::ucb::XContentEventListener > &Listener) override
 
virtual void SAL_CALL removeContentEventListener (const css::uno::Reference< css::ucb::XContentEventListener > &Listener) override
 
virtual void SAL_CALL addPropertiesChangeListener (const css::uno::Sequence< OUString > &PropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &Listener) override
 
virtual void SAL_CALL removePropertiesChangeListener (const css::uno::Sequence< OUString > &PropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &Listener) override
 
virtual void SAL_CALL addProperty (const OUString &Name, sal_Int16 Attributes, const css::uno::Any &DefaultValue) override
 
virtual void SAL_CALL removeProperty (const OUString &Name) override
 
virtual void SAL_CALL addPropertySetInfoChangeListener (const css::uno::Reference< css::beans::XPropertySetInfoChangeListener > &Listener) override
 
virtual void SAL_CALL removePropertySetInfoChangeListener (const css::uno::Reference< css::beans::XPropertySetInfoChangeListener > &Listener) override
 
virtual css::uno::Sequence< css::ucb::ContentInfo > SAL_CALL queryCreatableContentsInfo () override
 
virtual css::uno::Reference< css::ucb::XContent > SAL_CALL createNewContent (const css::ucb::ContentInfo &Info) override
 
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL getParent () override
 
virtual void SAL_CALL setParent (const css::uno::Reference< css::uno::XInterface > &Parent) override
 
std::unique_ptr< ContentEventNotifiercDEL () override
 
std::unique_ptr< ContentEventNotifiercEXC (const OUString &aNewName) override
 
std::unique_ptr< ContentEventNotifiercCEL () override
 
std::unique_ptr< PropertySetInfoChangeNotifiercPSL () override
 
std::unique_ptr< PropertyChangeNotifiercPCL () 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 > ()
 

Private Types

enum  state {
  NameForInsertionSet = 1,
  JustInserted = 2,
  Deleted = 4,
  FullFeatured = 8
}
 

Private Member Functions

 BaseContent (TaskManager *pMyShell, const OUString &parentName, bool bFolder)
 
css::uno::Reference< css::ucb::XCommandInfo > getCommandInfo ()
 
css::uno::Reference< css::beans::XPropertySetInfo > getPropertySetInfo ()
 
css::uno::Reference< css::sdbc::XRow > getPropertyValues (sal_Int32 nMyCommandIdentifier, const css::uno::Sequence< css::beans::Property > &PropertySet)
 
css::uno::Sequence< css::uno::Any > setPropertyValues (sal_Int32 nMyCommandIdentifier, const css::uno::Sequence< css::beans::PropertyValue > &Values)
 
css::uno::Reference< css::ucb::XDynamicResultSet > open (sal_Int32 nMyCommandIdentifier, const css::ucb::OpenCommandArgument2 &aCommandArgument)
 
void deleteContent (sal_Int32 nMyCommandIdentifier)
 
void transfer (sal_Int32 nMyCommandIdentifier, const css::ucb::TransferInfo &aTransferInfo)
 
void insert (sal_Int32 nMyCommandIdentifier, const css::ucb::InsertCommandArgument &aInsertArgument)
 
void endTask (sal_Int32 CommandId)
 

Private Attributes

TaskManagerm_pMyShell
 
css::uno::Reference< css::ucb::XContentIdentifier > m_xContentIdentifier
 
OUString m_aUncPath
 
bool const m_bFolder
 
sal_uInt16 m_nState
 
osl::Mutex m_aMutex
 
osl::Mutex m_aEventListenerMutex
 
std::unique_ptr< comphelper::OInterfaceContainerHelper2m_pDisposeEventListeners
 
std::unique_ptr< comphelper::OInterfaceContainerHelper2m_pContentEventListeners
 
std::unique_ptr< comphelper::OInterfaceContainerHelper2m_pPropertySetInfoChangeListeners
 
std::unique_ptr< PropertyListenersm_pPropertyListener
 

Friends

class ContentEventNotifier
 

Additional Inherited Members

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

Detailed Description

Definition at line 60 of file bc.hxx.

Member Enumeration Documentation

Enumerator
NameForInsertionSet 
JustInserted 
Deleted 
FullFeatured 

Definition at line 225 of file bc.hxx.

Constructor & Destructor Documentation

BaseContent::BaseContent ( TaskManager pMyShell,
const OUString &  parentName,
bool  bFolder 
)
private

Definition at line 87 of file bc.cxx.

References m_pMyShell, and fileaccess::TaskManager::m_pProvider.

Referenced by createNewContent().

fileaccess::BaseContent::BaseContent ( TaskManager pMyShell,
const css::uno::Reference< css::ucb::XContentIdentifier > &  xContentIdentifier,
const OUString &  aUnqPath 
)
BaseContent::~BaseContent ( )
overridevirtual

Member Function Documentation

void SAL_CALL BaseContent::abort ( sal_Int32  CommandId)
overridevirtual

Definition at line 267 of file bc.cxx.

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

Reimplemented from cppu::OWeakObject.

Definition at line 131 of file bc.cxx.

void SAL_CALL BaseContent::addContentEventListener ( const css::uno::Reference< css::ucb::XContentEventListener > &  Listener)
overridevirtual

Definition at line 492 of file bc.cxx.

References m_aEventListenerMutex, m_aMutex, and m_pContentEventListeners.

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

Definition at line 168 of file bc.cxx.

References m_aEventListenerMutex, m_aMutex, and m_pDisposeEventListeners.

void SAL_CALL BaseContent::addPropertiesChangeListener ( const css::uno::Sequence< OUString > &  PropertyNames,
const css::uno::Reference< css::beans::XPropertiesChangeListener > &  Listener 
)
overridevirtual
void SAL_CALL BaseContent::addProperty ( const OUString &  Name,
sal_Int16  Attributes,
const css::uno::Any &  DefaultValue 
)
overridevirtual
void SAL_CALL BaseContent::addPropertySetInfoChangeListener ( const css::uno::Reference< css::beans::XPropertySetInfoChangeListener > &  Listener)
overridevirtual

Definition at line 618 of file bc.cxx.

References m_aEventListenerMutex, m_aMutex, and m_pPropertySetInfoChangeListeners.

std::unique_ptr< ContentEventNotifier > BaseContent::cCEL ( )
overridevirtual
std::unique_ptr< ContentEventNotifier > BaseContent::cDEL ( )
overridevirtual
std::unique_ptr< ContentEventNotifier > BaseContent::cEXC ( const OUString &  aNewName)
overridevirtual
std::unique_ptr< PropertyChangeNotifier > BaseContent::cPCL ( )
overridevirtual
std::unique_ptr< PropertySetInfoChangeNotifier > BaseContent::cPSL ( )
overridevirtual

Implements fileaccess::Notifier.

Definition at line 1226 of file bc.cxx.

References m_aMutex, and m_pPropertySetInfoChangeListeners.

virtual sal_Int32 SAL_CALL fileaccess::BaseContent::createCommandIdentifier ( )
overridevirtual

Referenced by execute().

Reference< XContent > SAL_CALL BaseContent::createNewContent ( const css::ucb::ContentInfo &  Info)
overridevirtual
void BaseContent::deleteContent ( sal_Int32  nMyCommandIdentifier)
private

Definition at line 962 of file bc.cxx.

References Deleted, m_aMutex, m_aUncPath, m_nState, m_pMyShell, and fileaccess::TaskManager::remove().

Referenced by execute().

void SAL_CALL BaseContent::dispose ( void  )
overridevirtual
void BaseContent::endTask ( sal_Int32  CommandId)
private

Definition at line 1162 of file bc.cxx.

References fileaccess::TaskManager::endTask(), m_aUncPath, and m_pMyShell.

Referenced by execute(), and setPropertyValues().

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

Definition at line 680 of file bc.cxx.

References Deleted, fileaccess::TaskManager::info_c(), m_nState, and m_pMyShell.

Referenced by execute().

OUString SAL_CALL BaseContent::getContentType ( )
overridevirtual
Reference< ucb::XContentIdentifier > SAL_CALL BaseContent::getIdentifier ( )
overridevirtual

Definition at line 437 of file bc.cxx.

References m_xContentIdentifier.

virtual css::uno::Sequence< sal_Int8 > SAL_CALL fileaccess::BaseContent::getImplementationId ( )
overridevirtual
OUString SAL_CALL BaseContent::getImplementationName ( )
overridevirtual

Definition at line 224 of file bc.cxx.

Reference< XInterface > SAL_CALL BaseContent::getParent ( )
overridevirtual
Reference< beans::XPropertySetInfo > BaseContent::getPropertySetInfo ( )
private
Exceptions
css::uno::RuntimeException

Definition at line 690 of file bc.cxx.

References Deleted, fileaccess::TaskManager::info_p(), m_aUncPath, m_nState, and m_pMyShell.

Referenced by execute().

Reference< sdbc::XRow > BaseContent::getPropertyValues ( sal_Int32  nMyCommandIdentifier,
const css::uno::Sequence< css::beans::Property > &  PropertySet 
)
private
Sequence< OUString > SAL_CALL BaseContent::getSupportedServiceNames ( )
overridevirtual

Definition at line 236 of file bc.cxx.

virtual css::uno::Sequence< css::uno::Type > SAL_CALL fileaccess::BaseContent::getTypes ( )
overridevirtual
void BaseContent::insert ( sal_Int32  nMyCommandIdentifier,
const css::ucb::InsertCommandArgument &  aInsertArgument 
)
private
Reference< XDynamicResultSet > BaseContent::open ( sal_Int32  nMyCommandIdentifier,
const css::ucb::OpenCommandArgument2 &  aCommandArgument 
)
private
Sequence< ContentInfo > SAL_CALL BaseContent::queryCreatableContentsInfo ( )
overridevirtual

Definition at line 550 of file bc.cxx.

References fileaccess::TaskManager::queryCreatableContentsInfo().

Any SAL_CALL BaseContent::queryInterface ( const css::uno::Type &  aType)
overridevirtual

Reimplemented from cppu::OWeakObject.

Definition at line 147 of file bc.cxx.

References Any, and cppu::queryInterface().

void SAL_CALL BaseContent::release ( )
throw (
)
overridevirtual

Reimplemented from cppu::OWeakObject.

Definition at line 139 of file bc.cxx.

void SAL_CALL BaseContent::removeContentEventListener ( const css::uno::Reference< css::ucb::XContentEventListener > &  Listener)
overridevirtual

Definition at line 507 of file bc.cxx.

References m_aMutex, and m_pContentEventListeners.

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

Definition at line 181 of file bc.cxx.

References m_aMutex, and m_pDisposeEventListeners.

void SAL_CALL BaseContent::removePropertiesChangeListener ( const css::uno::Sequence< OUString > &  PropertyNames,
const css::uno::Reference< css::beans::XPropertiesChangeListener > &  Listener 
)
overridevirtual

Definition at line 415 of file bc.cxx.

References m_aMutex, and m_pPropertyListener.

void SAL_CALL BaseContent::removeProperty ( const OUString &  Name)
overridevirtual
void SAL_CALL BaseContent::removePropertySetInfoChangeListener ( const css::uno::Reference< css::beans::XPropertySetInfoChangeListener > &  Listener)
overridevirtual

Definition at line 630 of file bc.cxx.

References m_aMutex, and m_pPropertySetInfoChangeListeners.

void SAL_CALL BaseContent::setParent ( const css::uno::Reference< css::uno::XInterface > &  Parent)
overridevirtual

Definition at line 669 of file bc.cxx.

References THROW_WHERE.

Sequence< Any > BaseContent::setPropertyValues ( sal_Int32  nMyCommandIdentifier,
const css::uno::Sequence< css::beans::PropertyValue > &  Values 
)
private
sal_Bool SAL_CALL BaseContent::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 230 of file bc.cxx.

References cppu::supportsService().

void BaseContent::transfer ( sal_Int32  nMyCommandIdentifier,
const css::ucb::TransferInfo &  aTransferInfo 
)
private

Friends And Related Function Documentation

friend class ContentEventNotifier
friend

Definition at line 280 of file bc.hxx.

Referenced by cCEL(), cDEL(), and cEXC().

Member Data Documentation

osl::Mutex fileaccess::BaseContent::m_aEventListenerMutex
private
osl::Mutex fileaccess::BaseContent::m_aMutex
private
OUString fileaccess::BaseContent::m_aUncPath
private
bool const fileaccess::BaseContent::m_bFolder
private

Definition at line 229 of file bc.hxx.

Referenced by getContentType(), and getPropertyValues().

sal_uInt16 fileaccess::BaseContent::m_nState
private
std::unique_ptr<comphelper::OInterfaceContainerHelper2> fileaccess::BaseContent::m_pContentEventListeners
private

Definition at line 236 of file bc.hxx.

Referenced by addContentEventListener(), cCEL(), cDEL(), cEXC(), dispose(), and removeContentEventListener().

std::unique_ptr<comphelper::OInterfaceContainerHelper2> fileaccess::BaseContent::m_pDisposeEventListeners
private

Definition at line 235 of file bc.hxx.

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

TaskManager* fileaccess::BaseContent::m_pMyShell
private
std::unique_ptr<PropertyListeners> fileaccess::BaseContent::m_pPropertyListener
private

Definition at line 238 of file bc.hxx.

Referenced by addPropertiesChangeListener(), cPCL(), dispose(), and removePropertiesChangeListener().

std::unique_ptr<comphelper::OInterfaceContainerHelper2> fileaccess::BaseContent::m_pPropertySetInfoChangeListeners
private
css::uno::Reference< css::ucb::XContentIdentifier > fileaccess::BaseContent::m_xContentIdentifier
private

Definition at line 222 of file bc.hxx.

Referenced by cCEL(), cDEL(), cEXC(), getIdentifier(), and insert().


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