1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/toolkit/profile/nsIToolkitProfile.idl
3 : */
4 :
5 : #ifndef __gen_nsIToolkitProfile_h__
6 : #define __gen_nsIToolkitProfile_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : /* For IDL files that don't want to include root IDL files. */
14 : #ifndef NS_NO_VTABLE
15 : #define NS_NO_VTABLE
16 : #endif
17 : class nsILocalFile; /* forward declaration */
18 :
19 : class nsIToolkitProfile; /* forward declaration */
20 :
21 : class nsIProfileUnlocker; /* forward declaration */
22 :
23 :
24 : /* starting interface: nsIProfileLock */
25 : #define NS_IPROFILELOCK_IID_STR "7c58c703-d245-4864-8d75-9648ca4a6139"
26 :
27 : #define NS_IPROFILELOCK_IID \
28 : {0x7c58c703, 0xd245, 0x4864, \
29 : { 0x8d, 0x75, 0x96, 0x48, 0xca, 0x4a, 0x61, 0x39 }}
30 :
31 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIProfileLock : public nsISupports {
32 : public:
33 :
34 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPROFILELOCK_IID)
35 :
36 : /* readonly attribute nsILocalFile directory; */
37 : NS_SCRIPTABLE NS_IMETHOD GetDirectory(nsILocalFile * *aDirectory) = 0;
38 :
39 : /* readonly attribute nsILocalFile localDirectory; */
40 : NS_SCRIPTABLE NS_IMETHOD GetLocalDirectory(nsILocalFile * *aLocalDirectory) = 0;
41 :
42 : /* readonly attribute PRInt64 replacedLockTime; */
43 : NS_SCRIPTABLE NS_IMETHOD GetReplacedLockTime(PRInt64 *aReplacedLockTime) = 0;
44 :
45 : /* void unlock (); */
46 : NS_SCRIPTABLE NS_IMETHOD Unlock(void) = 0;
47 :
48 : };
49 :
50 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIProfileLock, NS_IPROFILELOCK_IID)
51 :
52 : /* Use this macro when declaring classes that implement this interface. */
53 : #define NS_DECL_NSIPROFILELOCK \
54 : NS_SCRIPTABLE NS_IMETHOD GetDirectory(nsILocalFile * *aDirectory); \
55 : NS_SCRIPTABLE NS_IMETHOD GetLocalDirectory(nsILocalFile * *aLocalDirectory); \
56 : NS_SCRIPTABLE NS_IMETHOD GetReplacedLockTime(PRInt64 *aReplacedLockTime); \
57 : NS_SCRIPTABLE NS_IMETHOD Unlock(void);
58 :
59 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
60 : #define NS_FORWARD_NSIPROFILELOCK(_to) \
61 : NS_SCRIPTABLE NS_IMETHOD GetDirectory(nsILocalFile * *aDirectory) { return _to GetDirectory(aDirectory); } \
62 : NS_SCRIPTABLE NS_IMETHOD GetLocalDirectory(nsILocalFile * *aLocalDirectory) { return _to GetLocalDirectory(aLocalDirectory); } \
63 : NS_SCRIPTABLE NS_IMETHOD GetReplacedLockTime(PRInt64 *aReplacedLockTime) { return _to GetReplacedLockTime(aReplacedLockTime); } \
64 : NS_SCRIPTABLE NS_IMETHOD Unlock(void) { return _to Unlock(); }
65 :
66 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
67 : #define NS_FORWARD_SAFE_NSIPROFILELOCK(_to) \
68 : NS_SCRIPTABLE NS_IMETHOD GetDirectory(nsILocalFile * *aDirectory) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDirectory(aDirectory); } \
69 : NS_SCRIPTABLE NS_IMETHOD GetLocalDirectory(nsILocalFile * *aLocalDirectory) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLocalDirectory(aLocalDirectory); } \
70 : NS_SCRIPTABLE NS_IMETHOD GetReplacedLockTime(PRInt64 *aReplacedLockTime) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReplacedLockTime(aReplacedLockTime); } \
71 : NS_SCRIPTABLE NS_IMETHOD Unlock(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Unlock(); }
72 :
73 : #if 0
74 : /* Use the code below as a template for the implementation class for this interface. */
75 :
76 : /* Header file */
77 : class nsProfileLock : public nsIProfileLock
78 : {
79 : public:
80 : NS_DECL_ISUPPORTS
81 : NS_DECL_NSIPROFILELOCK
82 :
83 : nsProfileLock();
84 :
85 : private:
86 : ~nsProfileLock();
87 :
88 : protected:
89 : /* additional members */
90 : };
91 :
92 : /* Implementation file */
93 : NS_IMPL_ISUPPORTS1(nsProfileLock, nsIProfileLock)
94 :
95 : nsProfileLock::nsProfileLock()
96 : {
97 : /* member initializers and constructor code */
98 : }
99 :
100 : nsProfileLock::~nsProfileLock()
101 : {
102 : /* destructor code */
103 : }
104 :
105 : /* readonly attribute nsILocalFile directory; */
106 : NS_IMETHODIMP nsProfileLock::GetDirectory(nsILocalFile * *aDirectory)
107 : {
108 : return NS_ERROR_NOT_IMPLEMENTED;
109 : }
110 :
111 : /* readonly attribute nsILocalFile localDirectory; */
112 : NS_IMETHODIMP nsProfileLock::GetLocalDirectory(nsILocalFile * *aLocalDirectory)
113 : {
114 : return NS_ERROR_NOT_IMPLEMENTED;
115 : }
116 :
117 : /* readonly attribute PRInt64 replacedLockTime; */
118 : NS_IMETHODIMP nsProfileLock::GetReplacedLockTime(PRInt64 *aReplacedLockTime)
119 : {
120 : return NS_ERROR_NOT_IMPLEMENTED;
121 : }
122 :
123 : /* void unlock (); */
124 : NS_IMETHODIMP nsProfileLock::Unlock()
125 : {
126 : return NS_ERROR_NOT_IMPLEMENTED;
127 : }
128 :
129 : /* End of implementation class template. */
130 : #endif
131 :
132 :
133 : /* starting interface: nsIToolkitProfile */
134 : #define NS_ITOOLKITPROFILE_IID_STR "7422b090-4a86-4407-972e-75468a625388"
135 :
136 : #define NS_ITOOLKITPROFILE_IID \
137 : {0x7422b090, 0x4a86, 0x4407, \
138 : { 0x97, 0x2e, 0x75, 0x46, 0x8a, 0x62, 0x53, 0x88 }}
139 :
140 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIToolkitProfile : public nsISupports {
141 : public:
142 :
143 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITOOLKITPROFILE_IID)
144 :
145 : /* readonly attribute nsILocalFile rootDir; */
146 : NS_SCRIPTABLE NS_IMETHOD GetRootDir(nsILocalFile * *aRootDir) = 0;
147 :
148 : /* readonly attribute nsILocalFile localDir; */
149 : NS_SCRIPTABLE NS_IMETHOD GetLocalDir(nsILocalFile * *aLocalDir) = 0;
150 :
151 : /* attribute AUTF8String name; */
152 : NS_SCRIPTABLE NS_IMETHOD GetName(nsACString & aName) = 0;
153 : NS_SCRIPTABLE NS_IMETHOD SetName(const nsACString & aName) = 0;
154 :
155 : /* void remove (in boolean removeFiles); */
156 : NS_SCRIPTABLE NS_IMETHOD Remove(bool removeFiles) = 0;
157 :
158 : /* nsIProfileLock lock (out nsIProfileUnlocker aUnlocker); */
159 : NS_SCRIPTABLE NS_IMETHOD Lock(nsIProfileUnlocker * *aUnlocker NS_OUTPARAM, nsIProfileLock * *_retval NS_OUTPARAM) = 0;
160 :
161 : };
162 :
163 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIToolkitProfile, NS_ITOOLKITPROFILE_IID)
164 :
165 : /* Use this macro when declaring classes that implement this interface. */
166 : #define NS_DECL_NSITOOLKITPROFILE \
167 : NS_SCRIPTABLE NS_IMETHOD GetRootDir(nsILocalFile * *aRootDir); \
168 : NS_SCRIPTABLE NS_IMETHOD GetLocalDir(nsILocalFile * *aLocalDir); \
169 : NS_SCRIPTABLE NS_IMETHOD GetName(nsACString & aName); \
170 : NS_SCRIPTABLE NS_IMETHOD SetName(const nsACString & aName); \
171 : NS_SCRIPTABLE NS_IMETHOD Remove(bool removeFiles); \
172 : NS_SCRIPTABLE NS_IMETHOD Lock(nsIProfileUnlocker * *aUnlocker NS_OUTPARAM, nsIProfileLock * *_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_NSITOOLKITPROFILE(_to) \
176 : NS_SCRIPTABLE NS_IMETHOD GetRootDir(nsILocalFile * *aRootDir) { return _to GetRootDir(aRootDir); } \
177 : NS_SCRIPTABLE NS_IMETHOD GetLocalDir(nsILocalFile * *aLocalDir) { return _to GetLocalDir(aLocalDir); } \
178 : NS_SCRIPTABLE NS_IMETHOD GetName(nsACString & aName) { return _to GetName(aName); } \
179 : NS_SCRIPTABLE NS_IMETHOD SetName(const nsACString & aName) { return _to SetName(aName); } \
180 : NS_SCRIPTABLE NS_IMETHOD Remove(bool removeFiles) { return _to Remove(removeFiles); } \
181 : NS_SCRIPTABLE NS_IMETHOD Lock(nsIProfileUnlocker * *aUnlocker NS_OUTPARAM, nsIProfileLock * *_retval NS_OUTPARAM) { return _to Lock(aUnlocker, _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_NSITOOLKITPROFILE(_to) \
185 : NS_SCRIPTABLE NS_IMETHOD GetRootDir(nsILocalFile * *aRootDir) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRootDir(aRootDir); } \
186 : NS_SCRIPTABLE NS_IMETHOD GetLocalDir(nsILocalFile * *aLocalDir) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLocalDir(aLocalDir); } \
187 : NS_SCRIPTABLE NS_IMETHOD GetName(nsACString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
188 : NS_SCRIPTABLE NS_IMETHOD SetName(const nsACString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetName(aName); } \
189 : NS_SCRIPTABLE NS_IMETHOD Remove(bool removeFiles) { return !_to ? NS_ERROR_NULL_POINTER : _to->Remove(removeFiles); } \
190 : NS_SCRIPTABLE NS_IMETHOD Lock(nsIProfileUnlocker * *aUnlocker NS_OUTPARAM, nsIProfileLock * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Lock(aUnlocker, _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 nsToolkitProfile : public nsIToolkitProfile
197 : {
198 : public:
199 : NS_DECL_ISUPPORTS
200 : NS_DECL_NSITOOLKITPROFILE
201 :
202 : nsToolkitProfile();
203 :
204 : private:
205 : ~nsToolkitProfile();
206 :
207 : protected:
208 : /* additional members */
209 : };
210 :
211 : /* Implementation file */
212 : NS_IMPL_ISUPPORTS1(nsToolkitProfile, nsIToolkitProfile)
213 :
214 : nsToolkitProfile::nsToolkitProfile()
215 : {
216 : /* member initializers and constructor code */
217 : }
218 :
219 : nsToolkitProfile::~nsToolkitProfile()
220 : {
221 : /* destructor code */
222 : }
223 :
224 : /* readonly attribute nsILocalFile rootDir; */
225 : NS_IMETHODIMP nsToolkitProfile::GetRootDir(nsILocalFile * *aRootDir)
226 : {
227 : return NS_ERROR_NOT_IMPLEMENTED;
228 : }
229 :
230 : /* readonly attribute nsILocalFile localDir; */
231 : NS_IMETHODIMP nsToolkitProfile::GetLocalDir(nsILocalFile * *aLocalDir)
232 : {
233 : return NS_ERROR_NOT_IMPLEMENTED;
234 : }
235 :
236 : /* attribute AUTF8String name; */
237 : NS_IMETHODIMP nsToolkitProfile::GetName(nsACString & aName)
238 : {
239 : return NS_ERROR_NOT_IMPLEMENTED;
240 : }
241 : NS_IMETHODIMP nsToolkitProfile::SetName(const nsACString & aName)
242 : {
243 : return NS_ERROR_NOT_IMPLEMENTED;
244 : }
245 :
246 : /* void remove (in boolean removeFiles); */
247 : NS_IMETHODIMP nsToolkitProfile::Remove(bool removeFiles)
248 : {
249 : return NS_ERROR_NOT_IMPLEMENTED;
250 : }
251 :
252 : /* nsIProfileLock lock (out nsIProfileUnlocker aUnlocker); */
253 : NS_IMETHODIMP nsToolkitProfile::Lock(nsIProfileUnlocker * *aUnlocker NS_OUTPARAM, nsIProfileLock * *_retval NS_OUTPARAM)
254 : {
255 : return NS_ERROR_NOT_IMPLEMENTED;
256 : }
257 :
258 : /* End of implementation class template. */
259 : #endif
260 :
261 :
262 : #endif /* __gen_nsIToolkitProfile_h__ */
|