Update ooo320-m1
[ooovba.git] / shell / source / backends / kde4be / kde4commonlayer.hxx
blobd37bab862762e0774448d90c164a16dae8362ec5
1 #pragma once
3 #include "kde4backend.hxx"
4 #include <com/sun/star/uno/XComponentContext.hpp>
5 #include <com/sun/star/configuration/backend/XLayer.hpp>
6 #include <com/sun/star/configuration/backend/BackendAccessException.hpp>
7 #include <com/sun/star/configuration/backend/XLayerContentDescriber.hpp>
8 #include <com/sun/star/util/XTimeStamped.hpp>
9 #include <cppuhelper/implbase2.hxx>
11 namespace css = com::sun::star ;
12 namespace uno = css::uno ;
13 namespace lang = css::lang ;
14 namespace backend = css::configuration::backend ;
15 namespace util = css::util ;
17 /**
18 Implementation of the XLayer interface for the KDE values mapped into
19 the org.openoffice.Office.Common configuration component.
21 class KDECommonLayer : public cppu::WeakImplHelper2<backend::XLayer, util::XTimeStamped>
23 public :
24 /**
25 Constructor given the component context
27 @param xContext The component context
30 KDECommonLayer(const uno::Reference<uno::XComponentContext>& xContext);
32 // XLayer
33 virtual void SAL_CALL readData(
34 const uno::Reference<backend::XLayerHandler>& xHandler)
35 throw ( backend::MalformedDataException,
36 lang::NullPointerException,
37 lang::WrappedTargetException,
38 uno::RuntimeException) ;
40 // XTimeStamped
41 virtual rtl::OUString SAL_CALL getTimestamp(void)
42 throw (uno::RuntimeException);
44 protected:
46 /** Destructor */
47 ~KDECommonLayer(void) {}
49 private :
50 uno::Reference<backend::XLayerContentDescriber> m_xLayerContentDescriber ;