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

#include <ftpcontentprovider.hxx>

Inheritance diagram for ftp::FTPContentProvider:
[legend]
Collaboration diagram for ftp::FTPContentProvider:
[legend]

Classes

struct  ServerInfo
 

Public Member Functions

 FTPContentProvider (const css::uno::Reference< css::uno::XComponentContext > &rxContext)
 
virtual ~FTPContentProvider () 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 css::uno::Reference< css::ucb::XContent > SAL_CALL queryContent (const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier) override
 
CURL * handle ()
 
void forHost (const OUString &host, const OUString &port, const OUString &username, OUString &password, OUString &account)
 host is in the form host:port. More...
 
bool setHost (const OUString &host, const OUString &port, const OUString &username, const OUString &password, const OUString &account)
 
- Public Member Functions inherited from ucbhelper::ContentProviderImplHelper
 ContentProviderImplHelper (const css::uno::Reference< css::uno::XComponentContext > &rxContext)
 
virtual ~ContentProviderImplHelper () override
 
virtual sal_Int32 SAL_CALL compareContentIds (const css::uno::Reference< css::ucb::XContentIdentifier > &Id1, const css::uno::Reference< css::ucb::XContentIdentifier > &Id2) override
 
osl::Mutex & getContentListMutex ()
 
void queryExistingContents (ContentRefList &rContents)
 
css::uno::Reference< css::ucb::XPersistentPropertySet > getAdditionalPropertySet (const OUString &rKey, bool bCreate)
 
bool renameAdditionalPropertySet (const OUString &rOldKey, const OUString &rNewKey, bool bRecursive)
 
bool copyAdditionalPropertySet (const OUString &rSourceKey, const OUString &rTargetKey, bool bRecursive)
 
bool removeAdditionalPropertySet (const OUString &rKey, bool bRecursive)
 

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

void init ()
 

Private Attributes

std::unique_ptr< FTPLoaderThreadm_ftpLoaderThread
 
std::unique_ptr< ucbhelper::InternetProxyDeciderm_pProxyDecider
 
std::vector< ServerInfom_ServerInfo
 

Additional Inherited Members

- Protected Member Functions inherited from ucbhelper::ContentProviderImplHelper
rtl::Reference< ContentImplHelperqueryExistingContent (const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier)
 
rtl::Reference< ContentImplHelperqueryExistingContent (const OUString &rURL)
 
void registerNewContent (const css::uno::Reference< css::ucb::XContent > &xContent)
 
- Protected Attributes inherited from ucbhelper::ContentProviderImplHelper
osl::Mutex m_aMutex
 
css::uno::Reference< css::uno::XComponentContext > m_xContext
 

Detailed Description

Definition at line 44 of file ftpcontentprovider.hxx.

Constructor & Destructor Documentation

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

Definition at line 46 of file ftpcontentprovider.cxx.

FTPContentProvider::~FTPContentProvider ( )
overridevirtual

Definition at line 53 of file ftpcontentprovider.cxx.

References m_ftpLoaderThread, and m_pProxyDecider.

Member Function Documentation

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

Reimplemented from ucbhelper::ContentProviderImplHelper.

Definition at line 60 of file ftpcontentprovider.cxx.

css::uno::Reference< css::lang::XSingleServiceFactory > FTPContentProvider::createServiceFactory ( const css::uno::Reference< css::lang::XMultiServiceFactory > &  rxServiceMgr)
static
void FTPContentProvider::forHost ( const OUString &  host,
const OUString &  port,
const OUString &  username,
OUString &  password,
OUString &  account 
)

host is in the form host:port.

Definition at line 223 of file ftpcontentprovider.cxx.

References i, ucbhelper::ContentProviderImplHelper::m_aMutex, and m_ServerInfo.

Referenced by ftp::FTPContent::execute(), ftp::FTPURL::ident(), and ftp::FTPURL::parent().

css::uno::Sequence< sal_Int8 > SAL_CALL FTPContentProvider::getImplementationId ( )
overridevirtual

Reimplemented from ucbhelper::ContentProviderImplHelper.

Definition at line 83 of file ftpcontentprovider.cxx.

OUString SAL_CALL FTPContentProvider::getImplementationName ( )
overridevirtual
OUString FTPContentProvider::getImplementationName_Static ( )
static

Definition at line 107 of file ftpcontentprovider.cxx.

Referenced by createServiceFactory(), and getImplementationName().

css::uno::Sequence< OUString > SAL_CALL FTPContentProvider::getSupportedServiceNames ( )
overridevirtual
css::uno::Sequence< OUString > FTPContentProvider::getSupportedServiceNames_Static ( )
static
css::uno::Sequence< css::uno::Type > SAL_CALL FTPContentProvider::getTypes ( )
overridevirtual

Reimplemented from ucbhelper::ContentProviderImplHelper.

Definition at line 88 of file ftpcontentprovider.cxx.

References cppu::OTypeCollection::getTypes().

CURL * FTPContentProvider::handle ( )
void FTPContentProvider::init ( )
private
Reference< XContent > SAL_CALL FTPContentProvider::queryContent ( const css::uno::Reference< css::ucb::XContentIdentifier > &  Identifier)
overridevirtual
css::uno::Any SAL_CALL FTPContentProvider::queryInterface ( const css::uno::Type &  rType)
overridevirtual

Reimplemented from ucbhelper::ContentProviderImplHelper.

Definition at line 72 of file ftpcontentprovider.cxx.

References cppu::queryInterface().

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

Reimplemented from ucbhelper::ContentProviderImplHelper.

Definition at line 66 of file ftpcontentprovider.cxx.

bool FTPContentProvider::setHost ( const OUString &  host,
const OUString &  port,
const OUString &  username,
const OUString &  password,
const OUString &  account 
)
sal_Bool SAL_CALL FTPContentProvider::supportsService ( const OUString &  ServiceName)
overridevirtual

Reimplemented from ucbhelper::ContentProviderImplHelper.

Definition at line 112 of file ftpcontentprovider.cxx.

References cppu::supportsService().

Member Data Documentation

std::unique_ptr<FTPLoaderThread> ftp::FTPContentProvider::m_ftpLoaderThread
private

Definition at line 107 of file ftpcontentprovider.hxx.

Referenced by handle(), init(), queryContent(), and ~FTPContentProvider().

std::unique_ptr<ucbhelper::InternetProxyDecider> ftp::FTPContentProvider::m_pProxyDecider
private

Definition at line 108 of file ftpcontentprovider.hxx.

Referenced by init(), queryContent(), and ~FTPContentProvider().

std::vector<ServerInfo> ftp::FTPContentProvider::m_ServerInfo
private

Definition at line 109 of file ftpcontentprovider.hxx.

Referenced by forHost(), and setHost().


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