2
* DO NOT EDIT. THIS FILE IS GENERATED FROM e:/dev/firefox-2.0.0.7-source/mozilla/profile/public/nsIProfile.idl
5
#ifndef __gen_nsIProfile_h__
6
#define __gen_nsIProfile_h__
9
#ifndef __gen_nsISupports_h__
10
#include "nsISupports.h"
13
#ifndef __gen_nsIFile_h__
17
/* For IDL files that don't want to include root IDL files. */
22
#define NS_PROFILE_CID \
23
{ /* {02b0625b-e7f3-11d2-9f5a-006008a6efe9} */ \
27
{ 0x9f, 0x5a, 0x00, 0x60, 0x08, 0xa6, 0xef, 0xe9 } \
29
#define NS_PROFILE_CONTRACTID \
30
"@mozilla.org/profile/manager;1"
31
#define NS_PROFILE_STARTUP_CATEGORY \
32
"profile-startup-category"
34
/* starting interface: nsIProfile */
35
#define NS_IPROFILE_IID_STR "02b0625a-e7f3-11d2-9f5a-006008a6efe9"
37
#define NS_IPROFILE_IID \
38
{0x02b0625a, 0xe7f3, 0x11d2, \
39
{ 0x9f, 0x5a, 0x00, 0x60, 0x08, 0xa6, 0xef, 0xe9 }}
47
class NS_NO_VTABLE nsIProfile : public nsISupports {
50
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IPROFILE_IID)
52
/* readonly attribute long profileCount; */
53
NS_IMETHOD GetProfileCount(PRInt32 *aProfileCount) = 0;
55
/* void getProfileList (out unsigned long length, [array, size_is (length), retval] out wstring profileNames); */
56
NS_IMETHOD GetProfileList(PRUint32 *length, PRUnichar ***profileNames) = 0;
58
/* boolean profileExists (in wstring profileName); */
59
NS_IMETHOD ProfileExists(const PRUnichar *profileName, PRBool *_retval) = 0;
61
/* attribute wstring currentProfile; */
62
NS_IMETHOD GetCurrentProfile(PRUnichar * *aCurrentProfile) = 0;
63
NS_IMETHOD SetCurrentProfile(const PRUnichar * aCurrentProfile) = 0;
65
enum { SHUTDOWN_PERSIST = 1U };
67
enum { SHUTDOWN_CLEANSE = 2U };
69
/* void shutDownCurrentProfile (in unsigned long shutDownType); */
70
NS_IMETHOD ShutDownCurrentProfile(PRUint32 shutDownType) = 0;
72
/* void createNewProfile (in wstring profileName, in wstring nativeProfileDir, in wstring langcode, in boolean useExistingDir); */
73
NS_IMETHOD CreateNewProfile(const PRUnichar *profileName, const PRUnichar *nativeProfileDir, const PRUnichar *langcode, PRBool useExistingDir) = 0;
75
/* void renameProfile (in wstring oldName, in wstring newName); */
76
NS_IMETHOD RenameProfile(const PRUnichar *oldName, const PRUnichar *newName) = 0;
78
/* void deleteProfile (in wstring name, in boolean canDeleteFiles); */
79
NS_IMETHOD DeleteProfile(const PRUnichar *name, PRBool canDeleteFiles) = 0;
81
/* void cloneProfile (in wstring profileName); */
82
NS_IMETHOD CloneProfile(const PRUnichar *profileName) = 0;
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 *nativeProfileDir, 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);
99
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
100
#define NS_FORWARD_NSIPROFILE(_to) \
101
NS_IMETHOD GetProfileCount(PRInt32 *aProfileCount) { return _to GetProfileCount(aProfileCount); } \
102
NS_IMETHOD GetProfileList(PRUint32 *length, PRUnichar ***profileNames) { return _to GetProfileList(length, profileNames); } \
103
NS_IMETHOD ProfileExists(const PRUnichar *profileName, PRBool *_retval) { return _to ProfileExists(profileName, _retval); } \
104
NS_IMETHOD GetCurrentProfile(PRUnichar * *aCurrentProfile) { return _to GetCurrentProfile(aCurrentProfile); } \
105
NS_IMETHOD SetCurrentProfile(const PRUnichar * aCurrentProfile) { return _to SetCurrentProfile(aCurrentProfile); } \
106
NS_IMETHOD ShutDownCurrentProfile(PRUint32 shutDownType) { return _to ShutDownCurrentProfile(shutDownType); } \
107
NS_IMETHOD CreateNewProfile(const PRUnichar *profileName, const PRUnichar *nativeProfileDir, const PRUnichar *langcode, PRBool useExistingDir) { return _to CreateNewProfile(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) { return _to DeleteProfile(name, canDeleteFiles); } \
110
NS_IMETHOD CloneProfile(const PRUnichar *profileName) { return _to CloneProfile(profileName); }
112
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
113
#define NS_FORWARD_SAFE_NSIPROFILE(_to) \
114
NS_IMETHOD GetProfileCount(PRInt32 *aProfileCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProfileCount(aProfileCount); } \
115
NS_IMETHOD GetProfileList(PRUint32 *length, PRUnichar ***profileNames) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProfileList(length, profileNames); } \
116
NS_IMETHOD ProfileExists(const PRUnichar *profileName, PRBool *_retval) { return !_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_ERROR_NULL_POINTER : _to->ShutDownCurrentProfile(shutDownType); } \
120
NS_IMETHOD CreateNewProfile(const PRUnichar *profileName, const PRUnichar *nativeProfileDir, const PRUnichar *langcode, PRBool useExistingDir) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateNewProfile(profileName, nativeProfileDir, langcode, 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) { return !_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); }
126
/* Use the code below as a template for the implementation class for this interface. */
129
class nsProfile : public nsIProfile
141
/* additional members */
144
/* Implementation file */
145
NS_IMPL_ISUPPORTS1(nsProfile, nsIProfile)
147
nsProfile::nsProfile()
149
/* member initializers and constructor code */
152
nsProfile::~nsProfile()
154
/* destructor code */
157
/* readonly attribute long profileCount; */
158
NS_IMETHODIMP nsProfile::GetProfileCount(PRInt32 *aProfileCount)
160
return NS_ERROR_NOT_IMPLEMENTED;
163
/* void getProfileList (out unsigned long length, [array, size_is (length), retval] out wstring profileNames); */
164
NS_IMETHODIMP nsProfile::GetProfileList(PRUint32 *length, PRUnichar ***profileNames)
166
return NS_ERROR_NOT_IMPLEMENTED;
169
/* boolean profileExists (in wstring profileName); */
170
NS_IMETHODIMP nsProfile::ProfileExists(const PRUnichar *profileName, PRBool *_retval)
172
return NS_ERROR_NOT_IMPLEMENTED;
175
/* attribute wstring currentProfile; */
176
NS_IMETHODIMP nsProfile::GetCurrentProfile(PRUnichar * *aCurrentProfile)
178
return NS_ERROR_NOT_IMPLEMENTED;
180
NS_IMETHODIMP nsProfile::SetCurrentProfile(const PRUnichar * aCurrentProfile)
182
return NS_ERROR_NOT_IMPLEMENTED;
185
/* void shutDownCurrentProfile (in unsigned long shutDownType); */
186
NS_IMETHODIMP nsProfile::ShutDownCurrentProfile(PRUint32 shutDownType)
188
return NS_ERROR_NOT_IMPLEMENTED;
191
/* void createNewProfile (in wstring profileName, in wstring nativeProfileDir, in wstring langcode, in boolean useExistingDir); */
192
NS_IMETHODIMP nsProfile::CreateNewProfile(const PRUnichar *profileName, const PRUnichar *nativeProfileDir, const PRUnichar *langcode, PRBool useExistingDir)
194
return NS_ERROR_NOT_IMPLEMENTED;
197
/* void renameProfile (in wstring oldName, in wstring newName); */
198
NS_IMETHODIMP nsProfile::RenameProfile(const PRUnichar *oldName, const PRUnichar *newName)
200
return NS_ERROR_NOT_IMPLEMENTED;
203
/* void deleteProfile (in wstring name, in boolean canDeleteFiles); */
204
NS_IMETHODIMP nsProfile::DeleteProfile(const PRUnichar *name, PRBool canDeleteFiles)
206
return NS_ERROR_NOT_IMPLEMENTED;
209
/* void cloneProfile (in wstring profileName); */
210
NS_IMETHODIMP nsProfile::CloneProfile(const PRUnichar *profileName)
212
return NS_ERROR_NOT_IMPLEMENTED;
215
/* End of implementation class template. */
219
#endif /* __gen_nsIProfile_h__ */