fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / ucb / source / ucp / ftp / ftpcontentidentifier.cxx
blobb492c5d582c5bb549c25b30253352ac78e531bed
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 .
21 /**************************************************************************
22 TODO
23 **************************************************************************
25 *************************************************************************/
26 #include "ftpcontentidentifier.hxx"
27 #include "ftpcontentprovider.hxx"
29 using namespace ftp;
30 using namespace com::sun::star::uno;
31 using namespace com::sun::star::ucb;
32 using namespace com::sun::star::lang;
35 FTPContentIdentifier::FTPContentIdentifier(
36 const OUString& ident
38 : m_ident(ident)
43 FTPContentIdentifier::~FTPContentIdentifier()
48 Any SAL_CALL
49 FTPContentIdentifier::queryInterface(
50 const Type& rType
52 throw(
53 RuntimeException, std::exception
56 Any aRet =
57 ::cppu::queryInterface(rType,
58 (static_cast< XTypeProvider* >(this)),
59 (static_cast< XContentIdentifier* >(this)));
61 return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType );
65 void SAL_CALL FTPContentIdentifier::acquire() throw() {
66 OWeakObject::acquire();
70 void SAL_CALL FTPContentIdentifier::release() throw() {
71 OWeakObject::release();
75 Sequence<sal_Int8> SAL_CALL
76 FTPContentIdentifier::getImplementationId()
77 throw(RuntimeException, std::exception)
79 return css::uno::Sequence<sal_Int8>();
83 Sequence<Type> SAL_CALL
84 FTPContentIdentifier::getTypes(
85 void )
86 throw(RuntimeException, std::exception)
88 static cppu::OTypeCollection* pCollection = NULL;
89 if ( !pCollection ) {
90 osl::Guard< osl::Mutex > aGuard( osl::Mutex::getGlobalMutex() );
91 if ( !pCollection )
93 static cppu::OTypeCollection collection(
94 cppu::UnoType<XTypeProvider>::get(),
95 cppu::UnoType<XContentIdentifier>::get());
96 pCollection = &collection;
99 return (*pCollection).getTypes();
103 OUString SAL_CALL
104 FTPContentIdentifier::getContentIdentifier(
106 throw (
107 com::sun::star::uno::RuntimeException, std::exception
110 return m_ident;
114 OUString SAL_CALL
115 FTPContentIdentifier::getContentProviderScheme(
117 throw (
118 com::sun::star::uno::RuntimeException, std::exception
121 return OUString("ftp");
129 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */