LibreOffice Module ucb (master)  1
ftpcontentidentifier.cxx
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 /**************************************************************************
22  TODO
23  **************************************************************************
24 
25  *************************************************************************/
26 #include "ftpcontentidentifier.hxx"
27 #include "ftpcontentprovider.hxx"
30 
31 using namespace ftp;
32 using namespace com::sun::star::uno;
33 using namespace com::sun::star::ucb;
34 using namespace com::sun::star::lang;
35 
36 
38  const OUString& ident
39 )
40  : m_ident(ident)
41 {
42 }
43 
44 
46 {
47 }
48 
49 
50 Any SAL_CALL
52  const Type& rType
53 )
54 {
55  Any aRet =
56  ::cppu::queryInterface(rType,
57  static_cast< XTypeProvider* >(this),
58  static_cast< XContentIdentifier* >(this));
59 
60  return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType );
61 }
62 
63 
64 void SAL_CALL FTPContentIdentifier::acquire() throw() {
65  OWeakObject::acquire();
66 }
67 
68 
69 void SAL_CALL FTPContentIdentifier::release() throw() {
70  OWeakObject::release();
71 }
72 
73 
74 Sequence<sal_Int8> SAL_CALL
76 {
77  return css::uno::Sequence<sal_Int8>();
78 }
79 
80 
81 Sequence<Type> SAL_CALL
83 {
84  static cppu::OTypeCollection s_aCollection(
87 
88  return s_aCollection.getTypes();
89 }
90 
91 
92 OUString SAL_CALL
94 )
95 {
96  return m_ident;
97 }
98 
99 
100 OUString SAL_CALL
102 )
103 {
104  return "ftp";
105 }
106 
107 
108 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Type
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
css::uno::Sequence< css::uno::Type > SAL_CALL getTypes()