summaryrefslogtreecommitdiff
path: root/ucb/source/ucp/ftp/ftpcontentidentifier.hxx
diff options
context:
space:
mode:
authorAndreas Bille <abi@openoffice.org>2002-07-31 14:13:44 +0000
committerAndreas Bille <abi@openoffice.org>2002-07-31 14:13:44 +0000
commit398ba30e1dae68404e47715f29bec2cd5f115213 (patch)
treeeaac38baa2305b3b1ef15f856a5efe680d6cde76 /ucb/source/ucp/ftp/ftpcontentidentifier.hxx
parentb7de4d0960e007dd578760c39f5bfbb9806851ef (diff)
Saving the code
Diffstat (limited to 'ucb/source/ucp/ftp/ftpcontentidentifier.hxx')
-rw-r--r--ucb/source/ucp/ftp/ftpcontentidentifier.hxx60
1 files changed, 60 insertions, 0 deletions
diff --git a/ucb/source/ucp/ftp/ftpcontentidentifier.hxx b/ucb/source/ucp/ftp/ftpcontentidentifier.hxx
new file mode 100644
index 000000000000..d9859ccb5455
--- /dev/null
+++ b/ucb/source/ucp/ftp/ftpcontentidentifier.hxx
@@ -0,0 +1,60 @@
+#ifndef _FTP_FTPCONTENTIDENTIFIER_HXX_
+#define _FTP_FTPCONTENTIDENTIFIER_HXX_
+
+#ifndef _CPPUHELPER_WEAK_HXX_
+#include <cppuhelper/weak.hxx>
+#endif
+#ifndef _CPPUHELPER_QUERYINTERFACE_HXX_
+#include <cppuhelper/queryinterface.hxx>
+#endif
+#ifndef _COM_SUN_STAR_UCB_XCONTENTIDENTIFIER_HPP_
+#include <com/sun/star/ucb/XContentIdentifier.hpp>
+#endif
+
+
+namespace ftp {
+
+ class FtpContentIdentifier
+ : public cppu::OWeakObject,
+ public com::sun::star::ucb::XContentIdentifier
+ {
+ public:
+
+ FtpContentIdentifier(const rtl::OUString& ident);
+
+ // XInterface
+
+ virtual com::sun::star::uno::Any SAL_CALL
+ queryInterface( const com::sun::star::uno::Type& rType )
+ throw( com::sun::star::uno::RuntimeException );
+
+ virtual void SAL_CALL acquire( void ) throw();
+
+ virtual void SAL_CALL release( void ) throw();
+
+
+ // XContentIdentifier
+
+ virtual ::rtl::OUString SAL_CALL
+ getContentIdentifier(
+ )
+ throw (
+ ::com::sun::star::uno::RuntimeException
+ );
+
+ virtual ::rtl::OUString SAL_CALL
+ getContentProviderScheme(
+ )
+ throw (
+ ::com::sun::star::uno::RuntimeException
+ );
+
+ private:
+
+ rtl::OUString m_aIdent;
+ };
+
+}
+
+
+#endif