27 #include <rtl/ref.hxx>
28 #include <com/sun/star/beans/Property.hpp>
34 class XSingleServiceFactory;
42 #define WEBDAV_CONTENT_PROVIDER_SERVICE_NAME "com.sun.star.ucb.WebDAVContentProvider"
47 #define VNDSUNSTARWEBDAV_URL_SCHEME "vnd.sun.star.webdav"
48 #define VNDSUNSTARWEBDAVS_URL_SCHEME u"vnd.sun.star.webdavs"
49 #define HTTP_URL_SCHEME "http"
50 #define HTTPS_URL_SCHEME "https"
51 #define DAV_URL_SCHEME u"dav"
52 #define DAVS_URL_SCHEME u"davs"
53 #define WEBDAV_URL_SCHEME u"webdav"
54 #define WEBDAVS_URL_SCHEME u"webdavs"
56 #define HTTP_CONTENT_TYPE "application/" HTTP_URL_SCHEME "-content"
58 #define WEBDAV_CONTENT_TYPE HTTP_CONTENT_TYPE
59 #define WEBDAV_COLLECTION_TYPE "application/" VNDSUNSTARWEBDAV_URL_SCHEME "-collection"
68 explicit ContentProvider(
const css::uno::Reference< css::uno::XComponentContext >& rContext );
72 virtual css::uno::Any SAL_CALL
queryInterface(
const css::uno::Type & rType )
override;
90 static css::
uno::Reference< css::lang::XSingleServiceFactory >
92 css::lang::XMultiServiceFactory >& rxServiceMgr );
95 virtual css::
uno::Reference< css::
ucb::XContent > SAL_CALL
96 queryContent( const css::
uno::Reference< css::
ucb::XContentIdentifier >& Identifier ) override;
102 css::beans::Property & rProp,
103 bool bStrict = false );
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType) override
virtual css::uno::Reference< css::ucb::XContent > SAL_CALL queryContent(const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier) override
virtual void SAL_CALL acquire() override
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
std::unique_ptr< PropertyMap > m_pProps
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
ContentProvider(const css::uno::Reference< css::uno::XComponentContext > &rContext)
static css::uno::Sequence< OUString > getSupportedServiceNames_Static()
virtual void SAL_CALL release() override
rtl::Reference< DAVSessionFactory > m_xDAVSessionFactory
static OUString getImplementationName_Static()
virtual OUString SAL_CALL getImplementationName() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
bool getProperty(const OUString &rPropName, css::beans::Property &rProp, bool bStrict=false)
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual ~ContentProvider() override
static css::uno::Reference< css::lang::XSingleServiceFactory > createServiceFactory(const css::uno::Reference< css::lang::XMultiServiceFactory > &rxServiceMgr)