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

#include <ftpcontent.hxx>

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

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, const 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 () 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 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 (const css::uno::Reference< css::uno::XComponentContext > &rxContext, const rtl::Reference< ContentProviderImplHelper > &rxProvider, const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier)
 
virtual ~ContentImplHelper () override
 
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 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 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
 
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

FTPContentProviderm_pFCP
 
FTPURL m_aFTPURL
 
bool m_bInserted
 
bool m_bTitleSet
 
css::ucb::ContentInfo const 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< ContentProviderImplHelperm_xProvider
 
sal_uInt32 m_nCommandId
 

Detailed Description

Definition at line 43 of file ftpcontent.hxx.

Constructor & Destructor Documentation

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,
const css::ucb::ContentInfo &  aInfo 
)
FTPContent::~FTPContent ( )
overridevirtual

Definition at line 115 of file ftpcontent.cxx.

Member Function Documentation

void SAL_CALL FTPContent::abort ( sal_Int32  CommandId)
overridevirtual

Implements ucbhelper::ContentImplHelper.

Definition at line 197 of file ftpcontent.cxx.

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

Reimplemented from ucbhelper::ContentImplHelper.

Definition at line 121 of file ftpcontent.cxx.

Reference< XContent > SAL_CALL FTPContent::createNewContent ( const css::ucb::ContentInfo &  Info)
overridevirtual
Any SAL_CALL FTPContent::execute ( const css::ucb::Command &  aCommand,
sal_Int32  CommandId,
const css::uno::Reference< css::ucb::XCommandEnvironment > &  Environment 
)
overridevirtual
uno::Sequence< ucb::CommandInfo > FTPContent::getCommands ( const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv)
overrideprivatevirtual

Implements ucbhelper::ContentImplHelper.

Definition at line 106 of file ftpcontentcaps.cxx.

References COMMAND_COUNT.

OUString SAL_CALL FTPContent::getContentType ( )
overridevirtual

Implements ucbhelper::ContentImplHelper.

Definition at line 189 of file ftpcontent.cxx.

References FTP_CONTENT_TYPE.

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

Reimplemented from ucbhelper::ContentImplHelper.

Definition at line 148 of file ftpcontent.cxx.

OUString SAL_CALL FTPContent::getImplementationName ( )
overridevirtual

Implements ucbhelper::ContentImplHelper.

Definition at line 170 of file ftpcontent.cxx.

Reference< XInterface > SAL_CALL FTPContent::getParent ( )
overridevirtual
OUString FTPContent::getParentURL ( )
overrideprivatevirtual

Implements ucbhelper::ContentImplHelper.

Definition at line 623 of file ftpcontent.cxx.

References m_aFTPURL, and ftp::FTPURL::parent().

uno::Sequence< beans::Property > FTPContent::getProperties ( const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv)
overrideprivatevirtual

Implements ucbhelper::ContentImplHelper.

Definition at line 36 of file ftpcontentcaps.cxx.

References PROPS_COUNT.

Referenced by setPropertyValues().

Reference< XRow > FTPContent::getPropertyValues ( const css::uno::Sequence< css::beans::Property > &  seqProp)
private
css::uno::Sequence< OUString > SAL_CALL FTPContent::getSupportedServiceNames ( )
overridevirtual

Implements ucbhelper::ContentImplHelper.

Definition at line 180 of file ftpcontent.cxx.

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

Reimplemented from ucbhelper::ContentImplHelper.

Definition at line 153 of file ftpcontent.cxx.

References cppu::OTypeCollection::getTypes().

void FTPContent::insert ( const css::ucb::InsertCommandArgument &  ,
const css::uno::Reference< css::ucb::XCommandEnvironment > &   
)
private
Sequence< ContentInfo > SAL_CALL FTPContent::queryCreatableContentsInfo ( )
overridevirtual

Definition at line 564 of file ftpcontent.cxx.

References queryCreatableContentsInfo_Static().

Referenced by getPropertyValues().

Sequence< ContentInfo > FTPContent::queryCreatableContentsInfo_Static ( )
static
Exceptions
css::uno::RuntimeException

Definition at line 571 of file ftpcontent.cxx.

References FTP_FILE, FTP_FOLDER, and Property.

Referenced by queryCreatableContentsInfo(), and ftp::ResultSetI::ResultSetI().

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

Reimplemented from ucbhelper::ContentImplHelper.

Definition at line 133 of file ftpcontent.cxx.

References cppu::queryInterface().

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

Reimplemented from ucbhelper::ContentImplHelper.

Definition at line 127 of file ftpcontent.cxx.

void SAL_CALL FTPContent::setParent ( const css::uno::Reference< css::uno::XInterface > &  Parent)
overridevirtual

Reimplemented from ucbhelper::ContentImplHelper.

Definition at line 617 of file ftpcontent.cxx.

Sequence< Any > FTPContent::setPropertyValues ( const css::uno::Sequence< css::beans::PropertyValue > &  seqPropVal)
private
sal_Bool SAL_CALL FTPContent::supportsService ( const OUString &  ServiceName)
overridevirtual

Reimplemented from ucbhelper::ContentImplHelper.

Definition at line 175 of file ftpcontent.cxx.

References cppu::supportsService().

Member Data Documentation

FTPURL ftp::FTPContent::m_aFTPURL
private
css::ucb::ContentInfo const ftp::FTPContent::m_aInfo
private

Definition at line 116 of file ftpcontent.hxx.

Referenced by insert().

bool ftp::FTPContent::m_bInserted
private

Definition at line 114 of file ftpcontent.hxx.

Referenced by insert(), and setPropertyValues().

bool ftp::FTPContent::m_bTitleSet
private

Definition at line 115 of file ftpcontent.hxx.

Referenced by insert(), and setPropertyValues().

FTPContentProvider* ftp::FTPContent::m_pFCP
private

Definition at line 112 of file ftpcontent.hxx.

Referenced by createNewContent(), and execute().


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