29 #ifndef __SB_STRINGBUNDLESERVICE_H__
30 #define __SB_STRINGBUNDLESERVICE_H__
52 #include <sbIStringBundleService.h>
55 #include <nsCOMArray.h>
57 #include <nsIObserver.h>
58 #include <nsIStringBundle.h>
71 #define SB_STRINGBUNDLESERVICE_CLASSNAME "sbStringBundleService"
72 #define SB_STRINGBUNDLESERVICE_CID \
78 { 0x90, 0xC0, 0xBC, 0x15, 0x9C, 0x01, 0x60, 0x37 } \
110 NS_DECL_NSISTRINGBUNDLESERVICE
112 NS_DECL_SBISTRINGBUNDLESERVICE
141 nsCOMPtr<nsIStringBundleService>
142 mBaseStringBundleService;
143 nsCOMPtr<nsIStringBundle> mBundle;
144 nsCOMPtr<nsIStringBundle> mBrandBundle;
190 NS_DECL_NSISTRINGBUNDLE
197 static nsresult
New(nsIStringBundle* aBaseStringBundle,
217 nsCOMPtr<nsIStringBundleService>
218 mBaseStringBundleService;
219 nsCOMPtr<nsIStringBundle> mBaseStringBundle;
220 nsCOMArray<nsIStringBundle> mStringBundleList;
229 nsresult Initialize();
231 nsresult LoadBundle(nsAString& aBundleURLSpec);
233 nsresult LoadBundle(nsIStringBundle* aBundle);
235 nsresult ApplySubstitutions(nsAString& aString);
239 #endif // __SB_STRINGBUNDLESERVICE_H__
NS_DECL_ISUPPORTS NS_DECL_NSISTRINGBUNDLESERVICE NS_DECL_NSIOBSERVER NS_DECL_SBISTRINGBUNDLESERVICE sbStringBundleService()
virtual ~sbStringBundleService()
NS_DECL_ISUPPORTS static NS_DECL_NSISTRINGBUNDLE nsresult New(nsIStringBundle *aBaseStringBundle, sbStringBundle **aStringBundle)
Interface for the Songbird string bundle service. Instantiate as a component service.
virtual ~sbStringBundle()