fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / ucb / source / ucp / cmis / cmis_provider.hxx
blobb0e7fecce969cbedf54d15ba7610126dd758836f
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/.
8 */
10 #ifndef INCLUDED_UCB_SOURCE_UCP_CMIS_CMIS_PROVIDER_HXX
11 #define INCLUDED_UCB_SOURCE_UCP_CMIS_CMIS_PROVIDER_HXX
13 #include <com/sun/star/beans/Property.hpp>
14 #include <ucbhelper/providerhelper.hxx>
15 #include <libcmis/libcmis.hxx>
17 namespace cmis
20 class ContentProvider : public ::ucbhelper::ContentProviderImplHelper
22 private:
23 std::map< OUString, libcmis::Session* > m_aSessionCache;
25 public:
26 ContentProvider( const ::com::sun::star::uno::Reference<
27 ::com::sun::star::uno::XComponentContext >& rxContext );
28 virtual ~ContentProvider();
30 // XInterface
31 virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType )
32 throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
33 virtual void SAL_CALL acquire()
34 throw() SAL_OVERRIDE;
35 virtual void SAL_CALL release()
36 throw() SAL_OVERRIDE;
38 // XTypeProvider
39 virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId()
40 throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
41 virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes()
42 throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
44 // XServiceInfo
45 virtual OUString SAL_CALL getImplementationName()
46 throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
47 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName )
48 throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
49 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames()
50 throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
52 static OUString getImplementationName_Static();
53 static css::uno::Sequence< OUString > getSupportedServiceNames_Static();
55 static css::uno::Reference< css::lang::XSingleServiceFactory >
56 createServiceFactory( const css::uno::Reference<
57 css::lang::XMultiServiceFactory >& rxServiceMgr );
59 // XContentProvider
60 virtual ::com::sun::star::uno::Reference<
61 ::com::sun::star::ucb::XContent > SAL_CALL
62 queryContent( const ::com::sun::star::uno::Reference<
63 ::com::sun::star::ucb::XContentIdentifier >& Identifier )
64 throw( ::com::sun::star::ucb::IllegalIdentifierException,
65 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
67 libcmis::Session* getSession( const OUString& sBindingUrl );
68 void registerSession( const OUString& sBindingUrl, libcmis::Session* pSession );
73 #endif
75 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */