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 throw( com::sun::star::uno::RuntimeException ); 66 67 virtual void SAL_CALL acquire( void ) throw(); 68 69 virtual void SAL_CALL release( void ) throw(); 70 71 // XTypeProvider 72 73 virtual 74 com::sun::star::uno::Sequence<com::sun::star::uno::Type> SAL_CALL 75 getTypes( 76 ) 77 throw( 78 com::sun::star::uno::RuntimeException 79 ); 80 81 virtual com::sun::star::uno::Sequence<sal_Int8> SAL_CALL 82 getImplementationId( 83 ) 84 throw( 85 com::sun::star::uno::RuntimeException 86 ); 87 88 89 // XContentIdentifier 90 91 virtual ::rtl::OUString SAL_CALL 92 getContentIdentifier( 93 ) 94 throw ( 95 com::sun::star::uno::RuntimeException 96 ); 97 98 virtual ::rtl::OUString SAL_CALL 99 getContentProviderScheme( 100 ) 101 throw ( 102 ::com::sun::star::uno::RuntimeException 103 ); 104 105 106 private: 107 108 rtl::OUString m_ident; 109 }; 110 111 } 112 113 114 #endif 115