LibreOffice Module ucb (master) 1
|
#include <ftpcontent.hxx>
Public Member Functions | |
FTPContent (const css::uno::Reference< css::uno::XComponentContext > &rxContext, FTPContentProvider *pProvider, const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier, const FTPURL &FtpUrl) | |
FTPContent (const css::uno::Reference< css::uno::XComponentContext > &rxContext, FTPContentProvider *pProvider, const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier, css::ucb::ContentInfo aInfo) | |
virtual | ~FTPContent () 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 OUString SAL_CALL | getContentType () override |
virtual css::uno::Any SAL_CALL | execute (const css::ucb::Command &aCommand, sal_Int32 CommandId, const css::uno::Reference< css::ucb::XCommandEnvironment > &Environment) override |
virtual void SAL_CALL | abort (sal_Int32 CommandId) override |
virtual css::uno::Sequence< css::ucb::ContentInfo > SAL_CALL | queryCreatableContentsInfo () override |
virtual css::uno::Reference< css::ucb::XContent > SAL_CALL | createNewContent (const css::ucb::ContentInfo &Info) override |
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL | getParent () override |
virtual void SAL_CALL | setParent (const css::uno::Reference< css::uno::XInterface > &Parent) override |
Public Member Functions inherited from ucbhelper::ContentImplHelper | |
ContentImplHelper (css::uno::Reference< css::uno::XComponentContext > xContext, rtl::Reference< ContentProviderImplHelper > xProvider, css::uno::Reference< css::ucb::XContentIdentifier > Identifier) | |
virtual | ~ContentImplHelper () 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=0 |
virtual sal_Bool SAL_CALL | supportsService (const OUString &ServiceName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override=0 |
virtual void SAL_CALL | dispose () override |
virtual void SAL_CALL | addEventListener (const css::uno::Reference< css::lang::XEventListener > &Listener) override |
virtual void SAL_CALL | removeEventListener (const css::uno::Reference< css::lang::XEventListener > &Listener) override |
virtual css::uno::Reference< css::ucb::XContentIdentifier > SAL_CALL | getIdentifier () override |
virtual OUString SAL_CALL | getContentType () override=0 |
virtual void SAL_CALL | addContentEventListener (const css::uno::Reference< css::ucb::XContentEventListener > &Listener) override |
virtual void SAL_CALL | removeContentEventListener (const css::uno::Reference< css::ucb::XContentEventListener > &Listener) override |
virtual sal_Int32 SAL_CALL | createCommandIdentifier () override |
virtual css::uno::Any SAL_CALL | execute (const css::ucb::Command &aCommand, sal_Int32 CommandId, const css::uno::Reference< css::ucb::XCommandEnvironment > &Environment) override=0 |
virtual void SAL_CALL | abort (sal_Int32 CommandId) override=0 |
virtual void SAL_CALL | addPropertiesChangeListener (const css::uno::Sequence< OUString > &PropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &Listener) override |
virtual void SAL_CALL | removePropertiesChangeListener (const css::uno::Sequence< OUString > &PropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &Listener) override |
virtual void SAL_CALL | addCommandInfoChangeListener (const css::uno::Reference< css::ucb::XCommandInfoChangeListener > &Listener) override |
virtual void SAL_CALL | removeCommandInfoChangeListener (const css::uno::Reference< css::ucb::XCommandInfoChangeListener > &Listener) override |
virtual void SAL_CALL | addProperty (const OUString &Name, sal_Int16 Attributes, const css::uno::Any &DefaultValue) override |
virtual void SAL_CALL | removeProperty (const OUString &Name) override |
virtual void SAL_CALL | addPropertySetInfoChangeListener (const css::uno::Reference< css::beans::XPropertySetInfoChangeListener > &Listener) override |
virtual void SAL_CALL | removePropertySetInfoChangeListener (const css::uno::Reference< css::beans::XPropertySetInfoChangeListener > &Listener) override |
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL | getParent () override |
virtual void SAL_CALL | setParent (const css::uno::Reference< css::uno::XInterface > &Parent) override |
const rtl::Reference< ContentProviderImplHelper > & | getProvider () const |
Static Public Member Functions | |
static css::uno::Sequence< css::ucb::ContentInfo > | queryCreatableContentsInfo_Static () |
Private Member Functions | |
virtual css::uno::Sequence< css::beans::Property > | getProperties (const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv) override |
virtual css::uno::Sequence< css::ucb::CommandInfo > | getCommands (const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv) override |
virtual OUString | getParentURL () override |
css::uno::Reference< css::sdbc::XRow > | getPropertyValues (const css::uno::Sequence< css::beans::Property > &seqProp) |
css::uno::Sequence< css::uno::Any > | setPropertyValues (const css::uno::Sequence< css::beans::PropertyValue > &seqPropVal) |
void | insert (const css::ucb::InsertCommandArgument &, const css::uno::Reference< css::ucb::XCommandEnvironment > &) |
Private Attributes | |
FTPContentProvider * | m_pFCP |
FTPURL | m_aFTPURL |
bool | m_bInserted |
bool | m_bTitleSet |
css::ucb::ContentInfo | m_aInfo |
Additional Inherited Members | |
Protected Member Functions inherited from ucbhelper::ContentImplHelper | |
css::uno::Reference< css::beans::XPropertySetInfo > | getPropertySetInfo (const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv, bool bCache=true) |
css::uno::Reference< css::ucb::XCommandInfo > | getCommandInfo (const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv, bool bCache=true) |
void | notifyPropertiesChange (const css::uno::Sequence< css::beans::PropertyChangeEvent > &evt) const |
void | notifyPropertySetInfoChange (const css::beans::PropertySetInfoChangeEvent &evt) const |
void | notifyContentEvent (const css::ucb::ContentEvent &evt) const |
void | inserted () |
void | deleted () |
bool | exchange (const css::uno::Reference< css::ucb::XContentIdentifier > &rNewId) |
css::uno::Reference< css::ucb::XPersistentPropertySet > | getAdditionalPropertySet (bool bCreate) |
bool | renameAdditionalPropertySet (const OUString &rOldKey, const OUString &rNewKey) |
bool | copyAdditionalPropertySet (const OUString &rSourceKey, const OUString &rTargetKey) |
bool | removeAdditionalPropertySet () |
Protected Attributes inherited from ucbhelper::ContentImplHelper | |
osl::Mutex | m_aMutex |
css::uno::Reference< css::uno::XComponentContext > | m_xContext |
css::uno::Reference< css::ucb::XContentIdentifier > | m_xIdentifier |
rtl::Reference< ContentProviderImplHelper > | m_xProvider |
sal_uInt32 | m_nCommandId |
Definition at line 42 of file ftpcontent.hxx.
ftp::FTPContent::FTPContent | ( | const css::uno::Reference< css::uno::XComponentContext > & | rxContext, |
FTPContentProvider * | pProvider, | ||
const css::uno::Reference< css::ucb::XContentIdentifier > & | Identifier, | ||
const FTPURL & | FtpUrl | ||
) |
Referenced by createNewContent().
ftp::FTPContent::FTPContent | ( | const css::uno::Reference< css::uno::XComponentContext > & | rxContext, |
FTPContentProvider * | pProvider, | ||
const css::uno::Reference< css::ucb::XContentIdentifier > & | Identifier, | ||
css::ucb::ContentInfo | aInfo | ||
) |
|
overridevirtual |
Definition at line 114 of file ftpcontent.cxx.
|
overridevirtual |
Implements ucbhelper::ContentImplHelper.
Definition at line 196 of file ftpcontent.cxx.
|
overridevirtualnoexcept |
Reimplemented from ucbhelper::ContentImplHelper.
Definition at line 120 of file ftpcontent.cxx.
|
overridevirtual |
Definition at line 604 of file ftpcontent.cxx.
References FTPContent(), Info, m_pFCP, ucbhelper::ContentImplHelper::m_xContext, and ucbhelper::ContentImplHelper::m_xIdentifier.
Referenced by execute().
|
overridevirtual |
Implements ucbhelper::ContentImplHelper.
Definition at line 239 of file ftpcontent.cxx.
References aCommand, action, Any, ucbhelper::cancelCommandExecution(), ftp::curl_exception::code(), createNewContent(), ftp::FTPURL::del(), ucbhelper::ContentImplHelper::deleted(), tdoc_ucp::DOCUMENT, ucbhelper::SimpleAuthenticationRequest::ENTITY_NA, Environment, ex, ftp::FTPContentProvider::forHost(), ucbhelper::ContentImplHelper::getCommandInfo(), ucbhelper::ContentImplHelper::getPropertySetInfo(), getPropertyValues(), ftp::FTPURL::host(), ftp::FTPURL::ident(), comphelper::InitAnyPropertySequence(), insert(), ftp::FTPURL::list(), m_aFTPURL, m_pFCP, ucbhelper::ContentImplHelper::m_xContext, ucbhelper::ContentImplHelper::m_xProvider, n, ftp::FTPURL::open(), p, ftp::FTPURL::port(), Properties, ftp::FTPContentProvider::setHost(), setPropertyValues(), ftp::FTPURL::username(), and xStream.
|
overrideprivatevirtual |
Implements ucbhelper::ContentImplHelper.
Definition at line 106 of file ftpcontentcaps.cxx.
References COMMAND_COUNT.
|
overridevirtual |
Implements ucbhelper::ContentImplHelper.
Definition at line 188 of file ftpcontent.cxx.
References FTP_CONTENT_TYPE.
|
overridevirtual |
Reimplemented from ucbhelper::ContentImplHelper.
Definition at line 147 of file ftpcontent.cxx.
|
overridevirtual |
Implements ucbhelper::ContentImplHelper.
Definition at line 169 of file ftpcontent.cxx.
|
overridevirtual |
Reimplemented from ucbhelper::ContentImplHelper.
Definition at line 616 of file ftpcontent.cxx.
References m_aFTPURL, ucbhelper::ContentImplHelper::m_xProvider, and ftp::FTPURL::parent().
|
overrideprivatevirtual |
Implements ucbhelper::ContentImplHelper.
Definition at line 631 of file ftpcontent.cxx.
References m_aFTPURL, and ftp::FTPURL::parent().
|
overrideprivatevirtual |
Implements ucbhelper::ContentImplHelper.
Definition at line 36 of file ftpcontentcaps.cxx.
References PROPS_COUNT.
Referenced by setPropertyValues().
|
private |
Definition at line 734 of file ftpcontent.cxx.
References Any, ftp::FTPURL::direntry(), FTP_FILE, FTP_FOLDER, ftp::INETCOREFTP_FILEMODE_ISDIR, ftp::INETCOREFTP_FILEMODE_UNKNOWN, ftp::INETCOREFTP_FILEMODE_WRITE, ftp::FTPDirentry::m_aDate, m_aFTPURL, ftp::FTPDirentry::m_aName, ftp::FTPDirentry::m_nMode, ftp::FTPDirentry::m_nSize, ucbhelper::ContentImplHelper::m_xContext, Name, and queryCreatableContentsInfo().
Referenced by execute().
|
overridevirtual |
Implements ucbhelper::ContentImplHelper.
Definition at line 179 of file ftpcontent.cxx.
|
overridevirtual |
Reimplemented from ucbhelper::ContentImplHelper.
Definition at line 152 of file ftpcontent.cxx.
References cppu::OTypeCollection::getTypes().
|
private |
Definition at line 670 of file ftpcontent.cxx.
References Any, ftp::XInteractionRequestImpl::approved(), ucbhelper::cancelCommandExecution(), ftp::curl_exception::code(), Env, ftp::FILE_MIGHT_EXIST_DURING_INSERT, ftp::FOLDER_MIGHT_EXIST_DURING_INSERT, FTP_FILE, FTP_FOLDER, ftp::XInteractionRequestImpl::getRequest(), ftp::FTPURL::insert(), ucbhelper::ContentImplHelper::inserted(), m_aFTPURL, m_aInfo, ucbhelper::ContentImplHelper::m_aMutex, m_bInserted, m_bTitleSet, and ftp::FTPURL::mkdir().
Referenced by execute().
|
overridevirtual |
Definition at line 581 of file ftpcontent.cxx.
References queryCreatableContentsInfo_Static().
Referenced by getPropertyValues().
|
static |
css::uno::RuntimeException |
Definition at line 588 of file ftpcontent.cxx.
References FTP_FILE, FTP_FOLDER, Property, and props.
Referenced by queryCreatableContentsInfo(), and ftp::ResultSetI::ResultSetI().
|
overridevirtual |
Reimplemented from ucbhelper::ContentImplHelper.
Definition at line 132 of file ftpcontent.cxx.
References cppu::queryInterface().
|
overridevirtualnoexcept |
Reimplemented from ucbhelper::ContentImplHelper.
Definition at line 126 of file ftpcontent.cxx.
|
overridevirtual |
Reimplemented from ucbhelper::ContentImplHelper.
Definition at line 625 of file ftpcontent.cxx.
|
private |
Definition at line 784 of file ftpcontent.cxx.
References Any, ftp::FTPURL::child(), ucbhelper::ContentImplHelper::exchange(), getProperties(), i, ftp::FTPURL::ident(), m_aFTPURL, ucbhelper::ContentImplHelper::m_aMutex, m_bInserted, m_bTitleSet, ucbhelper::ContentImplHelper::m_xIdentifier, Name, ucbhelper::ContentImplHelper::notifyPropertiesChange(), Property, props, ftp::FTPURL::ren(), Title, and Value.
Referenced by execute().
|
overridevirtual |
Reimplemented from ucbhelper::ContentImplHelper.
Definition at line 174 of file ftpcontent.cxx.
References ServiceName, and cppu::supportsService().
|
private |
Definition at line 112 of file ftpcontent.hxx.
Referenced by execute(), getParent(), getParentURL(), getPropertyValues(), insert(), and setPropertyValues().
|
private |
Definition at line 115 of file ftpcontent.hxx.
Referenced by insert().
|
private |
Definition at line 113 of file ftpcontent.hxx.
Referenced by insert(), and setPropertyValues().
|
private |
Definition at line 114 of file ftpcontent.hxx.
Referenced by insert(), and setPropertyValues().
|
private |
Definition at line 111 of file ftpcontent.hxx.
Referenced by createNewContent(), and execute().