Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Side by Side Diff: gecko-sdk/include/nsIProfile.h

Issue 20346: Version 1.8 of gecko-sdk. Downloaded from here:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/
Patch Set: Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « gecko-sdk/include/nsIPrefService.h ('k') | gecko-sdk/include/nsIProfileChangeStatus.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 /*
2 * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/builds/tinderbox/XR-Mozilla1.8.0 -Release/WINNT_5.2_Depend/mozilla/profile/public/nsIProfile.idl
3 */
4
5 #ifndef __gen_nsIProfile_h__
6 #define __gen_nsIProfile_h__
7
8
9 #ifndef __gen_nsISupports_h__
10 #include "nsISupports.h"
11 #endif
12
13 #ifndef __gen_nsIFile_h__
14 #include "nsIFile.h"
15 #endif
16
17 /* For IDL files that don't want to include root IDL files. */
18 #ifndef NS_NO_VTABLE
19 #define NS_NO_VTABLE
20 #endif
21
22 #define NS_PROFILE_CID \
23 { /* {02b0625b-e7f3-11d2-9f5a-006008a6efe9} */ \
24 0x02b0625b, \
25 0xe7f3, \
26 0x11d2, \
27 { 0x9f, 0x5a, 0x00, 0x60, 0x08, 0xa6, 0xef, 0xe9 } \
28 }
29 #define NS_PROFILE_CONTRACTID \
30 "@mozilla.org/profile/manager;1"
31 #define NS_PROFILE_STARTUP_CATEGORY \
32 "profile-startup-category"
33
34 /* starting interface: nsIProfile */
35 #define NS_IPROFILE_IID_STR "02b0625a-e7f3-11d2-9f5a-006008a6efe9"
36
37 #define NS_IPROFILE_IID \
38 {0x02b0625a, 0xe7f3, 0x11d2, \
39 { 0x9f, 0x5a, 0x00, 0x60, 0x08, 0xa6, 0xef, 0xe9 }}
40
41 /**
42 * nsIProfile
43 *
44 * @status FROZEN
45 * @version 1.0
46 */
47 class NS_NO_VTABLE nsIProfile : public nsISupports {
48 public:
49
50 NS_DEFINE_STATIC_IID_ACCESSOR(NS_IPROFILE_IID)
51
52 /* readonly attribute long profileCount; */
53 NS_IMETHOD GetProfileCount(PRInt32 *aProfileCount) = 0;
54
55 /* void getProfileList (out unsigned long length, [array, size_is (length), re tval] out wstring profileNames); */
56 NS_IMETHOD GetProfileList(PRUint32 *length, PRUnichar ***profileNames) = 0;
57
58 /* boolean profileExists (in wstring profileName); */
59 NS_IMETHOD ProfileExists(const PRUnichar *profileName, PRBool *_retval) = 0;
60
61 /* attribute wstring currentProfile; */
62 NS_IMETHOD GetCurrentProfile(PRUnichar * *aCurrentProfile) = 0;
63 NS_IMETHOD SetCurrentProfile(const PRUnichar * aCurrentProfile) = 0;
64
65 enum { SHUTDOWN_PERSIST = 1U };
66
67 enum { SHUTDOWN_CLEANSE = 2U };
68
69 /* void shutDownCurrentProfile (in unsigned long shutDownType); */
70 NS_IMETHOD ShutDownCurrentProfile(PRUint32 shutDownType) = 0;
71
72 /* void createNewProfile (in wstring profileName, in wstring nativeProfileDir, in wstring langcode, in boolean useExistingDir); */
73 NS_IMETHOD CreateNewProfile(const PRUnichar *profileName, const PRUnichar *nat iveProfileDir, const PRUnichar *langcode, PRBool useExistingDir) = 0;
74
75 /* void renameProfile (in wstring oldName, in wstring newName); */
76 NS_IMETHOD RenameProfile(const PRUnichar *oldName, const PRUnichar *newName) = 0;
77
78 /* void deleteProfile (in wstring name, in boolean canDeleteFiles); */
79 NS_IMETHOD DeleteProfile(const PRUnichar *name, PRBool canDeleteFiles) = 0;
80
81 /* void cloneProfile (in wstring profileName); */
82 NS_IMETHOD CloneProfile(const PRUnichar *profileName) = 0;
83
84 };
85
86 /* Use this macro when declaring classes that implement this interface. */
87 #define NS_DECL_NSIPROFILE \
88 NS_IMETHOD GetProfileCount(PRInt32 *aProfileCount); \
89 NS_IMETHOD GetProfileList(PRUint32 *length, PRUnichar ***profileNames); \
90 NS_IMETHOD ProfileExists(const PRUnichar *profileName, PRBool *_retval); \
91 NS_IMETHOD GetCurrentProfile(PRUnichar * *aCurrentProfile); \
92 NS_IMETHOD SetCurrentProfile(const PRUnichar * aCurrentProfile); \
93 NS_IMETHOD ShutDownCurrentProfile(PRUint32 shutDownType); \
94 NS_IMETHOD CreateNewProfile(const PRUnichar *profileName, const PRUnichar *nat iveProfileDir, const PRUnichar *langcode, PRBool useExistingDir); \
95 NS_IMETHOD RenameProfile(const PRUnichar *oldName, const PRUnichar *newName); \
96 NS_IMETHOD DeleteProfile(const PRUnichar *name, PRBool canDeleteFiles); \
97 NS_IMETHOD CloneProfile(const PRUnichar *profileName);
98
99 /* Use this macro to declare functions that forward the behavior of this interfa ce to another object. */
100 #define NS_FORWARD_NSIPROFILE(_to) \
101 NS_IMETHOD GetProfileCount(PRInt32 *aProfileCount) { return _to GetProfileCoun t(aProfileCount); } \
102 NS_IMETHOD GetProfileList(PRUint32 *length, PRUnichar ***profileNames) { retur n _to GetProfileList(length, profileNames); } \
103 NS_IMETHOD ProfileExists(const PRUnichar *profileName, PRBool *_retval) { retu rn _to ProfileExists(profileName, _retval); } \
104 NS_IMETHOD GetCurrentProfile(PRUnichar * *aCurrentProfile) { return _to GetCur rentProfile(aCurrentProfile); } \
105 NS_IMETHOD SetCurrentProfile(const PRUnichar * aCurrentProfile) { return _to S etCurrentProfile(aCurrentProfile); } \
106 NS_IMETHOD ShutDownCurrentProfile(PRUint32 shutDownType) { return _to ShutDown CurrentProfile(shutDownType); } \
107 NS_IMETHOD CreateNewProfile(const PRUnichar *profileName, const PRUnichar *nat iveProfileDir, const PRUnichar *langcode, PRBool useExistingDir) { return _to Cr eateNewProfile(profileName, nativeProfileDir, langcode, useExistingDir); } \
108 NS_IMETHOD RenameProfile(const PRUnichar *oldName, const PRUnichar *newName) { return _to RenameProfile(oldName, newName); } \
109 NS_IMETHOD DeleteProfile(const PRUnichar *name, PRBool canDeleteFiles) { retur n _to DeleteProfile(name, canDeleteFiles); } \
110 NS_IMETHOD CloneProfile(const PRUnichar *profileName) { return _to CloneProfil e(profileName); }
111
112 /* Use this macro to declare functions that forward the behavior of this interfa ce to another object in a safe way. */
113 #define NS_FORWARD_SAFE_NSIPROFILE(_to) \
114 NS_IMETHOD GetProfileCount(PRInt32 *aProfileCount) { return !_to ? NS_ERROR_NU LL_POINTER : _to->GetProfileCount(aProfileCount); } \
115 NS_IMETHOD GetProfileList(PRUint32 *length, PRUnichar ***profileNames) { retur n !_to ? NS_ERROR_NULL_POINTER : _to->GetProfileList(length, profileNames); } \
116 NS_IMETHOD ProfileExists(const PRUnichar *profileName, PRBool *_retval) { retu rn !_to ? NS_ERROR_NULL_POINTER : _to->ProfileExists(profileName, _retval); } \
117 NS_IMETHOD GetCurrentProfile(PRUnichar * *aCurrentProfile) { return !_to ? NS_ ERROR_NULL_POINTER : _to->GetCurrentProfile(aCurrentProfile); } \
118 NS_IMETHOD SetCurrentProfile(const PRUnichar * aCurrentProfile) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCurrentProfile(aCurrentProfile); } \
119 NS_IMETHOD ShutDownCurrentProfile(PRUint32 shutDownType) { return !_to ? NS_ER ROR_NULL_POINTER : _to->ShutDownCurrentProfile(shutDownType); } \
120 NS_IMETHOD CreateNewProfile(const PRUnichar *profileName, const PRUnichar *nat iveProfileDir, const PRUnichar *langcode, PRBool useExistingDir) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateNewProfile(profileName, nativeProfileDir, la ngcode, useExistingDir); } \
121 NS_IMETHOD RenameProfile(const PRUnichar *oldName, const PRUnichar *newName) { return !_to ? NS_ERROR_NULL_POINTER : _to->RenameProfile(oldName, newName); } \
122 NS_IMETHOD DeleteProfile(const PRUnichar *name, PRBool canDeleteFiles) { retur n !_to ? NS_ERROR_NULL_POINTER : _to->DeleteProfile(name, canDeleteFiles); } \
123 NS_IMETHOD CloneProfile(const PRUnichar *profileName) { return !_to ? NS_ERROR _NULL_POINTER : _to->CloneProfile(profileName); }
124
125 #if 0
126 /* Use the code below as a template for the implementation class for this interf ace. */
127
128 /* Header file */
129 class nsProfile : public nsIProfile
130 {
131 public:
132 NS_DECL_ISUPPORTS
133 NS_DECL_NSIPROFILE
134
135 nsProfile();
136
137 private:
138 ~nsProfile();
139
140 protected:
141 /* additional members */
142 };
143
144 /* Implementation file */
145 NS_IMPL_ISUPPORTS1(nsProfile, nsIProfile)
146
147 nsProfile::nsProfile()
148 {
149 /* member initializers and constructor code */
150 }
151
152 nsProfile::~nsProfile()
153 {
154 /* destructor code */
155 }
156
157 /* readonly attribute long profileCount; */
158 NS_IMETHODIMP nsProfile::GetProfileCount(PRInt32 *aProfileCount)
159 {
160 return NS_ERROR_NOT_IMPLEMENTED;
161 }
162
163 /* void getProfileList (out unsigned long length, [array, size_is (length), retv al] out wstring profileNames); */
164 NS_IMETHODIMP nsProfile::GetProfileList(PRUint32 *length, PRUnichar ***profileNa mes)
165 {
166 return NS_ERROR_NOT_IMPLEMENTED;
167 }
168
169 /* boolean profileExists (in wstring profileName); */
170 NS_IMETHODIMP nsProfile::ProfileExists(const PRUnichar *profileName, PRBool *_re tval)
171 {
172 return NS_ERROR_NOT_IMPLEMENTED;
173 }
174
175 /* attribute wstring currentProfile; */
176 NS_IMETHODIMP nsProfile::GetCurrentProfile(PRUnichar * *aCurrentProfile)
177 {
178 return NS_ERROR_NOT_IMPLEMENTED;
179 }
180 NS_IMETHODIMP nsProfile::SetCurrentProfile(const PRUnichar * aCurrentProfile)
181 {
182 return NS_ERROR_NOT_IMPLEMENTED;
183 }
184
185 /* void shutDownCurrentProfile (in unsigned long shutDownType); */
186 NS_IMETHODIMP nsProfile::ShutDownCurrentProfile(PRUint32 shutDownType)
187 {
188 return NS_ERROR_NOT_IMPLEMENTED;
189 }
190
191 /* void createNewProfile (in wstring profileName, in wstring nativeProfileDir, i n wstring langcode, in boolean useExistingDir); */
192 NS_IMETHODIMP nsProfile::CreateNewProfile(const PRUnichar *profileName, const PR Unichar *nativeProfileDir, const PRUnichar *langcode, PRBool useExistingDir)
193 {
194 return NS_ERROR_NOT_IMPLEMENTED;
195 }
196
197 /* void renameProfile (in wstring oldName, in wstring newName); */
198 NS_IMETHODIMP nsProfile::RenameProfile(const PRUnichar *oldName, const PRUnichar *newName)
199 {
200 return NS_ERROR_NOT_IMPLEMENTED;
201 }
202
203 /* void deleteProfile (in wstring name, in boolean canDeleteFiles); */
204 NS_IMETHODIMP nsProfile::DeleteProfile(const PRUnichar *name, PRBool canDeleteFi les)
205 {
206 return NS_ERROR_NOT_IMPLEMENTED;
207 }
208
209 /* void cloneProfile (in wstring profileName); */
210 NS_IMETHODIMP nsProfile::CloneProfile(const PRUnichar *profileName)
211 {
212 return NS_ERROR_NOT_IMPLEMENTED;
213 }
214
215 /* End of implementation class template. */
216 #endif
217
218
219 #endif /* __gen_nsIProfile_h__ */
OLDNEW
« no previous file with comments | « gecko-sdk/include/nsIPrefService.h ('k') | gecko-sdk/include/nsIProfileChangeStatus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698