PageRenderTime 109ms CodeModel.GetById 30ms app.highlight 7ms RepoModel.GetById 53ms app.codeStats 0ms

/gecko_api/include/nsIProfile.h

http://firefox-mac-pdf.googlecode.com/
C++ Header | 221 lines | 136 code | 46 blank | 39 comment | 0 complexity | 5969b05d63c616ccf7618c31f2b4aebd MD5 | raw file
  1/*
  2 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/tinderbox/XR-Trunk/Darwin_8.8.4_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 */
 47class NS_NO_VTABLE NS_SCRIPTABLE nsIProfile : public nsISupports {
 48 public: 
 49
 50  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPROFILE_IID)
 51
 52  /* readonly attribute long profileCount; */
 53  NS_SCRIPTABLE NS_IMETHOD GetProfileCount(PRInt32 *aProfileCount) = 0;
 54
 55  /* void getProfileList (out unsigned long length, [array, size_is (length), retval] out wstring profileNames); */
 56  NS_SCRIPTABLE NS_IMETHOD GetProfileList(PRUint32 *length, PRUnichar ***profileNames) = 0;
 57
 58  /* boolean profileExists (in wstring profileName); */
 59  NS_SCRIPTABLE NS_IMETHOD ProfileExists(const PRUnichar *profileName, PRBool *_retval) = 0;
 60
 61  /* attribute wstring currentProfile; */
 62  NS_SCRIPTABLE NS_IMETHOD GetCurrentProfile(PRUnichar * *aCurrentProfile) = 0;
 63  NS_SCRIPTABLE 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_SCRIPTABLE NS_IMETHOD ShutDownCurrentProfile(PRUint32 shutDownType) = 0;
 71
 72  /* void createNewProfile (in wstring profileName, in wstring nativeProfileDir, in wstring langcode, in boolean useExistingDir); */
 73  NS_SCRIPTABLE NS_IMETHOD CreateNewProfile(const PRUnichar *profileName, const PRUnichar *nativeProfileDir, const PRUnichar *langcode, PRBool useExistingDir) = 0;
 74
 75  /* void renameProfile (in wstring oldName, in wstring newName); */
 76  NS_SCRIPTABLE NS_IMETHOD RenameProfile(const PRUnichar *oldName, const PRUnichar *newName) = 0;
 77
 78  /* void deleteProfile (in wstring name, in boolean canDeleteFiles); */
 79  NS_SCRIPTABLE NS_IMETHOD DeleteProfile(const PRUnichar *name, PRBool canDeleteFiles) = 0;
 80
 81  /* void cloneProfile (in wstring profileName); */
 82  NS_SCRIPTABLE NS_IMETHOD CloneProfile(const PRUnichar *profileName) = 0;
 83
 84};
 85
 86  NS_DEFINE_STATIC_IID_ACCESSOR(nsIProfile, NS_IPROFILE_IID)
 87
 88/* Use this macro when declaring classes that implement this interface. */
 89#define NS_DECL_NSIPROFILE \
 90  NS_SCRIPTABLE NS_IMETHOD GetProfileCount(PRInt32 *aProfileCount); \
 91  NS_SCRIPTABLE NS_IMETHOD GetProfileList(PRUint32 *length, PRUnichar ***profileNames); \
 92  NS_SCRIPTABLE NS_IMETHOD ProfileExists(const PRUnichar *profileName, PRBool *_retval); \
 93  NS_SCRIPTABLE NS_IMETHOD GetCurrentProfile(PRUnichar * *aCurrentProfile); \
 94  NS_SCRIPTABLE NS_IMETHOD SetCurrentProfile(const PRUnichar * aCurrentProfile); \
 95  NS_SCRIPTABLE NS_IMETHOD ShutDownCurrentProfile(PRUint32 shutDownType); \
 96  NS_SCRIPTABLE NS_IMETHOD CreateNewProfile(const PRUnichar *profileName, const PRUnichar *nativeProfileDir, const PRUnichar *langcode, PRBool useExistingDir); \
 97  NS_SCRIPTABLE NS_IMETHOD RenameProfile(const PRUnichar *oldName, const PRUnichar *newName); \
 98  NS_SCRIPTABLE NS_IMETHOD DeleteProfile(const PRUnichar *name, PRBool canDeleteFiles); \
 99  NS_SCRIPTABLE NS_IMETHOD CloneProfile(const PRUnichar *profileName); 
100
101/* Use this macro to declare functions that forward the behavior of this interface to another object. */
102#define NS_FORWARD_NSIPROFILE(_to) \
103  NS_SCRIPTABLE NS_IMETHOD GetProfileCount(PRInt32 *aProfileCount) { return _to GetProfileCount(aProfileCount); } \
104  NS_SCRIPTABLE NS_IMETHOD GetProfileList(PRUint32 *length, PRUnichar ***profileNames) { return _to GetProfileList(length, profileNames); } \
105  NS_SCRIPTABLE NS_IMETHOD ProfileExists(const PRUnichar *profileName, PRBool *_retval) { return _to ProfileExists(profileName, _retval); } \
106  NS_SCRIPTABLE NS_IMETHOD GetCurrentProfile(PRUnichar * *aCurrentProfile) { return _to GetCurrentProfile(aCurrentProfile); } \
107  NS_SCRIPTABLE NS_IMETHOD SetCurrentProfile(const PRUnichar * aCurrentProfile) { return _to SetCurrentProfile(aCurrentProfile); } \
108  NS_SCRIPTABLE NS_IMETHOD ShutDownCurrentProfile(PRUint32 shutDownType) { return _to ShutDownCurrentProfile(shutDownType); } \
109  NS_SCRIPTABLE NS_IMETHOD CreateNewProfile(const PRUnichar *profileName, const PRUnichar *nativeProfileDir, const PRUnichar *langcode, PRBool useExistingDir) { return _to CreateNewProfile(profileName, nativeProfileDir, langcode, useExistingDir); } \
110  NS_SCRIPTABLE NS_IMETHOD RenameProfile(const PRUnichar *oldName, const PRUnichar *newName) { return _to RenameProfile(oldName, newName); } \
111  NS_SCRIPTABLE NS_IMETHOD DeleteProfile(const PRUnichar *name, PRBool canDeleteFiles) { return _to DeleteProfile(name, canDeleteFiles); } \
112  NS_SCRIPTABLE NS_IMETHOD CloneProfile(const PRUnichar *profileName) { return _to CloneProfile(profileName); } 
113
114/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
115#define NS_FORWARD_SAFE_NSIPROFILE(_to) \
116  NS_SCRIPTABLE NS_IMETHOD GetProfileCount(PRInt32 *aProfileCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProfileCount(aProfileCount); } \
117  NS_SCRIPTABLE NS_IMETHOD GetProfileList(PRUint32 *length, PRUnichar ***profileNames) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProfileList(length, profileNames); } \
118  NS_SCRIPTABLE NS_IMETHOD ProfileExists(const PRUnichar *profileName, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ProfileExists(profileName, _retval); } \
119  NS_SCRIPTABLE NS_IMETHOD GetCurrentProfile(PRUnichar * *aCurrentProfile) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCurrentProfile(aCurrentProfile); } \
120  NS_SCRIPTABLE NS_IMETHOD SetCurrentProfile(const PRUnichar * aCurrentProfile) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCurrentProfile(aCurrentProfile); } \
121  NS_SCRIPTABLE NS_IMETHOD ShutDownCurrentProfile(PRUint32 shutDownType) { return !_to ? NS_ERROR_NULL_POINTER : _to->ShutDownCurrentProfile(shutDownType); } \
122  NS_SCRIPTABLE 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); } \
123  NS_SCRIPTABLE NS_IMETHOD RenameProfile(const PRUnichar *oldName, const PRUnichar *newName) { return !_to ? NS_ERROR_NULL_POINTER : _to->RenameProfile(oldName, newName); } \
124  NS_SCRIPTABLE NS_IMETHOD DeleteProfile(const PRUnichar *name, PRBool canDeleteFiles) { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteProfile(name, canDeleteFiles); } \
125  NS_SCRIPTABLE NS_IMETHOD CloneProfile(const PRUnichar *profileName) { return !_to ? NS_ERROR_NULL_POINTER : _to->CloneProfile(profileName); } 
126
127#if 0
128/* Use the code below as a template for the implementation class for this interface. */
129
130/* Header file */
131class nsProfile : public nsIProfile
132{
133public:
134  NS_DECL_ISUPPORTS
135  NS_DECL_NSIPROFILE
136
137  nsProfile();
138
139private:
140  ~nsProfile();
141
142protected:
143  /* additional members */
144};
145
146/* Implementation file */
147NS_IMPL_ISUPPORTS1(nsProfile, nsIProfile)
148
149nsProfile::nsProfile()
150{
151  /* member initializers and constructor code */
152}
153
154nsProfile::~nsProfile()
155{
156  /* destructor code */
157}
158
159/* readonly attribute long profileCount; */
160NS_IMETHODIMP nsProfile::GetProfileCount(PRInt32 *aProfileCount)
161{
162    return NS_ERROR_NOT_IMPLEMENTED;
163}
164
165/* void getProfileList (out unsigned long length, [array, size_is (length), retval] out wstring profileNames); */
166NS_IMETHODIMP nsProfile::GetProfileList(PRUint32 *length, PRUnichar ***profileNames)
167{
168    return NS_ERROR_NOT_IMPLEMENTED;
169}
170
171/* boolean profileExists (in wstring profileName); */
172NS_IMETHODIMP nsProfile::ProfileExists(const PRUnichar *profileName, PRBool *_retval)
173{
174    return NS_ERROR_NOT_IMPLEMENTED;
175}
176
177/* attribute wstring currentProfile; */
178NS_IMETHODIMP nsProfile::GetCurrentProfile(PRUnichar * *aCurrentProfile)
179{
180    return NS_ERROR_NOT_IMPLEMENTED;
181}
182NS_IMETHODIMP nsProfile::SetCurrentProfile(const PRUnichar * aCurrentProfile)
183{
184    return NS_ERROR_NOT_IMPLEMENTED;
185}
186
187/* void shutDownCurrentProfile (in unsigned long shutDownType); */
188NS_IMETHODIMP nsProfile::ShutDownCurrentProfile(PRUint32 shutDownType)
189{
190    return NS_ERROR_NOT_IMPLEMENTED;
191}
192
193/* void createNewProfile (in wstring profileName, in wstring nativeProfileDir, in wstring langcode, in boolean useExistingDir); */
194NS_IMETHODIMP nsProfile::CreateNewProfile(const PRUnichar *profileName, const PRUnichar *nativeProfileDir, const PRUnichar *langcode, PRBool useExistingDir)
195{
196    return NS_ERROR_NOT_IMPLEMENTED;
197}
198
199/* void renameProfile (in wstring oldName, in wstring newName); */
200NS_IMETHODIMP nsProfile::RenameProfile(const PRUnichar *oldName, const PRUnichar *newName)
201{
202    return NS_ERROR_NOT_IMPLEMENTED;
203}
204
205/* void deleteProfile (in wstring name, in boolean canDeleteFiles); */
206NS_IMETHODIMP nsProfile::DeleteProfile(const PRUnichar *name, PRBool canDeleteFiles)
207{
208    return NS_ERROR_NOT_IMPLEMENTED;
209}
210
211/* void cloneProfile (in wstring profileName); */
212NS_IMETHODIMP nsProfile::CloneProfile(const PRUnichar *profileName)
213{
214    return NS_ERROR_NOT_IMPLEMENTED;
215}
216
217/* End of implementation class template. */
218#endif
219
220
221#endif /* __gen_nsIProfile_h__ */