20#ifndef INCLUDED_UCBHELPER_PROVIDERHELPER_HXX
21#define INCLUDED_UCBHELPER_PROVIDERHELPER_HXX
25#include <com/sun/star/ucb/XContentProvider.hpp>
26#include <com/sun/star/lang/XServiceInfo.hpp>
34 class XPropertySetRegistry;
35 class XPersistentPropertySet;
45class ContentImplHelper;
64 public cppu::WeakImplHelper<
65 css::lang::XServiceInfo,
66 css::ucb::XContentProvider>
70 std::unique_ptr<ucbhelper_impl::ContentProviderImplHelper_Impl>
m_pImpl;
74 css::uno::Reference< css::uno::XComponentContext >
m_xContext;
80 getAdditionalPropertySetRegistry();
107 queryExistingContent(
const OUString& rURL );
123 void registerNewContent(
124 const css::uno::Reference< css::ucb::XContent > & xContent );
133 css::uno::Reference< css::uno::XComponentContext > xContext );
140 virtual OUString SAL_CALL
144 virtual css::uno::Sequence< OUString > SAL_CALL
162 virtual css::uno::Reference< css::ucb::XContent > SAL_CALL
163 queryContent(
const css::uno::Reference< css::ucb::XContentIdentifier >& Identifier )
override = 0;
164 virtual sal_Int32 SAL_CALL
165 compareContentIds(
const css::uno::Reference< css::ucb::XContentIdentifier >& Id1,
166 const css::uno::Reference< css::ucb::XContentIdentifier >& Id2 )
override;
198 css::uno::Reference< css::ucb::XPersistentPropertySet >
199 getAdditionalPropertySet(
const OUString& rKey,
bool bCreate );
211 bool renameAdditionalPropertySet(
const OUString& rOldKey,
212 const OUString& rNewKey,
225 bool copyAdditionalPropertySet(
const OUString& rSourceKey,
226 const OUString& rTargetKey,
238 bool removeAdditionalPropertySet(
const OUString& rKey,
This is an abstract base class for implementations of the service com.sun.star.ucb....
This is an abstract base class for implementations of the service com.sun.star.ucb....
virtual css::uno::Reference< css::ucb::XContent > SAL_CALL queryContent(const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier) override=0
This method returns a content with the requested id.
rtl::Reference< ContentImplHelper > queryExistingContent(const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier)
This method returns a content with the given id, if it already exists.
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override=0
virtual OUString SAL_CALL getImplementationName() override=0
osl::Mutex & getContentListMutex()
This method returns a mutex, which protects the content list of the provider.
std::unique_ptr< ucbhelper_impl::ContentProviderImplHelper_Impl > m_pImpl
css::uno::Reference< css::uno::XComponentContext > m_xContext
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
std::vector< ContentImplHelperRef > ContentRefList
rtl::Reference< ContentImplHelper > ContentImplHelperRef
#define UCBHELPER_DLLPUBLIC
#define UCBHELPER_DLLPRIVATE