1 #ifndef _LOCALELAYER_HXX_
2 #define _LOCALELAYER_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/PropertyInfo.hpp>
7 #include <com/sun/star/configuration/backend/BackendAccessException.hpp>
9 #ifndef _COM_SUN_STAR_CONFIGURATION_BACKEND_XLAYERCONTENTDESCIBER_HPP_
10 #include <com/sun/star/configuration/backend/XLayerContentDescriber.hpp>
12 #include <com/sun/star/util/XTimeStamped.hpp>
13 #include <com/sun/star/uno/Sequence.hxx>
14 #include <cppuhelper/implbase2.hxx>
17 namespace css
= com::sun::star
;
18 namespace uno
= css::uno
;
19 namespace lang
= css::lang
;
20 namespace backend
= css::configuration::backend
;
21 namespace util
= css::util
;
24 Implementation of the XLayer interfaces for fixed values
27 class LocaleLayer
: public cppu::WeakImplHelper2
<backend::XLayer
, util::XTimeStamped
>
31 Constructor given the requested component name
33 @param aPropInfoListyMap Gconf->OO key map
34 @param aCompoentName Requested Component Name
35 @param sTimestamp timestamp indicating last modifictaion
37 LocaleLayer(const uno::Sequence
<backend::PropertyInfo
>& aPropInfoList
,
38 const rtl::OUString
& aTimestamp
,
39 const uno::Reference
<uno::XComponentContext
>& xContext
);
45 virtual void SAL_CALL
readData(const uno::Reference
<backend::XLayerHandler
>& xHandler
)
46 throw ( backend::MalformedDataException
,
47 lang::NullPointerException
,
48 lang::WrappedTargetException
,
49 uno::RuntimeException
) ;
52 virtual rtl::OUString SAL_CALL
getTimestamp(void)
53 throw (uno::RuntimeException
);
57 rtl::OUString m_aTimestamp
;
58 rtl::OUString m_aComponent
;
60 uno::Reference
<backend::XLayerContentDescriber
> m_xLayerContentDescriber
;
61 uno::Sequence
<backend::PropertyInfo
> m_aPropInfoList
;
64 #endif // _LOCALELAYER_HXX_