1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/xpcom/system/nsIGnomeVFSService.idl
3 : */
4 :
5 : #ifndef __gen_nsIGnomeVFSService_h__
6 : #define __gen_nsIGnomeVFSService_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 nsIUTF8StringEnumerator; /* forward declaration */
18 :
19 : class nsIURI; /* forward declaration */
20 :
21 :
22 : /* starting interface: nsIGnomeVFSMimeApp */
23 : #define NS_IGNOMEVFSMIMEAPP_IID_STR "66009894-9877-405b-9321-bf30420e34e6"
24 :
25 : #define NS_IGNOMEVFSMIMEAPP_IID \
26 : {0x66009894, 0x9877, 0x405b, \
27 : { 0x93, 0x21, 0xbf, 0x30, 0x42, 0x0e, 0x34, 0xe6 }}
28 :
29 42 : class NS_NO_VTABLE NS_SCRIPTABLE nsIGnomeVFSMimeApp : public nsISupports {
30 : public:
31 :
32 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IGNOMEVFSMIMEAPP_IID)
33 :
34 : enum {
35 : EXPECTS_URIS = 0,
36 : EXPECTS_PATHS = 1,
37 : EXPECTS_URIS_FOR_NON_FILES = 2
38 : };
39 :
40 : /* readonly attribute AUTF8String id; */
41 : NS_SCRIPTABLE NS_IMETHOD GetId(nsACString & aId) = 0;
42 :
43 : /* readonly attribute AUTF8String name; */
44 : NS_SCRIPTABLE NS_IMETHOD GetName(nsACString & aName) = 0;
45 :
46 : /* readonly attribute AUTF8String command; */
47 : NS_SCRIPTABLE NS_IMETHOD GetCommand(nsACString & aCommand) = 0;
48 :
49 : /* readonly attribute boolean canOpenMultipleFiles; */
50 : NS_SCRIPTABLE NS_IMETHOD GetCanOpenMultipleFiles(bool *aCanOpenMultipleFiles) = 0;
51 :
52 : /* readonly attribute long expectsURIs; */
53 : NS_SCRIPTABLE NS_IMETHOD GetExpectsURIs(PRInt32 *aExpectsURIs) = 0;
54 :
55 : /* readonly attribute nsIUTF8StringEnumerator supportedURISchemes; */
56 : NS_SCRIPTABLE NS_IMETHOD GetSupportedURISchemes(nsIUTF8StringEnumerator * *aSupportedURISchemes) = 0;
57 :
58 : /* readonly attribute boolean requiresTerminal; */
59 : NS_SCRIPTABLE NS_IMETHOD GetRequiresTerminal(bool *aRequiresTerminal) = 0;
60 :
61 : /* void launch (in AUTF8String uri); */
62 : NS_SCRIPTABLE NS_IMETHOD Launch(const nsACString & uri) = 0;
63 :
64 : };
65 :
66 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIGnomeVFSMimeApp, NS_IGNOMEVFSMIMEAPP_IID)
67 :
68 : /* Use this macro when declaring classes that implement this interface. */
69 : #define NS_DECL_NSIGNOMEVFSMIMEAPP \
70 : NS_SCRIPTABLE NS_IMETHOD GetId(nsACString & aId); \
71 : NS_SCRIPTABLE NS_IMETHOD GetName(nsACString & aName); \
72 : NS_SCRIPTABLE NS_IMETHOD GetCommand(nsACString & aCommand); \
73 : NS_SCRIPTABLE NS_IMETHOD GetCanOpenMultipleFiles(bool *aCanOpenMultipleFiles); \
74 : NS_SCRIPTABLE NS_IMETHOD GetExpectsURIs(PRInt32 *aExpectsURIs); \
75 : NS_SCRIPTABLE NS_IMETHOD GetSupportedURISchemes(nsIUTF8StringEnumerator * *aSupportedURISchemes); \
76 : NS_SCRIPTABLE NS_IMETHOD GetRequiresTerminal(bool *aRequiresTerminal); \
77 : NS_SCRIPTABLE NS_IMETHOD Launch(const nsACString & uri);
78 :
79 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
80 : #define NS_FORWARD_NSIGNOMEVFSMIMEAPP(_to) \
81 : NS_SCRIPTABLE NS_IMETHOD GetId(nsACString & aId) { return _to GetId(aId); } \
82 : NS_SCRIPTABLE NS_IMETHOD GetName(nsACString & aName) { return _to GetName(aName); } \
83 : NS_SCRIPTABLE NS_IMETHOD GetCommand(nsACString & aCommand) { return _to GetCommand(aCommand); } \
84 : NS_SCRIPTABLE NS_IMETHOD GetCanOpenMultipleFiles(bool *aCanOpenMultipleFiles) { return _to GetCanOpenMultipleFiles(aCanOpenMultipleFiles); } \
85 : NS_SCRIPTABLE NS_IMETHOD GetExpectsURIs(PRInt32 *aExpectsURIs) { return _to GetExpectsURIs(aExpectsURIs); } \
86 : NS_SCRIPTABLE NS_IMETHOD GetSupportedURISchemes(nsIUTF8StringEnumerator * *aSupportedURISchemes) { return _to GetSupportedURISchemes(aSupportedURISchemes); } \
87 : NS_SCRIPTABLE NS_IMETHOD GetRequiresTerminal(bool *aRequiresTerminal) { return _to GetRequiresTerminal(aRequiresTerminal); } \
88 : NS_SCRIPTABLE NS_IMETHOD Launch(const nsACString & uri) { return _to Launch(uri); }
89 :
90 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
91 : #define NS_FORWARD_SAFE_NSIGNOMEVFSMIMEAPP(_to) \
92 : NS_SCRIPTABLE NS_IMETHOD GetId(nsACString & aId) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetId(aId); } \
93 : NS_SCRIPTABLE NS_IMETHOD GetName(nsACString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
94 : NS_SCRIPTABLE NS_IMETHOD GetCommand(nsACString & aCommand) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCommand(aCommand); } \
95 : NS_SCRIPTABLE NS_IMETHOD GetCanOpenMultipleFiles(bool *aCanOpenMultipleFiles) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCanOpenMultipleFiles(aCanOpenMultipleFiles); } \
96 : NS_SCRIPTABLE NS_IMETHOD GetExpectsURIs(PRInt32 *aExpectsURIs) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetExpectsURIs(aExpectsURIs); } \
97 : NS_SCRIPTABLE NS_IMETHOD GetSupportedURISchemes(nsIUTF8StringEnumerator * *aSupportedURISchemes) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSupportedURISchemes(aSupportedURISchemes); } \
98 : NS_SCRIPTABLE NS_IMETHOD GetRequiresTerminal(bool *aRequiresTerminal) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRequiresTerminal(aRequiresTerminal); } \
99 : NS_SCRIPTABLE NS_IMETHOD Launch(const nsACString & uri) { return !_to ? NS_ERROR_NULL_POINTER : _to->Launch(uri); }
100 :
101 : #if 0
102 : /* Use the code below as a template for the implementation class for this interface. */
103 :
104 : /* Header file */
105 : class nsGnomeVFSMimeApp : public nsIGnomeVFSMimeApp
106 : {
107 : public:
108 : NS_DECL_ISUPPORTS
109 : NS_DECL_NSIGNOMEVFSMIMEAPP
110 :
111 : nsGnomeVFSMimeApp();
112 :
113 : private:
114 : ~nsGnomeVFSMimeApp();
115 :
116 : protected:
117 : /* additional members */
118 : };
119 :
120 : /* Implementation file */
121 : NS_IMPL_ISUPPORTS1(nsGnomeVFSMimeApp, nsIGnomeVFSMimeApp)
122 :
123 : nsGnomeVFSMimeApp::nsGnomeVFSMimeApp()
124 : {
125 : /* member initializers and constructor code */
126 : }
127 :
128 : nsGnomeVFSMimeApp::~nsGnomeVFSMimeApp()
129 : {
130 : /* destructor code */
131 : }
132 :
133 : /* readonly attribute AUTF8String id; */
134 : NS_IMETHODIMP nsGnomeVFSMimeApp::GetId(nsACString & aId)
135 : {
136 : return NS_ERROR_NOT_IMPLEMENTED;
137 : }
138 :
139 : /* readonly attribute AUTF8String name; */
140 : NS_IMETHODIMP nsGnomeVFSMimeApp::GetName(nsACString & aName)
141 : {
142 : return NS_ERROR_NOT_IMPLEMENTED;
143 : }
144 :
145 : /* readonly attribute AUTF8String command; */
146 : NS_IMETHODIMP nsGnomeVFSMimeApp::GetCommand(nsACString & aCommand)
147 : {
148 : return NS_ERROR_NOT_IMPLEMENTED;
149 : }
150 :
151 : /* readonly attribute boolean canOpenMultipleFiles; */
152 : NS_IMETHODIMP nsGnomeVFSMimeApp::GetCanOpenMultipleFiles(bool *aCanOpenMultipleFiles)
153 : {
154 : return NS_ERROR_NOT_IMPLEMENTED;
155 : }
156 :
157 : /* readonly attribute long expectsURIs; */
158 : NS_IMETHODIMP nsGnomeVFSMimeApp::GetExpectsURIs(PRInt32 *aExpectsURIs)
159 : {
160 : return NS_ERROR_NOT_IMPLEMENTED;
161 : }
162 :
163 : /* readonly attribute nsIUTF8StringEnumerator supportedURISchemes; */
164 : NS_IMETHODIMP nsGnomeVFSMimeApp::GetSupportedURISchemes(nsIUTF8StringEnumerator * *aSupportedURISchemes)
165 : {
166 : return NS_ERROR_NOT_IMPLEMENTED;
167 : }
168 :
169 : /* readonly attribute boolean requiresTerminal; */
170 : NS_IMETHODIMP nsGnomeVFSMimeApp::GetRequiresTerminal(bool *aRequiresTerminal)
171 : {
172 : return NS_ERROR_NOT_IMPLEMENTED;
173 : }
174 :
175 : /* void launch (in AUTF8String uri); */
176 : NS_IMETHODIMP nsGnomeVFSMimeApp::Launch(const nsACString & uri)
177 : {
178 : return NS_ERROR_NOT_IMPLEMENTED;
179 : }
180 :
181 : /* End of implementation class template. */
182 : #endif
183 :
184 :
185 : /* starting interface: nsIGnomeVFSService */
186 : #define NS_IGNOMEVFSSERVICE_IID_STR "d1ac73a6-2ceb-4164-8142-215afe7fe8a6"
187 :
188 : #define NS_IGNOMEVFSSERVICE_IID \
189 : {0xd1ac73a6, 0x2ceb, 0x4164, \
190 : { 0x81, 0x42, 0x21, 0x5a, 0xfe, 0x7f, 0xe8, 0xa6 }}
191 :
192 29 : class NS_NO_VTABLE NS_SCRIPTABLE nsIGnomeVFSService : public nsISupports {
193 : public:
194 :
195 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IGNOMEVFSSERVICE_IID)
196 :
197 : /* AUTF8String getMimeTypeFromExtension (in AUTF8String extension); */
198 : NS_SCRIPTABLE NS_IMETHOD GetMimeTypeFromExtension(const nsACString & extension, nsACString & _retval NS_OUTPARAM) = 0;
199 :
200 : /* nsIGnomeVFSMimeApp getAppForMimeType (in AUTF8String mimeType); */
201 : NS_SCRIPTABLE NS_IMETHOD GetAppForMimeType(const nsACString & mimeType, nsIGnomeVFSMimeApp * *_retval NS_OUTPARAM) = 0;
202 :
203 : /* AUTF8String getDescriptionForMimeType (in AUTF8String mimeType); */
204 : NS_SCRIPTABLE NS_IMETHOD GetDescriptionForMimeType(const nsACString & mimeType, nsACString & _retval NS_OUTPARAM) = 0;
205 :
206 : /* void showURI (in nsIURI uri); */
207 : NS_SCRIPTABLE NS_IMETHOD ShowURI(nsIURI *uri) = 0;
208 :
209 : /* [noscript] void showURIForInput (in ACString uri); */
210 : NS_IMETHOD ShowURIForInput(const nsACString & uri) = 0;
211 :
212 : };
213 :
214 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIGnomeVFSService, NS_IGNOMEVFSSERVICE_IID)
215 :
216 : /* Use this macro when declaring classes that implement this interface. */
217 : #define NS_DECL_NSIGNOMEVFSSERVICE \
218 : NS_SCRIPTABLE NS_IMETHOD GetMimeTypeFromExtension(const nsACString & extension, nsACString & _retval NS_OUTPARAM); \
219 : NS_SCRIPTABLE NS_IMETHOD GetAppForMimeType(const nsACString & mimeType, nsIGnomeVFSMimeApp * *_retval NS_OUTPARAM); \
220 : NS_SCRIPTABLE NS_IMETHOD GetDescriptionForMimeType(const nsACString & mimeType, nsACString & _retval NS_OUTPARAM); \
221 : NS_SCRIPTABLE NS_IMETHOD ShowURI(nsIURI *uri); \
222 : NS_IMETHOD ShowURIForInput(const nsACString & uri);
223 :
224 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
225 : #define NS_FORWARD_NSIGNOMEVFSSERVICE(_to) \
226 : NS_SCRIPTABLE NS_IMETHOD GetMimeTypeFromExtension(const nsACString & extension, nsACString & _retval NS_OUTPARAM) { return _to GetMimeTypeFromExtension(extension, _retval); } \
227 : NS_SCRIPTABLE NS_IMETHOD GetAppForMimeType(const nsACString & mimeType, nsIGnomeVFSMimeApp * *_retval NS_OUTPARAM) { return _to GetAppForMimeType(mimeType, _retval); } \
228 : NS_SCRIPTABLE NS_IMETHOD GetDescriptionForMimeType(const nsACString & mimeType, nsACString & _retval NS_OUTPARAM) { return _to GetDescriptionForMimeType(mimeType, _retval); } \
229 : NS_SCRIPTABLE NS_IMETHOD ShowURI(nsIURI *uri) { return _to ShowURI(uri); } \
230 : NS_IMETHOD ShowURIForInput(const nsACString & uri) { return _to ShowURIForInput(uri); }
231 :
232 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
233 : #define NS_FORWARD_SAFE_NSIGNOMEVFSSERVICE(_to) \
234 : NS_SCRIPTABLE NS_IMETHOD GetMimeTypeFromExtension(const nsACString & extension, nsACString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMimeTypeFromExtension(extension, _retval); } \
235 : NS_SCRIPTABLE NS_IMETHOD GetAppForMimeType(const nsACString & mimeType, nsIGnomeVFSMimeApp * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAppForMimeType(mimeType, _retval); } \
236 : NS_SCRIPTABLE NS_IMETHOD GetDescriptionForMimeType(const nsACString & mimeType, nsACString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDescriptionForMimeType(mimeType, _retval); } \
237 : NS_SCRIPTABLE NS_IMETHOD ShowURI(nsIURI *uri) { return !_to ? NS_ERROR_NULL_POINTER : _to->ShowURI(uri); } \
238 : NS_IMETHOD ShowURIForInput(const nsACString & uri) { return !_to ? NS_ERROR_NULL_POINTER : _to->ShowURIForInput(uri); }
239 :
240 : #if 0
241 : /* Use the code below as a template for the implementation class for this interface. */
242 :
243 : /* Header file */
244 : class nsGnomeVFSService : public nsIGnomeVFSService
245 : {
246 : public:
247 : NS_DECL_ISUPPORTS
248 : NS_DECL_NSIGNOMEVFSSERVICE
249 :
250 : nsGnomeVFSService();
251 :
252 : private:
253 : ~nsGnomeVFSService();
254 :
255 : protected:
256 : /* additional members */
257 : };
258 :
259 : /* Implementation file */
260 : NS_IMPL_ISUPPORTS1(nsGnomeVFSService, nsIGnomeVFSService)
261 :
262 : nsGnomeVFSService::nsGnomeVFSService()
263 : {
264 : /* member initializers and constructor code */
265 : }
266 :
267 : nsGnomeVFSService::~nsGnomeVFSService()
268 : {
269 : /* destructor code */
270 : }
271 :
272 : /* AUTF8String getMimeTypeFromExtension (in AUTF8String extension); */
273 : NS_IMETHODIMP nsGnomeVFSService::GetMimeTypeFromExtension(const nsACString & extension, nsACString & _retval NS_OUTPARAM)
274 : {
275 : return NS_ERROR_NOT_IMPLEMENTED;
276 : }
277 :
278 : /* nsIGnomeVFSMimeApp getAppForMimeType (in AUTF8String mimeType); */
279 : NS_IMETHODIMP nsGnomeVFSService::GetAppForMimeType(const nsACString & mimeType, nsIGnomeVFSMimeApp * *_retval NS_OUTPARAM)
280 : {
281 : return NS_ERROR_NOT_IMPLEMENTED;
282 : }
283 :
284 : /* AUTF8String getDescriptionForMimeType (in AUTF8String mimeType); */
285 : NS_IMETHODIMP nsGnomeVFSService::GetDescriptionForMimeType(const nsACString & mimeType, nsACString & _retval NS_OUTPARAM)
286 : {
287 : return NS_ERROR_NOT_IMPLEMENTED;
288 : }
289 :
290 : /* void showURI (in nsIURI uri); */
291 : NS_IMETHODIMP nsGnomeVFSService::ShowURI(nsIURI *uri)
292 : {
293 : return NS_ERROR_NOT_IMPLEMENTED;
294 : }
295 :
296 : /* [noscript] void showURIForInput (in ACString uri); */
297 : NS_IMETHODIMP nsGnomeVFSService::ShowURIForInput(const nsACString & uri)
298 : {
299 : return NS_ERROR_NOT_IMPLEMENTED;
300 : }
301 :
302 : /* End of implementation class template. */
303 : #endif
304 :
305 : #define NS_GNOMEVFSSERVICE_CONTRACTID "@mozilla.org/gnome-vfs-service;1"
306 :
307 : #endif /* __gen_nsIGnomeVFSService_h__ */
|