LibreOffice Module ucb (master) 1
Classes | 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 () noexcept override
 
virtual void SAL_CALL release () noexcept 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 css::uno::Reference< css::ucb::XContent > SAL_CALL queryContent (const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier) override
 
CURL * handle ()
 
void forHost (std::u16string_view host, std::u16string_view port, std::u16string_view 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 (css::uno::Reference< css::uno::XComponentContext > xContext)
 
virtual ~ContentProviderImplHelper () override
 
virtual OUString SAL_CALL getImplementationName () override=0
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override=0
 
virtual css::uno::Reference< css::ucb::XContent > SAL_CALL queryContent (const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier) override=0
 
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)
 

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 42 of file ftpcontentprovider.hxx.

Constructor & Destructor Documentation

◆ FTPContentProvider()

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

Definition at line 43 of file ftpcontentprovider.cxx.

◆ ~FTPContentProvider()

FTPContentProvider::~FTPContentProvider ( )
overridevirtual

Definition at line 50 of file ftpcontentprovider.cxx.

References m_ftpLoaderThread, and m_pProxyDecider.

Member Function Documentation

◆ acquire()

void SAL_CALL FTPContentProvider::acquire ( )
overridevirtualnoexcept

Definition at line 57 of file ftpcontentprovider.cxx.

◆ forHost()

void FTPContentProvider::forHost ( std::u16string_view  host,
std::u16string_view  port,
std::u16string_view  username,
OUString &  password,
OUString &  account 
)

host is in the form host:port.

Definition at line 188 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().

◆ getImplementationId()

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

Definition at line 80 of file ftpcontentprovider.cxx.

◆ getImplementationName()

OUString SAL_CALL FTPContentProvider::getImplementationName ( )
overridevirtual

Implements ucbhelper::ContentProviderImplHelper.

Definition at line 99 of file ftpcontentprovider.cxx.

◆ getSupportedServiceNames()

css::uno::Sequence< OUString > SAL_CALL FTPContentProvider::getSupportedServiceNames ( )
overridevirtual

◆ getTypes()

css::uno::Sequence< css::uno::Type > SAL_CALL FTPContentProvider::getTypes ( )
overridevirtual

Definition at line 85 of file ftpcontentprovider.cxx.

References cppu::OTypeCollection::getTypes().

◆ handle()

CURL * FTPContentProvider::handle ( )

◆ init()

void FTPContentProvider::init ( )
private

◆ queryContent()

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

◆ queryInterface()

css::uno::Any SAL_CALL FTPContentProvider::queryInterface ( const css::uno::Type &  rType)
overridevirtual

Definition at line 69 of file ftpcontentprovider.cxx.

References cppu::queryInterface().

◆ release()

void SAL_CALL FTPContentProvider::release ( )
overridevirtualnoexcept

Definition at line 63 of file ftpcontentprovider.cxx.

◆ setHost()

bool FTPContentProvider::setHost ( const OUString &  host,
const OUString &  port,
const OUString &  username,
const OUString &  password,
const OUString &  account 
)

◆ supportsService()

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

Reimplemented from ucbhelper::ContentProviderImplHelper.

Definition at line 104 of file ftpcontentprovider.cxx.

References ServiceName, and cppu::supportsService().

Member Data Documentation

◆ m_ftpLoaderThread

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

Definition at line 98 of file ftpcontentprovider.hxx.

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

◆ m_pProxyDecider

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

Definition at line 99 of file ftpcontentprovider.hxx.

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

◆ m_ServerInfo

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

Definition at line 100 of file ftpcontentprovider.hxx.

Referenced by forHost(), and setHost().


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