Version 4.0.2.1, tag libreoffice-4.0.2.1
[LibreOffice.git] / ucb / source / ucp / ftp / ftpcontentidentifier.hxx
blob7ea7ed5b22bb7f10b4bac3335ab8e9ff3260af0a
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 /**************************************************************************
21 TODO
22 **************************************************************************
24 *************************************************************************/
25 #ifndef _FTP_FTPCONTENTIDENTIFIER_HXX_
26 #define _FTP_FTPCONTENTIDENTIFIER_HXX_
28 #include <vector>
29 #include "curl.hxx"
30 #include <curl/easy.h>
31 #include <cppuhelper/weak.hxx>
32 #include <cppuhelper/queryinterface.hxx>
33 #include <com/sun/star/ucb/XContentIdentifier.hpp>
34 #include <com/sun/star/lang/XTypeProvider.hpp>
36 #include "ftpdirp.hxx"
37 #include "ftpurl.hxx"
40 namespace ftp {
42 class FTPContentIdentifier
43 : public cppu::OWeakObject,
44 public com::sun::star::lang::XTypeProvider,
45 public com::sun::star::ucb::XContentIdentifier
47 public:
49 FTPContentIdentifier(const rtl::OUString& ident);
51 ~FTPContentIdentifier();
53 // XInterface
55 virtual com::sun::star::uno::Any SAL_CALL
56 queryInterface( const com::sun::star::uno::Type& rType )
57 throw( com::sun::star::uno::RuntimeException );
59 virtual void SAL_CALL acquire( void ) throw();
61 virtual void SAL_CALL release( void ) throw();
63 // XTypeProvider
65 virtual
66 com::sun::star::uno::Sequence<com::sun::star::uno::Type> SAL_CALL
67 getTypes(
69 throw(
70 com::sun::star::uno::RuntimeException
73 virtual com::sun::star::uno::Sequence<sal_Int8> SAL_CALL
74 getImplementationId(
76 throw(
77 com::sun::star::uno::RuntimeException
81 // XContentIdentifier
83 virtual ::rtl::OUString SAL_CALL
84 getContentIdentifier(
86 throw (
87 com::sun::star::uno::RuntimeException
90 virtual ::rtl::OUString SAL_CALL
91 getContentProviderScheme(
93 throw (
94 ::com::sun::star::uno::RuntimeException
98 private:
100 rtl::OUString m_ident;
106 #endif
108 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */