1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3  * License, v. 2.0. If a copy of the MPL was not distributed with this
4  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 
6 #ifndef nsILocalStore_h__
7 #define nsILocalStore_h__
8 
9 #include "rdf.h"
10 #include "nsISupports.h"
11 
12 // {DF71C6F1-EC53-11d2-BDCA-000064657374}
13 #define NS_ILOCALSTORE_IID                         \
14   {                                                \
15     0xdf71c6f1, 0xec53, 0x11d2, {                  \
16       0xbd, 0xca, 0x0, 0x0, 0x64, 0x65, 0x73, 0x74 \
17     }                                              \
18   }
19 
20 // {DF71C6F0-EC53-11d2-BDCA-000064657374}
21 #define NS_LOCALSTORE_CID                          \
22   {                                                \
23     0xdf71c6f0, 0xec53, 0x11d2, {                  \
24       0xbd, 0xca, 0x0, 0x0, 0x64, 0x65, 0x73, 0x74 \
25     }                                              \
26   }
27 
28 #define NS_LOCALSTORE_CONTRACTID \
29   NS_RDF_DATASOURCE_CONTRACTID_PREFIX "local-store"
30 
31 class nsILocalStore : public nsISupports {
32  public:
33   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ILOCALSTORE_IID)
34 };
35 
36 NS_DEFINE_STATIC_IID_ACCESSOR(nsILocalStore, NS_ILOCALSTORE_IID)
37 
38 extern nsresult NS_NewLocalStore(nsISupports* aOuter, REFNSIID aIID,
39                                  void** aResult);
40 
41 #endif  // nsILocalStore_h__
42