1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 /**************************************************************************
22 **************************************************************************
24 *************************************************************************/
25 #ifndef _FTP_FTPCONTENTIDENTIFIER_HXX_
26 #define _FTP_FTPCONTENTIDENTIFIER_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"
42 class FTPContentIdentifier
43 : public cppu::OWeakObject
,
44 public com::sun::star::lang::XTypeProvider
,
45 public com::sun::star::ucb::XContentIdentifier
49 FTPContentIdentifier(const rtl::OUString
& ident
);
51 ~FTPContentIdentifier();
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();
66 com::sun::star::uno::Sequence
<com::sun::star::uno::Type
> SAL_CALL
70 com::sun::star::uno::RuntimeException
73 virtual com::sun::star::uno::Sequence
<sal_Int8
> SAL_CALL
77 com::sun::star::uno::RuntimeException
83 virtual ::rtl::OUString SAL_CALL
87 com::sun::star::uno::RuntimeException
90 virtual ::rtl::OUString SAL_CALL
91 getContentProviderScheme(
94 ::com::sun::star::uno::RuntimeException
100 rtl::OUString m_ident
;
108 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */