1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23#ifndef __com_sun_star_configuration_backend_OfflineBackend_idl__
24#define __com_sun_star_configuration_backend_OfflineBackend_idl__
25
26#ifndef __com_sun_star_configuration_backend_BackendAdapter_idl__
27#include <com/sun/star/configuration/backend/BackendAdapter.idl>
28#endif
29
30//=============================================================================
31
32module com { module sun { module star { module configuration { module backend {
33
34//=============================================================================
35
36/**
37    implements <type>BackendAdapter</type> that maintains a cache so it
38    can operate even if the <type>SingleBackend</type> holding the data
39    is inaccessible.
40
41    @see com::sun::star::configuration::backend::OnlineBackend
42
43    @since OpenOffice 1.1.2
44*/
45published service OfflineBackend
46{
47	//-------------------------------------------------------------------------
48
49    /** provides access to configuration data from a <type>SingleBackend</type>.
50
51      <p>If no backend is provided during initialization or if the context
52        contains an <code>Offline</code> flag that is <TRUE/>, then offline mode
53        is activated. This may fail, if the offline cache has not been filled
54        during a previous execution.
55      </p>
56      <p>Less entities may be available from <type>XBackendEntities</type>,
57      when operating in offline mode than when operating with an online
58      <type>SingleBackend</type>.
59      </p>
60      <p>If offline mode is not invoked, the implementation behaves
61        like any other <type>BackendAdapter</type>.
62      </p>
63
64      */
65    service BackendAdapter ;
66
67	//-------------------------------------------------------------------------
68} ;
69
70//=============================================================================
71
72} ; } ; } ; } ; } ;
73
74#endif
75