27 #ifndef __SBABSTRACTPROPERTYBUILDER_H__
28 #define __SBABSTRACTPROPERTYBUILDER_H__
30 #include <sbIPropertyBuilder.h>
33 #include <nsStringGlue.h>
34 #include <nsIStringBundle.h>
36 #define NS_FORWARD_SBIPROPERTYBUILDER_NO_GET(_to) \
37 NS_IMETHOD GetPropertyID(nsAString & aPropertyID) { return _to GetPropertyID(aPropertyID); } \
38 NS_IMETHOD SetPropertyID(const nsAString & aPropertyID) { return _to SetPropertyID(aPropertyID); } \
39 NS_IMETHOD GetDisplayName(nsAString & aDisplayName) { return _to GetDisplayName(aDisplayName); } \
40 NS_IMETHOD SetDisplayName(const nsAString & aDisplayName) { return _to SetDisplayName(aDisplayName); } \
41 NS_IMETHOD GetDisplayNameKey(nsAString & aDisplayNameKey) { return _to GetDisplayNameKey(aDisplayNameKey); } \
42 NS_IMETHOD SetDisplayNameKey(const nsAString & aDisplayNameKey) { return _to SetDisplayNameKey(aDisplayNameKey); } \
43 NS_IMETHOD GetUserViewable(PRBool * aUserViewable) { return _to GetUserViewable(aUserViewable); } \
44 NS_IMETHOD SetUserViewable(PRBool aUserViewable) { return _to SetUserViewable(aUserViewable); } \
45 NS_IMETHOD GetUserEditable(PRBool * aUserEditable) { return _to GetUserEditable(aUserEditable); } \
46 NS_IMETHOD SetUserEditable(PRBool aUserEditable) { return _to SetUserEditable(aUserEditable); } \
47 NS_IMETHOD GetRemoteReadable(PRBool * aRemoteReadable) { return _to GetRemoteReadable(aRemoteReadable); } \
48 NS_IMETHOD SetRemoteReadable(PRBool aRemoteReadable) { return _to SetRemoteReadable(aRemoteReadable); } \
49 NS_IMETHOD GetRemoteWritable(PRBool * aRemoteWritable) { return _to GetRemoteWritable(aRemoteWritable); } \
50 NS_IMETHOD SetRemoteWritable(PRBool aRemoteWritable) { return _to SetRemoteWritable(aRemoteWritable); }
57 NS_DECL_SBIPROPERTYBUILDER
62 virtual nsresult
Init();
65 const nsAString&
aName,
68 nsIStringBundle** _retval);
PRPackedBool mUserEditable
nsresult GetFinalDisplayName(nsAString &aDisplayName)
nsCOMPtr< nsIStringBundle > mBundle
PRPackedBool mRemoteReadable
virtual ~sbAbstractPropertyBuilder()
PRPackedBool mUserViewable
PRPackedBool mRemoteWritable
static nsresult CreateBundle(const char *aURLSpec, nsIStringBundle **_retval)
NS_DECL_ISUPPORTS NS_DECL_SBIPROPERTYBUILDER sbAbstractPropertyBuilder()
static nsresult GetStringFromName(nsIStringBundle *aBundle, const nsAString &aName, nsAString &_retval)