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:
Collaboration diagram for ftp::FTPContentProvider:


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 (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)

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 ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext)

Definition at line 43 of file ftpcontentprovider.cxx.

FTPContentProvider::~FTPContentProvider ( )

Definition at line 50 of file ftpcontentprovider.cxx.

References m_ftpLoaderThread, and m_pProxyDecider.

Member Function Documentation

void SAL_CALL FTPContentProvider::acquire ( )

Definition at line 57 of file ftpcontentprovider.cxx.

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().

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

Definition at line 80 of file ftpcontentprovider.cxx.

OUString SAL_CALL FTPContentProvider::getImplementationName ( )

Implements ucbhelper::ContentProviderImplHelper.

Definition at line 99 of file ftpcontentprovider.cxx.

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

Definition at line 85 of file ftpcontentprovider.cxx.

References cppu::OTypeCollection::getTypes().

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

Definition at line 69 of file ftpcontentprovider.cxx.

References cppu::queryInterface().

void SAL_CALL FTPContentProvider::release ( )

Definition at line 63 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)

Reimplemented from ucbhelper::ContentProviderImplHelper.

Definition at line 104 of file ftpcontentprovider.cxx.

References cppu::supportsService().

Member Data Documentation

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

Definition at line 98 of file ftpcontentprovider.hxx.

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

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

Definition at line 99 of file ftpcontentprovider.hxx.

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

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

Definition at line 100 of file ftpcontentprovider.hxx.

Referenced by forHost(), and setHost().

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