1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/toolkit/profile/nsIToolkitProfileService.idl
3 : */
4 :
5 : #ifndef __gen_nsIToolkitProfileService_h__
6 : #define __gen_nsIToolkitProfileService_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 nsISimpleEnumerator; /* forward declaration */
18 :
19 : class nsILocalFile; /* forward declaration */
20 :
21 : class nsIToolkitProfile; /* forward declaration */
22 :
23 : class nsIProfileLock; /* forward declaration */
24 :
25 :
26 : /* starting interface: nsIToolkitProfileService */
27 : #define NS_ITOOLKITPROFILESERVICE_IID_STR "9b434f48-438c-4f85-89de-b7f321a45341"
28 :
29 : #define NS_ITOOLKITPROFILESERVICE_IID \
30 : {0x9b434f48, 0x438c, 0x4f85, \
31 : { 0x89, 0xde, 0xb7, 0xf3, 0x21, 0xa4, 0x53, 0x41 }}
32 :
33 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIToolkitProfileService : public nsISupports {
34 : public:
35 :
36 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITOOLKITPROFILESERVICE_IID)
37 :
38 : /* attribute boolean startWithLastProfile; */
39 : NS_SCRIPTABLE NS_IMETHOD GetStartWithLastProfile(bool *aStartWithLastProfile) = 0;
40 : NS_SCRIPTABLE NS_IMETHOD SetStartWithLastProfile(bool aStartWithLastProfile) = 0;
41 :
42 : /* attribute boolean startOffline; */
43 : NS_SCRIPTABLE NS_IMETHOD GetStartOffline(bool *aStartOffline) = 0;
44 : NS_SCRIPTABLE NS_IMETHOD SetStartOffline(bool aStartOffline) = 0;
45 :
46 : /* readonly attribute nsISimpleEnumerator profiles; */
47 : NS_SCRIPTABLE NS_IMETHOD GetProfiles(nsISimpleEnumerator * *aProfiles) = 0;
48 :
49 : /* attribute nsIToolkitProfile selectedProfile; */
50 : NS_SCRIPTABLE NS_IMETHOD GetSelectedProfile(nsIToolkitProfile * *aSelectedProfile) = 0;
51 : NS_SCRIPTABLE NS_IMETHOD SetSelectedProfile(nsIToolkitProfile *aSelectedProfile) = 0;
52 :
53 : /* nsIToolkitProfile getProfileByName (in AUTF8String aName); */
54 : NS_SCRIPTABLE NS_IMETHOD GetProfileByName(const nsACString & aName, nsIToolkitProfile * *_retval NS_OUTPARAM) = 0;
55 :
56 : /* nsIProfileLock lockProfilePath (in nsILocalFile aDirectory, in nsILocalFile aTempDirectory); */
57 : NS_SCRIPTABLE NS_IMETHOD LockProfilePath(nsILocalFile *aDirectory, nsILocalFile *aTempDirectory, nsIProfileLock * *_retval NS_OUTPARAM) = 0;
58 :
59 : /* nsIToolkitProfile createProfile (in nsILocalFile aRootDir, in nsILocalFile aTempDir, in AUTF8String aName); */
60 : NS_SCRIPTABLE NS_IMETHOD CreateProfile(nsILocalFile *aRootDir, nsILocalFile *aTempDir, const nsACString & aName, nsIToolkitProfile * *_retval NS_OUTPARAM) = 0;
61 :
62 : /* readonly attribute unsigned long profileCount; */
63 : NS_SCRIPTABLE NS_IMETHOD GetProfileCount(PRUint32 *aProfileCount) = 0;
64 :
65 : /* void flush (); */
66 : NS_SCRIPTABLE NS_IMETHOD Flush(void) = 0;
67 :
68 : };
69 :
70 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIToolkitProfileService, NS_ITOOLKITPROFILESERVICE_IID)
71 :
72 : /* Use this macro when declaring classes that implement this interface. */
73 : #define NS_DECL_NSITOOLKITPROFILESERVICE \
74 : NS_SCRIPTABLE NS_IMETHOD GetStartWithLastProfile(bool *aStartWithLastProfile); \
75 : NS_SCRIPTABLE NS_IMETHOD SetStartWithLastProfile(bool aStartWithLastProfile); \
76 : NS_SCRIPTABLE NS_IMETHOD GetStartOffline(bool *aStartOffline); \
77 : NS_SCRIPTABLE NS_IMETHOD SetStartOffline(bool aStartOffline); \
78 : NS_SCRIPTABLE NS_IMETHOD GetProfiles(nsISimpleEnumerator * *aProfiles); \
79 : NS_SCRIPTABLE NS_IMETHOD GetSelectedProfile(nsIToolkitProfile * *aSelectedProfile); \
80 : NS_SCRIPTABLE NS_IMETHOD SetSelectedProfile(nsIToolkitProfile *aSelectedProfile); \
81 : NS_SCRIPTABLE NS_IMETHOD GetProfileByName(const nsACString & aName, nsIToolkitProfile * *_retval NS_OUTPARAM); \
82 : NS_SCRIPTABLE NS_IMETHOD LockProfilePath(nsILocalFile *aDirectory, nsILocalFile *aTempDirectory, nsIProfileLock * *_retval NS_OUTPARAM); \
83 : NS_SCRIPTABLE NS_IMETHOD CreateProfile(nsILocalFile *aRootDir, nsILocalFile *aTempDir, const nsACString & aName, nsIToolkitProfile * *_retval NS_OUTPARAM); \
84 : NS_SCRIPTABLE NS_IMETHOD GetProfileCount(PRUint32 *aProfileCount); \
85 : NS_SCRIPTABLE NS_IMETHOD Flush(void);
86 :
87 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
88 : #define NS_FORWARD_NSITOOLKITPROFILESERVICE(_to) \
89 : NS_SCRIPTABLE NS_IMETHOD GetStartWithLastProfile(bool *aStartWithLastProfile) { return _to GetStartWithLastProfile(aStartWithLastProfile); } \
90 : NS_SCRIPTABLE NS_IMETHOD SetStartWithLastProfile(bool aStartWithLastProfile) { return _to SetStartWithLastProfile(aStartWithLastProfile); } \
91 : NS_SCRIPTABLE NS_IMETHOD GetStartOffline(bool *aStartOffline) { return _to GetStartOffline(aStartOffline); } \
92 : NS_SCRIPTABLE NS_IMETHOD SetStartOffline(bool aStartOffline) { return _to SetStartOffline(aStartOffline); } \
93 : NS_SCRIPTABLE NS_IMETHOD GetProfiles(nsISimpleEnumerator * *aProfiles) { return _to GetProfiles(aProfiles); } \
94 : NS_SCRIPTABLE NS_IMETHOD GetSelectedProfile(nsIToolkitProfile * *aSelectedProfile) { return _to GetSelectedProfile(aSelectedProfile); } \
95 : NS_SCRIPTABLE NS_IMETHOD SetSelectedProfile(nsIToolkitProfile *aSelectedProfile) { return _to SetSelectedProfile(aSelectedProfile); } \
96 : NS_SCRIPTABLE NS_IMETHOD GetProfileByName(const nsACString & aName, nsIToolkitProfile * *_retval NS_OUTPARAM) { return _to GetProfileByName(aName, _retval); } \
97 : NS_SCRIPTABLE NS_IMETHOD LockProfilePath(nsILocalFile *aDirectory, nsILocalFile *aTempDirectory, nsIProfileLock * *_retval NS_OUTPARAM) { return _to LockProfilePath(aDirectory, aTempDirectory, _retval); } \
98 : NS_SCRIPTABLE NS_IMETHOD CreateProfile(nsILocalFile *aRootDir, nsILocalFile *aTempDir, const nsACString & aName, nsIToolkitProfile * *_retval NS_OUTPARAM) { return _to CreateProfile(aRootDir, aTempDir, aName, _retval); } \
99 : NS_SCRIPTABLE NS_IMETHOD GetProfileCount(PRUint32 *aProfileCount) { return _to GetProfileCount(aProfileCount); } \
100 : NS_SCRIPTABLE NS_IMETHOD Flush(void) { return _to Flush(); }
101 :
102 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
103 : #define NS_FORWARD_SAFE_NSITOOLKITPROFILESERVICE(_to) \
104 : NS_SCRIPTABLE NS_IMETHOD GetStartWithLastProfile(bool *aStartWithLastProfile) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStartWithLastProfile(aStartWithLastProfile); } \
105 : NS_SCRIPTABLE NS_IMETHOD SetStartWithLastProfile(bool aStartWithLastProfile) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStartWithLastProfile(aStartWithLastProfile); } \
106 : NS_SCRIPTABLE NS_IMETHOD GetStartOffline(bool *aStartOffline) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStartOffline(aStartOffline); } \
107 : NS_SCRIPTABLE NS_IMETHOD SetStartOffline(bool aStartOffline) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStartOffline(aStartOffline); } \
108 : NS_SCRIPTABLE NS_IMETHOD GetProfiles(nsISimpleEnumerator * *aProfiles) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProfiles(aProfiles); } \
109 : NS_SCRIPTABLE NS_IMETHOD GetSelectedProfile(nsIToolkitProfile * *aSelectedProfile) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectedProfile(aSelectedProfile); } \
110 : NS_SCRIPTABLE NS_IMETHOD SetSelectedProfile(nsIToolkitProfile *aSelectedProfile) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSelectedProfile(aSelectedProfile); } \
111 : NS_SCRIPTABLE NS_IMETHOD GetProfileByName(const nsACString & aName, nsIToolkitProfile * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProfileByName(aName, _retval); } \
112 : NS_SCRIPTABLE NS_IMETHOD LockProfilePath(nsILocalFile *aDirectory, nsILocalFile *aTempDirectory, nsIProfileLock * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->LockProfilePath(aDirectory, aTempDirectory, _retval); } \
113 : NS_SCRIPTABLE NS_IMETHOD CreateProfile(nsILocalFile *aRootDir, nsILocalFile *aTempDir, const nsACString & aName, nsIToolkitProfile * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateProfile(aRootDir, aTempDir, aName, _retval); } \
114 : NS_SCRIPTABLE NS_IMETHOD GetProfileCount(PRUint32 *aProfileCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProfileCount(aProfileCount); } \
115 : NS_SCRIPTABLE NS_IMETHOD Flush(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Flush(); }
116 :
117 : #if 0
118 : /* Use the code below as a template for the implementation class for this interface. */
119 :
120 : /* Header file */
121 : class nsToolkitProfileService : public nsIToolkitProfileService
122 : {
123 : public:
124 : NS_DECL_ISUPPORTS
125 : NS_DECL_NSITOOLKITPROFILESERVICE
126 :
127 : nsToolkitProfileService();
128 :
129 : private:
130 : ~nsToolkitProfileService();
131 :
132 : protected:
133 : /* additional members */
134 : };
135 :
136 : /* Implementation file */
137 : NS_IMPL_ISUPPORTS1(nsToolkitProfileService, nsIToolkitProfileService)
138 :
139 : nsToolkitProfileService::nsToolkitProfileService()
140 : {
141 : /* member initializers and constructor code */
142 : }
143 :
144 : nsToolkitProfileService::~nsToolkitProfileService()
145 : {
146 : /* destructor code */
147 : }
148 :
149 : /* attribute boolean startWithLastProfile; */
150 : NS_IMETHODIMP nsToolkitProfileService::GetStartWithLastProfile(bool *aStartWithLastProfile)
151 : {
152 : return NS_ERROR_NOT_IMPLEMENTED;
153 : }
154 : NS_IMETHODIMP nsToolkitProfileService::SetStartWithLastProfile(bool aStartWithLastProfile)
155 : {
156 : return NS_ERROR_NOT_IMPLEMENTED;
157 : }
158 :
159 : /* attribute boolean startOffline; */
160 : NS_IMETHODIMP nsToolkitProfileService::GetStartOffline(bool *aStartOffline)
161 : {
162 : return NS_ERROR_NOT_IMPLEMENTED;
163 : }
164 : NS_IMETHODIMP nsToolkitProfileService::SetStartOffline(bool aStartOffline)
165 : {
166 : return NS_ERROR_NOT_IMPLEMENTED;
167 : }
168 :
169 : /* readonly attribute nsISimpleEnumerator profiles; */
170 : NS_IMETHODIMP nsToolkitProfileService::GetProfiles(nsISimpleEnumerator * *aProfiles)
171 : {
172 : return NS_ERROR_NOT_IMPLEMENTED;
173 : }
174 :
175 : /* attribute nsIToolkitProfile selectedProfile; */
176 : NS_IMETHODIMP nsToolkitProfileService::GetSelectedProfile(nsIToolkitProfile * *aSelectedProfile)
177 : {
178 : return NS_ERROR_NOT_IMPLEMENTED;
179 : }
180 : NS_IMETHODIMP nsToolkitProfileService::SetSelectedProfile(nsIToolkitProfile *aSelectedProfile)
181 : {
182 : return NS_ERROR_NOT_IMPLEMENTED;
183 : }
184 :
185 : /* nsIToolkitProfile getProfileByName (in AUTF8String aName); */
186 : NS_IMETHODIMP nsToolkitProfileService::GetProfileByName(const nsACString & aName, nsIToolkitProfile * *_retval NS_OUTPARAM)
187 : {
188 : return NS_ERROR_NOT_IMPLEMENTED;
189 : }
190 :
191 : /* nsIProfileLock lockProfilePath (in nsILocalFile aDirectory, in nsILocalFile aTempDirectory); */
192 : NS_IMETHODIMP nsToolkitProfileService::LockProfilePath(nsILocalFile *aDirectory, nsILocalFile *aTempDirectory, nsIProfileLock * *_retval NS_OUTPARAM)
193 : {
194 : return NS_ERROR_NOT_IMPLEMENTED;
195 : }
196 :
197 : /* nsIToolkitProfile createProfile (in nsILocalFile aRootDir, in nsILocalFile aTempDir, in AUTF8String aName); */
198 : NS_IMETHODIMP nsToolkitProfileService::CreateProfile(nsILocalFile *aRootDir, nsILocalFile *aTempDir, const nsACString & aName, nsIToolkitProfile * *_retval NS_OUTPARAM)
199 : {
200 : return NS_ERROR_NOT_IMPLEMENTED;
201 : }
202 :
203 : /* readonly attribute unsigned long profileCount; */
204 : NS_IMETHODIMP nsToolkitProfileService::GetProfileCount(PRUint32 *aProfileCount)
205 : {
206 : return NS_ERROR_NOT_IMPLEMENTED;
207 : }
208 :
209 : /* void flush (); */
210 : NS_IMETHODIMP nsToolkitProfileService::Flush()
211 : {
212 : return NS_ERROR_NOT_IMPLEMENTED;
213 : }
214 :
215 : /* End of implementation class template. */
216 : #endif
217 :
218 : #define NS_PROFILESERVICE_CONTRACTID "@mozilla.org/toolkit/profile-service;1"
219 :
220 : #endif /* __gen_nsIToolkitProfileService_h__ */
|