update dev300-m58
[ooovba.git] / configmgr / source / localbe / localmultistratum.hxx
blob34c2235e12579a5c27406cc9e2c4216b92b8f84a
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: localmultistratum.hxx,v $
10 * $Revision: 1.4 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef CONFIGMGR_LOCALBE_LOCALMULTISTRATUM_HXX_
32 #define CONFIGMGR_LOCALBE_LOCALMULTISTRATUM_HXX_
34 #include "localstratumbase.hxx"
35 #include <com/sun/star/configuration/backend/XMultiLayerStratum.hpp>
36 #include <cppuhelper/implbase1.hxx>
38 namespace configmgr
40 namespace localbe
43 namespace css = com::sun::star ;
44 namespace uno = css::uno ;
45 namespace lang = css::lang ;
46 namespace backend = css::configuration::backend ;
48 /**
49 Implements the MultiLayerStratum service for local file access.
51 class LocalMultiStratum : public cppu::ImplInheritanceHelper1< LocalStratumBase, backend::XMultiLayerStratum >
53 public :
54 /**
55 Service constructor from a service factory.
57 @param xContext component context
59 LocalMultiStratum(const uno::Reference<uno::XComponentContext>& xContext) ;
61 /** Destructor */
62 ~LocalMultiStratum() ;
65 // XMultiLayerStratum
66 virtual uno::Sequence< rtl::OUString > SAL_CALL
67 listLayerIds( const rtl::OUString& aComponent, const rtl::OUString& aEntity )
68 throw (backend::BackendAccessException, lang::IllegalArgumentException, uno::RuntimeException);
70 virtual rtl::OUString SAL_CALL
71 getUpdateLayerId( const rtl::OUString& aComponent, const rtl::OUString& aEntity )
72 throw (backend::BackendAccessException, lang::NoSupportException,
73 lang::IllegalArgumentException, uno::RuntimeException);
75 virtual uno::Reference< backend::XLayer > SAL_CALL
76 getLayer( const rtl::OUString& aLayerId, const rtl::OUString& aTimestamp )
77 throw (backend::BackendAccessException, lang::IllegalArgumentException, uno::RuntimeException);
79 virtual uno::Sequence< uno::Reference< backend::XLayer > > SAL_CALL
80 getLayers( const uno::Sequence< rtl::OUString >& aLayerIds, const rtl::OUString& aTimestamp )
81 throw (backend::BackendAccessException, lang::IllegalArgumentException, uno::RuntimeException);
83 virtual uno::Sequence< uno::Reference< backend::XLayer > > SAL_CALL
84 getMultipleLayers( const uno::Sequence< rtl::OUString >& aLayerIds, const uno::Sequence< rtl::OUString >& aTimestamps )
85 throw (backend::BackendAccessException, lang::IllegalArgumentException, uno::RuntimeException);
87 virtual uno::Reference< backend::XUpdatableLayer > SAL_CALL
88 getUpdatableLayer( const rtl::OUString& aLayerId )
89 throw (backend::BackendAccessException, lang::NoSupportException,
90 lang::IllegalArgumentException, uno::RuntimeException);
92 private:
93 virtual void getLayerDirectories(rtl::OUString& aLayerUrl, rtl::OUString& aSubLayerUrl) const;
94 virtual const ServiceImplementationInfo * getServiceInfoData() const;
95 } ;
98 } } // configmgr.localbe
100 #endif