1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/toolkit/profile/nsIProfileMigrator.idl
3 : */
4 :
5 : #ifndef __gen_nsIProfileMigrator_h__
6 : #define __gen_nsIProfileMigrator_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 nsIFile; /* forward declaration */
18 :
19 :
20 : /* starting interface: nsIProfileStartup */
21 : #define NS_IPROFILESTARTUP_IID_STR "048e5ca1-0eb7-4bb1-a9a2-a36f7d4e0e3c"
22 :
23 : #define NS_IPROFILESTARTUP_IID \
24 : {0x048e5ca1, 0x0eb7, 0x4bb1, \
25 : { 0xa9, 0xa2, 0xa3, 0x6f, 0x7d, 0x4e, 0x0e, 0x3c }}
26 :
27 23 : class NS_NO_VTABLE NS_SCRIPTABLE nsIProfileStartup : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPROFILESTARTUP_IID)
31 :
32 : /* readonly attribute nsIFile directory; */
33 : NS_SCRIPTABLE NS_IMETHOD GetDirectory(nsIFile * *aDirectory) = 0;
34 :
35 : /* void doStartup (); */
36 : NS_SCRIPTABLE NS_IMETHOD DoStartup(void) = 0;
37 :
38 : };
39 :
40 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIProfileStartup, NS_IPROFILESTARTUP_IID)
41 :
42 : /* Use this macro when declaring classes that implement this interface. */
43 : #define NS_DECL_NSIPROFILESTARTUP \
44 : NS_SCRIPTABLE NS_IMETHOD GetDirectory(nsIFile * *aDirectory); \
45 : NS_SCRIPTABLE NS_IMETHOD DoStartup(void);
46 :
47 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
48 : #define NS_FORWARD_NSIPROFILESTARTUP(_to) \
49 : NS_SCRIPTABLE NS_IMETHOD GetDirectory(nsIFile * *aDirectory) { return _to GetDirectory(aDirectory); } \
50 : NS_SCRIPTABLE NS_IMETHOD DoStartup(void) { return _to DoStartup(); }
51 :
52 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
53 : #define NS_FORWARD_SAFE_NSIPROFILESTARTUP(_to) \
54 : NS_SCRIPTABLE NS_IMETHOD GetDirectory(nsIFile * *aDirectory) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDirectory(aDirectory); } \
55 : NS_SCRIPTABLE NS_IMETHOD DoStartup(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->DoStartup(); }
56 :
57 : #if 0
58 : /* Use the code below as a template for the implementation class for this interface. */
59 :
60 : /* Header file */
61 : class nsProfileStartup : public nsIProfileStartup
62 : {
63 : public:
64 : NS_DECL_ISUPPORTS
65 : NS_DECL_NSIPROFILESTARTUP
66 :
67 : nsProfileStartup();
68 :
69 : private:
70 : ~nsProfileStartup();
71 :
72 : protected:
73 : /* additional members */
74 : };
75 :
76 : /* Implementation file */
77 : NS_IMPL_ISUPPORTS1(nsProfileStartup, nsIProfileStartup)
78 :
79 : nsProfileStartup::nsProfileStartup()
80 : {
81 : /* member initializers and constructor code */
82 : }
83 :
84 : nsProfileStartup::~nsProfileStartup()
85 : {
86 : /* destructor code */
87 : }
88 :
89 : /* readonly attribute nsIFile directory; */
90 : NS_IMETHODIMP nsProfileStartup::GetDirectory(nsIFile * *aDirectory)
91 : {
92 : return NS_ERROR_NOT_IMPLEMENTED;
93 : }
94 :
95 : /* void doStartup (); */
96 : NS_IMETHODIMP nsProfileStartup::DoStartup()
97 : {
98 : return NS_ERROR_NOT_IMPLEMENTED;
99 : }
100 :
101 : /* End of implementation class template. */
102 : #endif
103 :
104 :
105 : /* starting interface: nsIProfileMigrator */
106 : #define NS_IPROFILEMIGRATOR_IID_STR "3df284a5-2258-4d46-a664-761ecdc04c22"
107 :
108 : #define NS_IPROFILEMIGRATOR_IID \
109 : {0x3df284a5, 0x2258, 0x4d46, \
110 : { 0xa6, 0x64, 0x76, 0x1e, 0xcd, 0xc0, 0x4c, 0x22 }}
111 :
112 : class NS_NO_VTABLE NS_SCRIPTABLE nsIProfileMigrator : public nsISupports {
113 : public:
114 :
115 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPROFILEMIGRATOR_IID)
116 :
117 : /* void migrate (in nsIProfileStartup aStartup, in ACString aKey); */
118 : NS_SCRIPTABLE NS_IMETHOD Migrate(nsIProfileStartup *aStartup, const nsACString & aKey) = 0;
119 :
120 : };
121 :
122 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIProfileMigrator, NS_IPROFILEMIGRATOR_IID)
123 :
124 : /* Use this macro when declaring classes that implement this interface. */
125 : #define NS_DECL_NSIPROFILEMIGRATOR \
126 : NS_SCRIPTABLE NS_IMETHOD Migrate(nsIProfileStartup *aStartup, const nsACString & aKey);
127 :
128 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
129 : #define NS_FORWARD_NSIPROFILEMIGRATOR(_to) \
130 : NS_SCRIPTABLE NS_IMETHOD Migrate(nsIProfileStartup *aStartup, const nsACString & aKey) { return _to Migrate(aStartup, aKey); }
131 :
132 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
133 : #define NS_FORWARD_SAFE_NSIPROFILEMIGRATOR(_to) \
134 : NS_SCRIPTABLE NS_IMETHOD Migrate(nsIProfileStartup *aStartup, const nsACString & aKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->Migrate(aStartup, aKey); }
135 :
136 : #if 0
137 : /* Use the code below as a template for the implementation class for this interface. */
138 :
139 : /* Header file */
140 : class nsProfileMigrator : public nsIProfileMigrator
141 : {
142 : public:
143 : NS_DECL_ISUPPORTS
144 : NS_DECL_NSIPROFILEMIGRATOR
145 :
146 : nsProfileMigrator();
147 :
148 : private:
149 : ~nsProfileMigrator();
150 :
151 : protected:
152 : /* additional members */
153 : };
154 :
155 : /* Implementation file */
156 : NS_IMPL_ISUPPORTS1(nsProfileMigrator, nsIProfileMigrator)
157 :
158 : nsProfileMigrator::nsProfileMigrator()
159 : {
160 : /* member initializers and constructor code */
161 : }
162 :
163 : nsProfileMigrator::~nsProfileMigrator()
164 : {
165 : /* destructor code */
166 : }
167 :
168 : /* void migrate (in nsIProfileStartup aStartup, in ACString aKey); */
169 : NS_IMETHODIMP nsProfileMigrator::Migrate(nsIProfileStartup *aStartup, const nsACString & aKey)
170 : {
171 : return NS_ERROR_NOT_IMPLEMENTED;
172 : }
173 :
174 : /* End of implementation class template. */
175 : #endif
176 :
177 : #define NS_PROFILEMIGRATOR_CONTRACTID "@mozilla.org/toolkit/profile-migrator;1"
178 :
179 : #endif /* __gen_nsIProfileMigrator_h__ */
|