LibreOffice Module ucb (master) 1
|
#include <ftpcontentprovider.hxx>
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< FTPLoaderThread > | m_ftpLoaderThread |
std::unique_ptr< ucbhelper::InternetProxyDecider > | m_pProxyDecider |
std::vector< ServerInfo > | m_ServerInfo |
Additional Inherited Members | |
Protected Member Functions inherited from ucbhelper::ContentProviderImplHelper | |
rtl::Reference< ContentImplHelper > | queryExistingContent (const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier) |
rtl::Reference< ContentImplHelper > | queryExistingContent (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 |
Definition at line 42 of file ftpcontentprovider.hxx.
|
explicit |
Definition at line 43 of file ftpcontentprovider.cxx.
|
overridevirtual |
Definition at line 50 of file ftpcontentprovider.cxx.
References m_ftpLoaderThread, and m_pProxyDecider.
|
overridevirtualnoexcept |
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().
|
overridevirtual |
Definition at line 80 of file ftpcontentprovider.cxx.
|
overridevirtual |
Implements ucbhelper::ContentProviderImplHelper.
Definition at line 99 of file ftpcontentprovider.cxx.
|
overridevirtual |
Implements ucbhelper::ContentProviderImplHelper.
Definition at line 109 of file ftpcontentprovider.cxx.
References FTP_CONTENT_PROVIDER_SERVICE_NAME.
|
overridevirtual |
Definition at line 85 of file ftpcontentprovider.cxx.
References cppu::OTypeCollection::getTypes().
CURL * FTPContentProvider::handle | ( | ) |
Definition at line 181 of file ftpcontentprovider.cxx.
References m_ftpLoaderThread.
Referenced by ftp::FTPURL::del(), ftp::FTPURL::insert(), ftp::FTPURL::list(), ftp::FTPURL::mkdir(), ftp::FTPURL::net_title(), ftp::FTPURL::open(), and ftp::FTPURL::ren().
|
private |
Definition at line 175 of file ftpcontentprovider.cxx.
References m_ftpLoaderThread, m_pProxyDecider, and ucbhelper::ContentProviderImplHelper::m_xContext.
Referenced by queryContent().
|
overridevirtual |
Implements ucbhelper::ContentProviderImplHelper.
Definition at line 119 of file ftpcontentprovider.cxx.
References aURL, ex, cppu::getCaughtException(), init(), ucbhelper::ContentProviderImplHelper::m_aMutex, m_ftpLoaderThread, m_pProxyDecider, ucbhelper::ContentProviderImplHelper::m_xContext, ucbhelper::ContentProviderImplHelper::queryExistingContent(), and ucbhelper::ContentProviderImplHelper::registerNewContent().
|
overridevirtual |
Definition at line 69 of file ftpcontentprovider.cxx.
References cppu::queryInterface().
|
overridevirtualnoexcept |
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 | ||
) |
Definition at line 206 of file ftpcontentprovider.cxx.
References ftp::FTPContentProvider::ServerInfo::account, ftp::FTPContentProvider::ServerInfo::host, i, ucbhelper::ContentProviderImplHelper::m_aMutex, m_ServerInfo, ftp::FTPContentProvider::ServerInfo::password, ftp::FTPContentProvider::ServerInfo::port, and ftp::FTPContentProvider::ServerInfo::username.
Referenced by ftp::FTPContent::execute(), and ftp::FTPURL::parse().
|
overridevirtual |
Reimplemented from ucbhelper::ContentProviderImplHelper.
Definition at line 104 of file ftpcontentprovider.cxx.
References ServiceName, and cppu::supportsService().
|
private |
Definition at line 98 of file ftpcontentprovider.hxx.
Referenced by handle(), init(), queryContent(), and ~FTPContentProvider().
|
private |
Definition at line 99 of file ftpcontentprovider.hxx.
Referenced by init(), queryContent(), and ~FTPContentProvider().
|
private |
Definition at line 100 of file ftpcontentprovider.hxx.