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 INCLUDED_UCB_SOURCE_UCP_FTP_FTPCONTENTIDENTIFIER_HXX
26 #define INCLUDED_UCB_SOURCE_UCP_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 OUString
& ident
);
51 virtual ~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
, std::exception
) SAL_OVERRIDE
;
59 virtual void SAL_CALL
acquire() throw() SAL_OVERRIDE
;
61 virtual void SAL_CALL
release() throw() SAL_OVERRIDE
;
66 com::sun::star::uno::Sequence
<com::sun::star::uno::Type
> SAL_CALL
70 com::sun::star::uno::RuntimeException
, std::exception
73 virtual com::sun::star::uno::Sequence
<sal_Int8
> SAL_CALL
77 com::sun::star::uno::RuntimeException
, std::exception
83 virtual OUString SAL_CALL
87 com::sun::star::uno::RuntimeException
, std::exception
90 virtual OUString SAL_CALL
91 getContentProviderScheme(
94 ::com::sun::star::uno::RuntimeException
, std::exception
108 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */