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, 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

FTPContentProviderm_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< ContentProviderImplHelperm_xProvider
 
sal_uInt32 m_nCommandId
 

Detailed Description

Definition at line 42 of file ftpcontent.hxx.

Constructor & Destructor Documentation

◆ FTPContent() [1/2]

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

◆ FTPContent() [2/2]

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 
)

◆ ~FTPContent()

FTPContent::~FTPContent ( )
overridevirtual

Definition at line 114 of file ftpcontent.cxx.

Member Function Documentation

◆ abort()

void SAL_CALL FTPContent::abort ( sal_Int32  CommandId)
overridevirtual

Implements ucbhelper::ContentImplHelper.

Definition at line 196 of file ftpcontent.cxx.

◆ acquire()

void SAL_CALL FTPContent::acquire ( )
overridevirtualnoexcept

Reimplemented from ucbhelper::ContentImplHelper.

Definition at line 120 of file ftpcontent.cxx.

◆ createNewContent()

Reference< XContent > SAL_CALL FTPContent::createNewContent ( const css::ucb::ContentInfo &  Info)
overridevirtual

◆ execute()

Any SAL_CALL FTPContent::execute ( const css::ucb::Command &  aCommand,
sal_Int32  CommandId,
const css::uno::Reference< css::ucb::XCommandEnvironment > &  Environment 
)
overridevirtual

◆ getCommands()

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.

◆ getContentType()

OUString SAL_CALL FTPContent::getContentType ( )
overridevirtual

Implements ucbhelper::ContentImplHelper.

Definition at line 188 of file ftpcontent.cxx.

References FTP_CONTENT_TYPE.

◆ getImplementationId()

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

Reimplemented from ucbhelper::ContentImplHelper.

Definition at line 147 of file ftpcontent.cxx.

◆ getImplementationName()

OUString SAL_CALL FTPContent::getImplementationName ( )
overridevirtual

Implements ucbhelper::ContentImplHelper.

Definition at line 169 of file ftpcontent.cxx.

◆ getParent()

Reference< XInterface > SAL_CALL FTPContent::getParent ( )
overridevirtual

◆ getParentURL()

OUString FTPContent::getParentURL ( )
overrideprivatevirtual

Implements ucbhelper::ContentImplHelper.

Definition at line 631 of file ftpcontent.cxx.

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

◆ getProperties()

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

◆ getPropertyValues()

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

◆ getSupportedServiceNames()

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

Implements ucbhelper::ContentImplHelper.

Definition at line 179 of file ftpcontent.cxx.

◆ getTypes()

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

Reimplemented from ucbhelper::ContentImplHelper.

Definition at line 152 of file ftpcontent.cxx.

References cppu::OTypeCollection::getTypes().

◆ insert()

void FTPContent::insert ( const css::ucb::InsertCommandArgument &  ,
const css::uno::Reference< css::ucb::XCommandEnvironment > &   
)
private

◆ queryCreatableContentsInfo()

Sequence< ContentInfo > SAL_CALL FTPContent::queryCreatableContentsInfo ( )
overridevirtual

Definition at line 581 of file ftpcontent.cxx.

References queryCreatableContentsInfo_Static().

Referenced by getPropertyValues().

◆ queryCreatableContentsInfo_Static()

Sequence< ContentInfo > FTPContent::queryCreatableContentsInfo_Static ( )
static
Exceptions
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().

◆ queryInterface()

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

Reimplemented from ucbhelper::ContentImplHelper.

Definition at line 132 of file ftpcontent.cxx.

References cppu::queryInterface().

◆ release()

void SAL_CALL FTPContent::release ( )
overridevirtualnoexcept

Reimplemented from ucbhelper::ContentImplHelper.

Definition at line 126 of file ftpcontent.cxx.

◆ setParent()

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

Reimplemented from ucbhelper::ContentImplHelper.

Definition at line 625 of file ftpcontent.cxx.

◆ setPropertyValues()

Sequence< Any > FTPContent::setPropertyValues ( const css::uno::Sequence< css::beans::PropertyValue > &  seqPropVal)
private

◆ supportsService()

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

Reimplemented from ucbhelper::ContentImplHelper.

Definition at line 174 of file ftpcontent.cxx.

References ServiceName, and cppu::supportsService().

Member Data Documentation

◆ m_aFTPURL

FTPURL ftp::FTPContent::m_aFTPURL
private

◆ m_aInfo

css::ucb::ContentInfo ftp::FTPContent::m_aInfo
private

Definition at line 115 of file ftpcontent.hxx.

Referenced by insert().

◆ m_bInserted

bool ftp::FTPContent::m_bInserted
private

Definition at line 113 of file ftpcontent.hxx.

Referenced by insert(), and setPropertyValues().

◆ m_bTitleSet

bool ftp::FTPContent::m_bTitleSet
private

Definition at line 114 of file ftpcontent.hxx.

Referenced by insert(), and setPropertyValues().

◆ m_pFCP

FTPContentProvider* ftp::FTPContent::m_pFCP
private

Definition at line 111 of file ftpcontent.hxx.

Referenced by createNewContent(), and execute().


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