1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24 /************************************************************************** 25 TODO 26 ************************************************************************** 27 28 *************************************************************************/ 29 #ifndef _FTP_FTPCONTENTIDENTIFIER_HXX_ 30 #define _FTP_FTPCONTENTIDENTIFIER_HXX_ 31 32 #include <vector> 33 #include "curl.hxx" 34 #include <curl/easy.h> 35 #include <cppuhelper/weak.hxx> 36 #include <cppuhelper/queryinterface.hxx> 37 #include <com/sun/star/ucb/XContentIdentifier.hpp> 38 #include <com/sun/star/lang/XTypeProvider.hpp> 39 40 #include "ftpdirp.hxx" 41 #include "ftpurl.hxx" 42 43 44 namespace ftp { 45 46 47 class FTPContentProvider; 48 49 50 class FTPContentIdentifier 51 : public cppu::OWeakObject, 52 public com::sun::star::lang::XTypeProvider, 53 public com::sun::star::ucb::XContentIdentifier 54 { 55 public: 56 57 FTPContentIdentifier(const rtl::OUString& ident); 58 59 ~FTPContentIdentifier(); 60 61 // XInterface 62 63 virtual com::sun::star::uno::Any SAL_CALL 64 queryInterface( const com::sun::star::uno::Type& rType ); 65 66 virtual void SAL_CALL acquire( void ) throw(); 67 68 virtual void SAL_CALL release( void ) throw(); 69 70 // XTypeProvider 71 72 virtual 73 com::sun::star::uno::Sequence<com::sun::star::uno::Type> SAL_CALL 74 getTypes( 75 ); 76 77 virtual com::sun::star::uno::Sequence<sal_Int8> SAL_CALL 78 getImplementationId( 79 ); 80 81 82 // XContentIdentifier 83 84 virtual ::rtl::OUString SAL_CALL 85 getContentIdentifier( 86 ); 87 88 virtual ::rtl::OUString SAL_CALL 89 getContentProviderScheme( 90 ); 91 92 93 private: 94 95 rtl::OUString m_ident; 96 }; 97 98 } 99 100 101 #endif 102