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 43 of file prov.hxx.

Constructor & Destructor Documentation

◆ FileProvider()

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

Definition at line 57 of file prov.cxx.

References m_xContext.

◆ ~FileProvider()

FileProvider::~FileProvider ( )
overridevirtual

Definition at line 63 of file prov.cxx.

Member Function Documentation

◆ addPropertyChangeListener()

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

Definition at line 375 of file prov.cxx.

◆ addVetoableChangeListener()

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

Definition at line 390 of file prov.cxx.

◆ compareContentIds()

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 130 of file prov.cxx.

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

◆ createContentIdentifier()

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

Definition at line 187 of file prov.cxx.

References init().

◆ getFileProviderLocality()

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

Definition at line 408 of file prov.cxx.

◆ getFileURLFromSystemPath()

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

Definition at line 422 of file prov.cxx.

◆ getImplementationName()

OUString SAL_CALL FileProvider::getImplementationName ( )
overridevirtual

Definition at line 92 of file prov.cxx.

◆ getPropertySetInfo()

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

Definition at line 334 of file prov.cxx.

◆ getPropertyValue()

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

Definition at line 353 of file prov.cxx.

References Any.

◆ getSupportedServiceNames()

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

Definition at line 103 of file prov.cxx.

◆ getSystemPathFromFileURL()

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

Definition at line 432 of file prov.cxx.

References URL.

◆ init()

void FileProvider::init ( )
private

Definition at line 68 of file prov.cxx.

References m_pMyShell, and m_xContext.

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

◆ initialize()

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

Definition at line 76 of file prov.cxx.

References aArguments, config, m_pMyShell, and m_xContext.

◆ initProperties()

void FileProvider::initProperties ( )
private

Definition at line 304 of file prov.cxx.

References m_aMutex.

◆ queryContent()

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

◆ removePropertyChangeListener()

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

Definition at line 383 of file prov.cxx.

◆ removeVetoableChangeListener()

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

Definition at line 398 of file prov.cxx.

◆ setPropertyValue()

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

Definition at line 342 of file prov.cxx.

◆ supportsService()

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

Definition at line 97 of file prov.cxx.

References ServiceName, and cppu::supportsService().

Friends And Related Function Documentation

◆ BaseContent

friend class BaseContent
friend

Definition at line 51 of file prov.hxx.

Referenced by queryContent().

Member Data Documentation

◆ m_aMutex

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

Definition at line 145 of file prov.hxx.

◆ m_FileSystemNotation

sal_Int32 fileaccess::FileProvider::m_FileSystemNotation
private

Definition at line 148 of file prov.hxx.

◆ m_HomeDirectory

OUString fileaccess::FileProvider::m_HomeDirectory
private

Definition at line 147 of file prov.hxx.

◆ m_HostName

OUString fileaccess::FileProvider::m_HostName
private

Definition at line 146 of file prov.hxx.

◆ m_pMyShell

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

Definition at line 152 of file prov.hxx.

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

◆ m_xContext

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

Definition at line 142 of file prov.hxx.

Referenced by init(), and initialize().

◆ m_xPropertySetInfo

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

Definition at line 150 of file prov.hxx.


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