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

#include <prov.hxx>

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

Public Member Functions

 FileProvider (const css::uno::Reference< css::uno::XComponentContext > &rxContext)
 
virtual ~FileProvider () 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 initialize (const css::uno::Sequence< css::uno::Any > &aArguments) override
 
virtual css::uno::Reference< css::ucb::XContent > SAL_CALL queryContent (const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier) override
 
virtual css::uno::Reference< css::ucb::XContentIdentifier > SAL_CALL createContentIdentifier (const OUString &ContentId) 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::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo () override
 
virtual void SAL_CALL setPropertyValue (const OUString &aPropertyName, const css::uno::Any &aValue) override
 
virtual css::uno::Any SAL_CALL getPropertyValue (const OUString &PropertyName) override
 
virtual void SAL_CALL addPropertyChangeListener (const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
 
virtual void SAL_CALL removePropertyChangeListener (const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
 
virtual void SAL_CALL addVetoableChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
 
virtual void SAL_CALL removeVetoableChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
 
virtual sal_Int32 SAL_CALL getFileProviderLocality (const OUString &BaseURL) override
 
virtual OUString SAL_CALL getFileURLFromSystemPath (const OUString &BaseURL, const OUString &SystemPath) override
 
virtual OUString SAL_CALL getSystemPathFromFileURL (const OUString &URL) override
 

Private Member Functions

void init ()
 
void initProperties ()
 

Private Attributes

css::uno::Reference< css::uno::XComponentContext > m_xContext
 
std::mutex m_aMutex
 
OUString m_HostName
 
OUString m_HomeDirectory
 
sal_Int32 m_FileSystemNotation
 
css::uno::Reference< css::beans::XPropertySetInfo > m_xPropertySetInfo
 
std::unique_ptr< TaskManagerm_pMyShell
 

Friends

class BaseContent
 

Detailed Description

Definition at line 46 of file prov.hxx.

Constructor & Destructor Documentation

FileProvider::FileProvider ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext)
explicit

Definition at line 58 of file prov.cxx.

References m_xContext.

FileProvider::~FileProvider ( )
overridevirtual

Definition at line 64 of file prov.cxx.

Member Function Documentation

void SAL_CALL FileProvider::addPropertyChangeListener ( const OUString &  aPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener > &  xListener 
)
overridevirtual

Definition at line 379 of file prov.cxx.

void SAL_CALL FileProvider::addVetoableChangeListener ( const OUString &  PropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener > &  aListener 
)
overridevirtual

Definition at line 394 of file prov.cxx.

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

Definition at line 131 of file prov.cxx.

References fileaccess::TaskManager::getUnqFromUrl(), and init().

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

Definition at line 188 of file prov.cxx.

References init().

sal_Int32 SAL_CALL FileProvider::getFileProviderLocality ( const OUString &  BaseURL)
overridevirtual

Definition at line 412 of file prov.cxx.

OUString SAL_CALL FileProvider::getFileURLFromSystemPath ( const OUString &  BaseURL,
const OUString &  SystemPath 
)
overridevirtual

Definition at line 426 of file prov.cxx.

OUString SAL_CALL FileProvider::getImplementationName ( )
overridevirtual

Definition at line 93 of file prov.cxx.

Reference< XPropertySetInfo > SAL_CALL FileProvider::getPropertySetInfo ( )
overridevirtual

Definition at line 338 of file prov.cxx.

Any SAL_CALL FileProvider::getPropertyValue ( const OUString &  PropertyName)
overridevirtual

Definition at line 357 of file prov.cxx.

References Any.

Sequence< OUString > SAL_CALL FileProvider::getSupportedServiceNames ( )
overridevirtual

Definition at line 104 of file prov.cxx.

OUString SAL_CALL FileProvider::getSystemPathFromFileURL ( const OUString &  URL)
overridevirtual

Definition at line 436 of file prov.cxx.

void FileProvider::init ( )
private

Definition at line 69 of file prov.cxx.

References m_pMyShell, and m_xContext.

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

void SAL_CALL FileProvider::initialize ( const css::uno::Sequence< css::uno::Any > &  aArguments)
overridevirtual

Definition at line 77 of file prov.cxx.

References config, m_pMyShell, and m_xContext.

void FileProvider::initProperties ( )
private

Definition at line 308 of file prov.cxx.

References m_aMutex.

Reference< XContent > SAL_CALL FileProvider::queryContent ( const css::uno::Reference< css::ucb::XContentIdentifier > &  Identifier)
overridevirtual
void SAL_CALL FileProvider::removePropertyChangeListener ( const OUString &  aPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener > &  aListener 
)
overridevirtual

Definition at line 387 of file prov.cxx.

void SAL_CALL FileProvider::removeVetoableChangeListener ( const OUString &  PropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener > &  aListener 
)
overridevirtual

Definition at line 402 of file prov.cxx.

void SAL_CALL FileProvider::setPropertyValue ( const OUString &  aPropertyName,
const css::uno::Any &  aValue 
)
overridevirtual

Definition at line 346 of file prov.cxx.

sal_Bool SAL_CALL FileProvider::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 98 of file prov.cxx.

References cppu::supportsService().

Friends And Related Function Documentation

friend class BaseContent
friend

Definition at line 54 of file prov.hxx.

Referenced by queryContent().

Member Data Documentation

std::mutex fileaccess::FileProvider::m_aMutex
private

Definition at line 148 of file prov.hxx.

sal_Int32 fileaccess::FileProvider::m_FileSystemNotation
private

Definition at line 151 of file prov.hxx.

OUString fileaccess::FileProvider::m_HomeDirectory
private

Definition at line 150 of file prov.hxx.

OUString fileaccess::FileProvider::m_HostName
private

Definition at line 149 of file prov.hxx.

std::unique_ptr<TaskManager> fileaccess::FileProvider::m_pMyShell
private

Definition at line 155 of file prov.hxx.

Referenced by init(), initialize(), and queryContent().

css::uno::Reference< css::uno::XComponentContext > fileaccess::FileProvider::m_xContext
private

Definition at line 145 of file prov.hxx.

Referenced by init(), and initialize().

css::uno::Reference< css::beans::XPropertySetInfo > fileaccess::FileProvider::m_xPropertySetInfo
private

Definition at line 153 of file prov.hxx.


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