LibreOffice Module ucb (master)  1
Public Member Functions | Static 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
 

Static Public Member Functions

static css::uno::Reference< css::lang::XSingleServiceFactory > createServiceFactory (const css::uno::Reference< css::lang::XMultiServiceFactory > &rxServiceMgr)
 
static css::uno::Reference< css::uno::XInterface > SAL_CALL CreateInstance (const css::uno::Reference< css::lang::XMultiServiceFactory > &xMultiServiceFactory)
 

Private Member Functions

void init ()
 
void initProperties ()
 

Private Attributes

css::uno::Reference< css::uno::XComponentContext > m_xContext
 
osl::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 51 of file prov.hxx.

Constructor & Destructor Documentation

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

Definition at line 91 of file prov.cxx.

References m_xContext.

Referenced by CreateInstance().

FileProvider::~FileProvider ( )
overridevirtual

Definition at line 97 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 446 of file prov.cxx.

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

Definition at line 461 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 199 of file prov.cxx.

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

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

Definition at line 256 of file prov.cxx.

References init().

Reference< XInterface > SAL_CALL FileProvider::CreateInstance ( const css::uno::Reference< css::lang::XMultiServiceFactory > &  xMultiServiceFactory)
static

Definition at line 154 of file prov.cxx.

References FileProvider(), and comphelper::getComponentContext().

Referenced by createServiceFactory().

Reference< XSingleServiceFactory > FileProvider::createServiceFactory ( const css::uno::Reference< css::lang::XMultiServiceFactory > &  rxServiceMgr)
static
sal_Int32 SAL_CALL FileProvider::getFileProviderLocality ( const OUString &  BaseURL)
overridevirtual

Definition at line 479 of file prov.cxx.

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

Definition at line 493 of file prov.cxx.

OUString SAL_CALL FileProvider::getImplementationName ( )
overridevirtual

Definition at line 126 of file prov.cxx.

References fileaccess::TaskManager::getImplementationName_static().

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

Definition at line 405 of file prov.cxx.

References initProperties(), and m_xPropertySetInfo.

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

Definition at line 424 of file prov.cxx.

References Any, initProperties(), m_FileSystemNotation, m_HomeDirectory, m_HostName, and THROW_WHERE.

Sequence< OUString > SAL_CALL FileProvider::getSupportedServiceNames ( )
overridevirtual
OUString SAL_CALL FileProvider::getSystemPathFromFileURL ( const OUString &  URL)
overridevirtual

Definition at line 503 of file prov.cxx.

void FileProvider::init ( )
private

Definition at line 102 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 110 of file prov.cxx.

References config, m_pMyShell, and m_xContext.

void FileProvider::initProperties ( )
private
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 454 of file prov.cxx.

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

Definition at line 469 of file prov.cxx.

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

Definition at line 413 of file prov.cxx.

References THROW_WHERE.

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

Definition at line 131 of file prov.cxx.

References cppu::supportsService().

Friends And Related Function Documentation

friend class BaseContent
friend

Definition at line 59 of file prov.hxx.

Referenced by queryContent().

Member Data Documentation

osl::Mutex fileaccess::FileProvider::m_aMutex
private

Definition at line 161 of file prov.hxx.

Referenced by initProperties().

sal_Int32 fileaccess::FileProvider::m_FileSystemNotation
private

Definition at line 164 of file prov.hxx.

Referenced by getPropertyValue(), and initProperties().

OUString fileaccess::FileProvider::m_HomeDirectory
private

Definition at line 163 of file prov.hxx.

Referenced by getPropertyValue(), and initProperties().

OUString fileaccess::FileProvider::m_HostName
private

Definition at line 162 of file prov.hxx.

Referenced by getPropertyValue(), and initProperties().

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

Definition at line 168 of file prov.hxx.

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

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

Definition at line 158 of file prov.hxx.

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

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

Definition at line 166 of file prov.hxx.

Referenced by getPropertySetInfo(), and initProperties().


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