diff options
author | Andreas Bille <abi@openoffice.org> | 2002-08-28 06:23:17 +0000 |
---|---|---|
committer | Andreas Bille <abi@openoffice.org> | 2002-08-28 06:23:17 +0000 |
commit | 596dca1ba20842c3820d4c6fd91dcd596614232a (patch) | |
tree | b401044597f03ed3a28de2a5976b1a4086affb04 /ucb/source/ucp/ftp/ftpcontentidentifier.cxx | |
parent | 66588fcf6a5a9fd90fa192eaaee2139426f3b894 (diff) |
Simply saving
Diffstat (limited to 'ucb/source/ucp/ftp/ftpcontentidentifier.cxx')
-rw-r--r-- | ucb/source/ucp/ftp/ftpcontentidentifier.cxx | 36 |
1 files changed, 25 insertions, 11 deletions
diff --git a/ucb/source/ucp/ftp/ftpcontentidentifier.cxx b/ucb/source/ucp/ftp/ftpcontentidentifier.cxx index 05188fd4e19e..144b9d2fc100 100644 --- a/ucb/source/ucp/ftp/ftpcontentidentifier.cxx +++ b/ucb/source/ucp/ftp/ftpcontentidentifier.cxx @@ -1,58 +1,72 @@ #include "ftpcontentidentifier.hxx" - using namespace ftp; using namespace com::sun::star::uno; using namespace com::sun::star::ucb; -FtpContentIdentifier::FtpContentIdentifier(const rtl::OUString& aIdent) - : m_aIdent(aIdent) +FTPContentIdentifier::FTPContentIdentifier( + const rtl::OUString& aIdent, + FTPContentProvider* pFCP +) + : m_pURL(new FTPURL(aIdent,pFCP)) +{ +} + +FTPContentIdentifier::FTPContentIdentifier(FTPURL* pURL) + : m_pURL(pURL) +{ +} + + +FTPContentIdentifier::~FTPContentIdentifier() { + delete m_pURL; } Any SAL_CALL -FtpContentIdentifier::queryInterface( +FTPContentIdentifier::queryInterface( const Type& rType ) throw( RuntimeException ) { - Any aRet = ::cppu::queryInterface(rType, - SAL_STATIC_CAST(XContentIdentifier*,this)); + Any aRet = + ::cppu::queryInterface(rType, + SAL_STATIC_CAST(XContentIdentifier*,this)); return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType ); } -void SAL_CALL FtpContentIdentifier::acquire( void ) throw() { +void SAL_CALL FTPContentIdentifier::acquire( void ) throw() { OWeakObject::acquire(); } -void SAL_CALL FtpContentIdentifier::release( void ) throw() { +void SAL_CALL FTPContentIdentifier::release( void ) throw() { OWeakObject::release(); } ::rtl::OUString SAL_CALL -FtpContentIdentifier::getContentIdentifier( +FTPContentIdentifier::getContentIdentifier( ) throw ( ::com::sun::star::uno::RuntimeException ) { - return m_aIdent; + return m_pURL->ident(); } ::rtl::OUString SAL_CALL -FtpContentIdentifier::getContentProviderScheme( +FTPContentIdentifier::getContentProviderScheme( ) throw ( ::com::sun::star::uno::RuntimeException |