1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
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>
20 class ContentProvider
: public ::ucbhelper::ContentProviderImplHelper
23 std::map
< OUString
, libcmis::Session
* > m_aSessionCache
;
26 ContentProvider( const ::com::sun::star::uno::Reference
<
27 ::com::sun::star::uno::XComponentContext
>& rxContext
);
28 virtual ~ContentProvider();
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
);
55 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */