1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * Version: MPL 1.1 / GPLv3+ / LGPLv3+
5 * The contents of this file are subject to the Mozilla Public License Version
6 * 1.1 (the "License"); you may not use this file except in compliance with
7 * the License or as specified alternatively below. You may obtain a copy of
8 * the License at http://www.mozilla.org/MPL/
10 * Software distributed under the License is distributed on an "AS IS" basis,
11 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12 * for the specific language governing rights and limitations under the
15 * Major Contributor(s):
16 * [ Copyright (C) 2011 SUSE <cbosdonnat@suse.com> (initial developer) ]
18 * All Rights Reserved.
20 * For minor contributions see the git repository.
22 * Alternatively, the contents of this file may be used under the terms of
23 * either the GNU General Public License Version 3 or later (the "GPLv3+"), or
24 * the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
25 * in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
26 * instead of those above.
29 #ifndef CMIS_PROVIDER_HXX
30 #define CMIS_PROVIDER_HXX
32 #include <com/sun/star/beans/Property.hpp>
33 #include <ucbhelper/providerhelper.hxx>
34 #include <libcmis/session.hxx>
39 class ContentProvider
: public ::ucbhelper::ContentProviderImplHelper
42 std::map
< rtl::OUString
, libcmis::Session
* > m_aSessionCache
;
45 ContentProvider( const ::com::sun::star::uno::Reference
<
46 ::com::sun::star::uno::XComponentContext
>& rxContext
);
47 virtual ~ContentProvider();
59 virtual ::com::sun::star::uno::Reference
<
60 ::com::sun::star::ucb::XContent
> SAL_CALL
61 queryContent( const ::com::sun::star::uno::Reference
<
62 ::com::sun::star::ucb::XContentIdentifier
>& Identifier
)
63 throw( ::com::sun::star::ucb::IllegalIdentifierException
,
64 ::com::sun::star::uno::RuntimeException
);
66 libcmis::Session
* getSession( const rtl::OUString
& sBindingUrl
);
67 void registerSession( const rtl::OUString
& sBindingUrl
, libcmis::Session
* pSession
);
74 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */