LibreOffice Module ucb (master)  1
ftpcontentidentifier.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
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/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
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 .
18  */
19 
20 /**************************************************************************
21  TODO
22  **************************************************************************
23 
24  *************************************************************************/
25 #ifndef INCLUDED_UCB_SOURCE_UCP_FTP_FTPCONTENTIDENTIFIER_HXX
26 #define INCLUDED_UCB_SOURCE_UCP_FTP_FTPCONTENTIDENTIFIER_HXX
27 
28 #include <vector>
29 #include "curl.hxx"
30 #include <curl/easy.h>
31 #include <cppuhelper/weak.hxx>
33 #include <com/sun/star/ucb/XContentIdentifier.hpp>
34 #include <com/sun/star/lang/XTypeProvider.hpp>
35 
36 #include "ftpdirp.hxx"
37 #include "ftpurl.hxx"
38 
39 
40 namespace ftp {
41 
43  : public cppu::OWeakObject,
44  public css::lang::XTypeProvider,
45  public css::ucb::XContentIdentifier
46  {
47  public:
48 
49  explicit FTPContentIdentifier(const OUString& ident);
50 
51  virtual ~FTPContentIdentifier() override;
52 
53  // XInterface
54 
55  virtual css::uno::Any SAL_CALL
56  queryInterface( const css::uno::Type& rType ) override;
57 
58  virtual void SAL_CALL acquire() throw() override;
59 
60  virtual void SAL_CALL release() throw() override;
61 
62  // XTypeProvider
63 
64  virtual
65  css::uno::Sequence<css::uno::Type> SAL_CALL
66  getTypes() override;
67 
68  virtual css::uno::Sequence<sal_Int8> SAL_CALL
69  getImplementationId() override;
70 
71 
72  // XContentIdentifier
73 
74  virtual OUString SAL_CALL
75  getContentIdentifier() override;
76 
77  virtual OUString SAL_CALL
78  getContentProviderScheme() override;
79 
80 
81  private:
82 
83  OUString const m_ident;
84  };
85 
86 }
87 
88 
89 #endif
90 
91 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void SAL_CALL acquire() override
virtual ~FTPContentIdentifier() override
virtual OUString SAL_CALL getContentIdentifier() override
FTPContentIdentifier(const OUString &ident)
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType) override
Definition of ftpcontentprovider.
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
virtual void SAL_CALL release() override
virtual OUString SAL_CALL getContentProviderScheme() override
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override