1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/xpcom/ds/nsIPersistentProperties2.idl
3 : */
4 :
5 : #ifndef __gen_nsIPersistentProperties2_h__
6 : #define __gen_nsIPersistentProperties2_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : #ifndef __gen_nsIProperties_h__
14 : #include "nsIProperties.h"
15 : #endif
16 :
17 : #ifndef __gen_nsISimpleEnumerator_h__
18 : #include "nsISimpleEnumerator.h"
19 : #endif
20 :
21 : /* For IDL files that don't want to include root IDL files. */
22 : #ifndef NS_NO_VTABLE
23 : #define NS_NO_VTABLE
24 : #endif
25 : class nsIInputStream; /* forward declaration */
26 :
27 : class nsIOutputStream; /* forward declaration */
28 :
29 :
30 : /* starting interface: nsIPropertyElement */
31 : #define NS_IPROPERTYELEMENT_IID_STR "283ee646-1aef-11d4-98b3-00c04fa0ce9a"
32 :
33 : #define NS_IPROPERTYELEMENT_IID \
34 : {0x283ee646, 0x1aef, 0x11d4, \
35 : { 0x98, 0xb3, 0x00, 0xc0, 0x4f, 0xa0, 0xce, 0x9a }}
36 :
37 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIPropertyElement : public nsISupports {
38 : public:
39 :
40 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPROPERTYELEMENT_IID)
41 :
42 : /* attribute AUTF8String key; */
43 : NS_SCRIPTABLE NS_IMETHOD GetKey(nsACString & aKey) = 0;
44 : NS_SCRIPTABLE NS_IMETHOD SetKey(const nsACString & aKey) = 0;
45 :
46 : /* attribute AString value; */
47 : NS_SCRIPTABLE NS_IMETHOD GetValue(nsAString & aValue) = 0;
48 : NS_SCRIPTABLE NS_IMETHOD SetValue(const nsAString & aValue) = 0;
49 :
50 : };
51 :
52 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIPropertyElement, NS_IPROPERTYELEMENT_IID)
53 :
54 : /* Use this macro when declaring classes that implement this interface. */
55 : #define NS_DECL_NSIPROPERTYELEMENT \
56 : NS_SCRIPTABLE NS_IMETHOD GetKey(nsACString & aKey); \
57 : NS_SCRIPTABLE NS_IMETHOD SetKey(const nsACString & aKey); \
58 : NS_SCRIPTABLE NS_IMETHOD GetValue(nsAString & aValue); \
59 : NS_SCRIPTABLE NS_IMETHOD SetValue(const nsAString & aValue);
60 :
61 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
62 : #define NS_FORWARD_NSIPROPERTYELEMENT(_to) \
63 : NS_SCRIPTABLE NS_IMETHOD GetKey(nsACString & aKey) { return _to GetKey(aKey); } \
64 : NS_SCRIPTABLE NS_IMETHOD SetKey(const nsACString & aKey) { return _to SetKey(aKey); } \
65 : NS_SCRIPTABLE NS_IMETHOD GetValue(nsAString & aValue) { return _to GetValue(aValue); } \
66 : NS_SCRIPTABLE NS_IMETHOD SetValue(const nsAString & aValue) { return _to SetValue(aValue); }
67 :
68 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
69 : #define NS_FORWARD_SAFE_NSIPROPERTYELEMENT(_to) \
70 : NS_SCRIPTABLE NS_IMETHOD GetKey(nsACString & aKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetKey(aKey); } \
71 : NS_SCRIPTABLE NS_IMETHOD SetKey(const nsACString & aKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetKey(aKey); } \
72 : NS_SCRIPTABLE NS_IMETHOD GetValue(nsAString & aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValue(aValue); } \
73 : NS_SCRIPTABLE NS_IMETHOD SetValue(const nsAString & aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetValue(aValue); }
74 :
75 : #if 0
76 : /* Use the code below as a template for the implementation class for this interface. */
77 :
78 : /* Header file */
79 : class nsPropertyElement : public nsIPropertyElement
80 : {
81 : public:
82 : NS_DECL_ISUPPORTS
83 : NS_DECL_NSIPROPERTYELEMENT
84 :
85 : nsPropertyElement();
86 :
87 : private:
88 : ~nsPropertyElement();
89 :
90 : protected:
91 : /* additional members */
92 : };
93 :
94 : /* Implementation file */
95 : NS_IMPL_ISUPPORTS1(nsPropertyElement, nsIPropertyElement)
96 :
97 : nsPropertyElement::nsPropertyElement()
98 : {
99 : /* member initializers and constructor code */
100 : }
101 :
102 : nsPropertyElement::~nsPropertyElement()
103 : {
104 : /* destructor code */
105 : }
106 :
107 : /* attribute AUTF8String key; */
108 : NS_IMETHODIMP nsPropertyElement::GetKey(nsACString & aKey)
109 : {
110 : return NS_ERROR_NOT_IMPLEMENTED;
111 : }
112 : NS_IMETHODIMP nsPropertyElement::SetKey(const nsACString & aKey)
113 : {
114 : return NS_ERROR_NOT_IMPLEMENTED;
115 : }
116 :
117 : /* attribute AString value; */
118 : NS_IMETHODIMP nsPropertyElement::GetValue(nsAString & aValue)
119 : {
120 : return NS_ERROR_NOT_IMPLEMENTED;
121 : }
122 : NS_IMETHODIMP nsPropertyElement::SetValue(const nsAString & aValue)
123 : {
124 : return NS_ERROR_NOT_IMPLEMENTED;
125 : }
126 :
127 : /* End of implementation class template. */
128 : #endif
129 :
130 :
131 : /* starting interface: nsIPersistentProperties */
132 : #define NS_IPERSISTENTPROPERTIES_IID_STR "1a180f60-93b2-11d2-9b8b-00805f8a16d9"
133 :
134 : #define NS_IPERSISTENTPROPERTIES_IID \
135 : {0x1a180f60, 0x93b2, 0x11d2, \
136 : { 0x9b, 0x8b, 0x00, 0x80, 0x5f, 0x8a, 0x16, 0xd9 }}
137 :
138 2297 : class NS_NO_VTABLE NS_SCRIPTABLE nsIPersistentProperties : public nsIProperties {
139 : public:
140 :
141 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPERSISTENTPROPERTIES_IID)
142 :
143 : /* void load (in nsIInputStream input); */
144 : NS_SCRIPTABLE NS_IMETHOD Load(nsIInputStream *input) = 0;
145 :
146 : /* void save (in nsIOutputStream output, in AUTF8String header); */
147 : NS_SCRIPTABLE NS_IMETHOD Save(nsIOutputStream *output, const nsACString & header) = 0;
148 :
149 : /* void subclass (in nsIPersistentProperties superclass); */
150 : NS_SCRIPTABLE NS_IMETHOD Subclass(nsIPersistentProperties *superclass) = 0;
151 :
152 : /* nsISimpleEnumerator enumerate (); */
153 : NS_SCRIPTABLE NS_IMETHOD Enumerate(nsISimpleEnumerator * *_retval NS_OUTPARAM) = 0;
154 :
155 : /* AString getStringProperty (in AUTF8String key); */
156 : NS_SCRIPTABLE NS_IMETHOD GetStringProperty(const nsACString & key, nsAString & _retval NS_OUTPARAM) = 0;
157 :
158 : /* AString setStringProperty (in AUTF8String key, in AString value); */
159 : NS_SCRIPTABLE NS_IMETHOD SetStringProperty(const nsACString & key, const nsAString & value, nsAString & _retval NS_OUTPARAM) = 0;
160 :
161 : };
162 :
163 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIPersistentProperties, NS_IPERSISTENTPROPERTIES_IID)
164 :
165 : /* Use this macro when declaring classes that implement this interface. */
166 : #define NS_DECL_NSIPERSISTENTPROPERTIES \
167 : NS_SCRIPTABLE NS_IMETHOD Load(nsIInputStream *input); \
168 : NS_SCRIPTABLE NS_IMETHOD Save(nsIOutputStream *output, const nsACString & header); \
169 : NS_SCRIPTABLE NS_IMETHOD Subclass(nsIPersistentProperties *superclass); \
170 : NS_SCRIPTABLE NS_IMETHOD Enumerate(nsISimpleEnumerator * *_retval NS_OUTPARAM); \
171 : NS_SCRIPTABLE NS_IMETHOD GetStringProperty(const nsACString & key, nsAString & _retval NS_OUTPARAM); \
172 : NS_SCRIPTABLE NS_IMETHOD SetStringProperty(const nsACString & key, const nsAString & value, nsAString & _retval NS_OUTPARAM);
173 :
174 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
175 : #define NS_FORWARD_NSIPERSISTENTPROPERTIES(_to) \
176 : NS_SCRIPTABLE NS_IMETHOD Load(nsIInputStream *input) { return _to Load(input); } \
177 : NS_SCRIPTABLE NS_IMETHOD Save(nsIOutputStream *output, const nsACString & header) { return _to Save(output, header); } \
178 : NS_SCRIPTABLE NS_IMETHOD Subclass(nsIPersistentProperties *superclass) { return _to Subclass(superclass); } \
179 : NS_SCRIPTABLE NS_IMETHOD Enumerate(nsISimpleEnumerator * *_retval NS_OUTPARAM) { return _to Enumerate(_retval); } \
180 : NS_SCRIPTABLE NS_IMETHOD GetStringProperty(const nsACString & key, nsAString & _retval NS_OUTPARAM) { return _to GetStringProperty(key, _retval); } \
181 : NS_SCRIPTABLE NS_IMETHOD SetStringProperty(const nsACString & key, const nsAString & value, nsAString & _retval NS_OUTPARAM) { return _to SetStringProperty(key, value, _retval); }
182 :
183 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
184 : #define NS_FORWARD_SAFE_NSIPERSISTENTPROPERTIES(_to) \
185 : NS_SCRIPTABLE NS_IMETHOD Load(nsIInputStream *input) { return !_to ? NS_ERROR_NULL_POINTER : _to->Load(input); } \
186 : NS_SCRIPTABLE NS_IMETHOD Save(nsIOutputStream *output, const nsACString & header) { return !_to ? NS_ERROR_NULL_POINTER : _to->Save(output, header); } \
187 : NS_SCRIPTABLE NS_IMETHOD Subclass(nsIPersistentProperties *superclass) { return !_to ? NS_ERROR_NULL_POINTER : _to->Subclass(superclass); } \
188 : NS_SCRIPTABLE NS_IMETHOD Enumerate(nsISimpleEnumerator * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Enumerate(_retval); } \
189 : NS_SCRIPTABLE NS_IMETHOD GetStringProperty(const nsACString & key, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStringProperty(key, _retval); } \
190 : NS_SCRIPTABLE NS_IMETHOD SetStringProperty(const nsACString & key, const nsAString & value, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStringProperty(key, value, _retval); }
191 :
192 : #if 0
193 : /* Use the code below as a template for the implementation class for this interface. */
194 :
195 : /* Header file */
196 : class nsPersistentProperties : public nsIPersistentProperties
197 : {
198 : public:
199 : NS_DECL_ISUPPORTS
200 : NS_DECL_NSIPERSISTENTPROPERTIES
201 :
202 : nsPersistentProperties();
203 :
204 : private:
205 : ~nsPersistentProperties();
206 :
207 : protected:
208 : /* additional members */
209 : };
210 :
211 : /* Implementation file */
212 : NS_IMPL_ISUPPORTS1(nsPersistentProperties, nsIPersistentProperties)
213 :
214 : nsPersistentProperties::nsPersistentProperties()
215 : {
216 : /* member initializers and constructor code */
217 : }
218 :
219 : nsPersistentProperties::~nsPersistentProperties()
220 : {
221 : /* destructor code */
222 : }
223 :
224 : /* void load (in nsIInputStream input); */
225 : NS_IMETHODIMP nsPersistentProperties::Load(nsIInputStream *input)
226 : {
227 : return NS_ERROR_NOT_IMPLEMENTED;
228 : }
229 :
230 : /* void save (in nsIOutputStream output, in AUTF8String header); */
231 : NS_IMETHODIMP nsPersistentProperties::Save(nsIOutputStream *output, const nsACString & header)
232 : {
233 : return NS_ERROR_NOT_IMPLEMENTED;
234 : }
235 :
236 : /* void subclass (in nsIPersistentProperties superclass); */
237 : NS_IMETHODIMP nsPersistentProperties::Subclass(nsIPersistentProperties *superclass)
238 : {
239 : return NS_ERROR_NOT_IMPLEMENTED;
240 : }
241 :
242 : /* nsISimpleEnumerator enumerate (); */
243 : NS_IMETHODIMP nsPersistentProperties::Enumerate(nsISimpleEnumerator * *_retval NS_OUTPARAM)
244 : {
245 : return NS_ERROR_NOT_IMPLEMENTED;
246 : }
247 :
248 : /* AString getStringProperty (in AUTF8String key); */
249 : NS_IMETHODIMP nsPersistentProperties::GetStringProperty(const nsACString & key, nsAString & _retval NS_OUTPARAM)
250 : {
251 : return NS_ERROR_NOT_IMPLEMENTED;
252 : }
253 :
254 : /* AString setStringProperty (in AUTF8String key, in AString value); */
255 : NS_IMETHODIMP nsPersistentProperties::SetStringProperty(const nsACString & key, const nsAString & value, nsAString & _retval NS_OUTPARAM)
256 : {
257 : return NS_ERROR_NOT_IMPLEMENTED;
258 : }
259 :
260 : /* End of implementation class template. */
261 : #endif
262 :
263 :
264 : #define NS_IPERSISTENTPROPERTIES_CID \
265 : { 0x2245e573, 0x9464, 0x11d2, \
266 : { 0x9b, 0x8b, 0x0, 0x80, 0x5f, 0x8a, 0x16, 0xd9 } }
267 : #define NS_PERSISTENTPROPERTIES_CONTRACTID "@mozilla.org/persistent-properties;1"
268 : #define NS_PERSISTENTPROPERTIES_CLASSNAME "Persistent Properties"
269 :
270 : #endif /* __gen_nsIPersistentProperties2_h__ */
|