Stop leaking all ScPostIt instances.
[LibreOffice.git] / ucb / source / ucp / cmis / cmis_provider.hxx
blob86a0336198365bf3a0ffe111fa90e2368d6fa2b4
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 CMIS_PROVIDER_HXX
11 #define 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 XINTERFACE_DECL()
33 // XTypeProvider
34 XTYPEPROVIDER_DECL()
36 // XServiceInfo
37 XSERVICEINFO_DECL()
39 // XContentProvider
40 virtual ::com::sun::star::uno::Reference<
41 ::com::sun::star::ucb::XContent > SAL_CALL
42 queryContent( const ::com::sun::star::uno::Reference<
43 ::com::sun::star::ucb::XContentIdentifier >& Identifier )
44 throw( ::com::sun::star::ucb::IllegalIdentifierException,
45 ::com::sun::star::uno::RuntimeException );
47 libcmis::Session* getSession( const OUString& sBindingUrl );
48 void registerSession( const OUString& sBindingUrl, libcmis::Session* pSession );
53 #endif
55 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */