intl/strres/src/nsStringBundleTextOverride.h

branch
TOR_BUG_9701
changeset 15
b8a032363ba2
equal deleted inserted replaced
-1:000000000000 0:a87c845ee6a9
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
7 #ifndef nsStringBundleTextOverride_h__
8 #define nsStringBundleTextOverride_h__
9
10 #include "nsIStringBundleOverride.h"
11 #include "nsCOMPtr.h"
12 #include "nsIPersistentProperties2.h"
13
14 // {6316C6CE-12D3-479e-8F53-E289351412B8}
15 #define NS_STRINGBUNDLETEXTOVERRIDE_CID \
16 { 0x6316c6ce, 0x12d3, 0x479e, \
17 { 0x8f, 0x53, 0xe2, 0x89, 0x35, 0x14, 0x12, 0xb8 } }
18
19
20 #define NS_STRINGBUNDLETEXTOVERRIDE_CONTRACTID \
21 "@mozilla.org/intl/stringbundle/text-override;1"
22
23 // an implementation which does overrides from a text file
24
25 class nsStringBundleTextOverride : public nsIStringBundleOverride
26 {
27 public:
28 nsStringBundleTextOverride() { }
29 virtual ~nsStringBundleTextOverride() {}
30
31 nsresult Init();
32
33 NS_DECL_ISUPPORTS
34 NS_DECL_NSISTRINGBUNDLEOVERRIDE
35
36 private:
37 nsCOMPtr<nsIPersistentProperties> mValues;
38
39 };
40
41 #endif

mercurial