1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/uriloader/exthandler/nsIExternalProtocolService.idl
3 : */
4 :
5 : #ifndef __gen_nsIExternalProtocolService_h__
6 : #define __gen_nsIExternalProtocolService_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 nsIURI; /* forward declaration */
18 :
19 : class nsIFile; /* forward declaration */
20 :
21 : class nsIInterfaceRequestor; /* forward declaration */
22 :
23 : class nsIHandlerInfo; /* forward declaration */
24 :
25 :
26 : /* starting interface: nsIExternalProtocolService */
27 : #define NS_IEXTERNALPROTOCOLSERVICE_IID_STR "70f93b7a-3ec6-4bcb-b093-92d9984c9f83"
28 :
29 : #define NS_IEXTERNALPROTOCOLSERVICE_IID \
30 : {0x70f93b7a, 0x3ec6, 0x4bcb, \
31 : { 0xb0, 0x93, 0x92, 0xd9, 0x98, 0x4c, 0x9f, 0x83 }}
32 :
33 188 : class NS_NO_VTABLE NS_SCRIPTABLE nsIExternalProtocolService : public nsISupports {
34 : public:
35 :
36 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IEXTERNALPROTOCOLSERVICE_IID)
37 :
38 : /* boolean externalProtocolHandlerExists (in string aProtocolScheme); */
39 : NS_SCRIPTABLE NS_IMETHOD ExternalProtocolHandlerExists(const char * aProtocolScheme, bool *_retval NS_OUTPARAM) = 0;
40 :
41 : /* boolean isExposedProtocol (in string aProtocolScheme); */
42 : NS_SCRIPTABLE NS_IMETHOD IsExposedProtocol(const char * aProtocolScheme, bool *_retval NS_OUTPARAM) = 0;
43 :
44 : /* nsIHandlerInfo getProtocolHandlerInfo (in ACString aProtocolScheme); */
45 : NS_SCRIPTABLE NS_IMETHOD GetProtocolHandlerInfo(const nsACString & aProtocolScheme, nsIHandlerInfo * *_retval NS_OUTPARAM) = 0;
46 :
47 : /* nsIHandlerInfo getProtocolHandlerInfoFromOS (in ACString aProtocolScheme, out boolean aFound); */
48 : NS_SCRIPTABLE NS_IMETHOD GetProtocolHandlerInfoFromOS(const nsACString & aProtocolScheme, bool *aFound NS_OUTPARAM, nsIHandlerInfo * *_retval NS_OUTPARAM) = 0;
49 :
50 : /* void setProtocolHandlerDefaults (in nsIHandlerInfo aHandlerInfo, in boolean aOSHandlerExists); */
51 : NS_SCRIPTABLE NS_IMETHOD SetProtocolHandlerDefaults(nsIHandlerInfo *aHandlerInfo, bool aOSHandlerExists) = 0;
52 :
53 : /* [deprecated] void loadUrl (in nsIURI aURL); */
54 : NS_SCRIPTABLE NS_IMETHOD LoadUrl(nsIURI *aURL) = 0;
55 :
56 : /* void loadURI (in nsIURI aURI, [optional] in nsIInterfaceRequestor aWindowContext); */
57 : NS_SCRIPTABLE NS_IMETHOD LoadURI(nsIURI *aURI, nsIInterfaceRequestor *aWindowContext) = 0;
58 :
59 : /* AString getApplicationDescription (in AUTF8String aScheme); */
60 : NS_SCRIPTABLE NS_IMETHOD GetApplicationDescription(const nsACString & aScheme, nsAString & _retval NS_OUTPARAM) = 0;
61 :
62 : };
63 :
64 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIExternalProtocolService, NS_IEXTERNALPROTOCOLSERVICE_IID)
65 :
66 : /* Use this macro when declaring classes that implement this interface. */
67 : #define NS_DECL_NSIEXTERNALPROTOCOLSERVICE \
68 : NS_SCRIPTABLE NS_IMETHOD ExternalProtocolHandlerExists(const char * aProtocolScheme, bool *_retval NS_OUTPARAM); \
69 : NS_SCRIPTABLE NS_IMETHOD IsExposedProtocol(const char * aProtocolScheme, bool *_retval NS_OUTPARAM); \
70 : NS_SCRIPTABLE NS_IMETHOD GetProtocolHandlerInfo(const nsACString & aProtocolScheme, nsIHandlerInfo * *_retval NS_OUTPARAM); \
71 : NS_SCRIPTABLE NS_IMETHOD GetProtocolHandlerInfoFromOS(const nsACString & aProtocolScheme, bool *aFound NS_OUTPARAM, nsIHandlerInfo * *_retval NS_OUTPARAM); \
72 : NS_SCRIPTABLE NS_IMETHOD SetProtocolHandlerDefaults(nsIHandlerInfo *aHandlerInfo, bool aOSHandlerExists); \
73 : NS_SCRIPTABLE NS_IMETHOD LoadUrl(nsIURI *aURL); \
74 : NS_SCRIPTABLE NS_IMETHOD LoadURI(nsIURI *aURI, nsIInterfaceRequestor *aWindowContext); \
75 : NS_SCRIPTABLE NS_IMETHOD GetApplicationDescription(const nsACString & aScheme, nsAString & _retval NS_OUTPARAM);
76 :
77 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
78 : #define NS_FORWARD_NSIEXTERNALPROTOCOLSERVICE(_to) \
79 : NS_SCRIPTABLE NS_IMETHOD ExternalProtocolHandlerExists(const char * aProtocolScheme, bool *_retval NS_OUTPARAM) { return _to ExternalProtocolHandlerExists(aProtocolScheme, _retval); } \
80 : NS_SCRIPTABLE NS_IMETHOD IsExposedProtocol(const char * aProtocolScheme, bool *_retval NS_OUTPARAM) { return _to IsExposedProtocol(aProtocolScheme, _retval); } \
81 : NS_SCRIPTABLE NS_IMETHOD GetProtocolHandlerInfo(const nsACString & aProtocolScheme, nsIHandlerInfo * *_retval NS_OUTPARAM) { return _to GetProtocolHandlerInfo(aProtocolScheme, _retval); } \
82 : NS_SCRIPTABLE NS_IMETHOD GetProtocolHandlerInfoFromOS(const nsACString & aProtocolScheme, bool *aFound NS_OUTPARAM, nsIHandlerInfo * *_retval NS_OUTPARAM) { return _to GetProtocolHandlerInfoFromOS(aProtocolScheme, aFound, _retval); } \
83 : NS_SCRIPTABLE NS_IMETHOD SetProtocolHandlerDefaults(nsIHandlerInfo *aHandlerInfo, bool aOSHandlerExists) { return _to SetProtocolHandlerDefaults(aHandlerInfo, aOSHandlerExists); } \
84 : NS_SCRIPTABLE NS_IMETHOD LoadUrl(nsIURI *aURL) { return _to LoadUrl(aURL); } \
85 : NS_SCRIPTABLE NS_IMETHOD LoadURI(nsIURI *aURI, nsIInterfaceRequestor *aWindowContext) { return _to LoadURI(aURI, aWindowContext); } \
86 : NS_SCRIPTABLE NS_IMETHOD GetApplicationDescription(const nsACString & aScheme, nsAString & _retval NS_OUTPARAM) { return _to GetApplicationDescription(aScheme, _retval); }
87 :
88 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
89 : #define NS_FORWARD_SAFE_NSIEXTERNALPROTOCOLSERVICE(_to) \
90 : NS_SCRIPTABLE NS_IMETHOD ExternalProtocolHandlerExists(const char * aProtocolScheme, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ExternalProtocolHandlerExists(aProtocolScheme, _retval); } \
91 : NS_SCRIPTABLE NS_IMETHOD IsExposedProtocol(const char * aProtocolScheme, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsExposedProtocol(aProtocolScheme, _retval); } \
92 : NS_SCRIPTABLE NS_IMETHOD GetProtocolHandlerInfo(const nsACString & aProtocolScheme, nsIHandlerInfo * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProtocolHandlerInfo(aProtocolScheme, _retval); } \
93 : NS_SCRIPTABLE NS_IMETHOD GetProtocolHandlerInfoFromOS(const nsACString & aProtocolScheme, bool *aFound NS_OUTPARAM, nsIHandlerInfo * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProtocolHandlerInfoFromOS(aProtocolScheme, aFound, _retval); } \
94 : NS_SCRIPTABLE NS_IMETHOD SetProtocolHandlerDefaults(nsIHandlerInfo *aHandlerInfo, bool aOSHandlerExists) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetProtocolHandlerDefaults(aHandlerInfo, aOSHandlerExists); } \
95 : NS_SCRIPTABLE NS_IMETHOD LoadUrl(nsIURI *aURL) { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadUrl(aURL); } \
96 : NS_SCRIPTABLE NS_IMETHOD LoadURI(nsIURI *aURI, nsIInterfaceRequestor *aWindowContext) { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadURI(aURI, aWindowContext); } \
97 : NS_SCRIPTABLE NS_IMETHOD GetApplicationDescription(const nsACString & aScheme, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetApplicationDescription(aScheme, _retval); }
98 :
99 : #if 0
100 : /* Use the code below as a template for the implementation class for this interface. */
101 :
102 : /* Header file */
103 : class nsExternalProtocolService : public nsIExternalProtocolService
104 : {
105 : public:
106 : NS_DECL_ISUPPORTS
107 : NS_DECL_NSIEXTERNALPROTOCOLSERVICE
108 :
109 : nsExternalProtocolService();
110 :
111 : private:
112 : ~nsExternalProtocolService();
113 :
114 : protected:
115 : /* additional members */
116 : };
117 :
118 : /* Implementation file */
119 : NS_IMPL_ISUPPORTS1(nsExternalProtocolService, nsIExternalProtocolService)
120 :
121 : nsExternalProtocolService::nsExternalProtocolService()
122 : {
123 : /* member initializers and constructor code */
124 : }
125 :
126 : nsExternalProtocolService::~nsExternalProtocolService()
127 : {
128 : /* destructor code */
129 : }
130 :
131 : /* boolean externalProtocolHandlerExists (in string aProtocolScheme); */
132 : NS_IMETHODIMP nsExternalProtocolService::ExternalProtocolHandlerExists(const char * aProtocolScheme, bool *_retval NS_OUTPARAM)
133 : {
134 : return NS_ERROR_NOT_IMPLEMENTED;
135 : }
136 :
137 : /* boolean isExposedProtocol (in string aProtocolScheme); */
138 : NS_IMETHODIMP nsExternalProtocolService::IsExposedProtocol(const char * aProtocolScheme, bool *_retval NS_OUTPARAM)
139 : {
140 : return NS_ERROR_NOT_IMPLEMENTED;
141 : }
142 :
143 : /* nsIHandlerInfo getProtocolHandlerInfo (in ACString aProtocolScheme); */
144 : NS_IMETHODIMP nsExternalProtocolService::GetProtocolHandlerInfo(const nsACString & aProtocolScheme, nsIHandlerInfo * *_retval NS_OUTPARAM)
145 : {
146 : return NS_ERROR_NOT_IMPLEMENTED;
147 : }
148 :
149 : /* nsIHandlerInfo getProtocolHandlerInfoFromOS (in ACString aProtocolScheme, out boolean aFound); */
150 : NS_IMETHODIMP nsExternalProtocolService::GetProtocolHandlerInfoFromOS(const nsACString & aProtocolScheme, bool *aFound NS_OUTPARAM, nsIHandlerInfo * *_retval NS_OUTPARAM)
151 : {
152 : return NS_ERROR_NOT_IMPLEMENTED;
153 : }
154 :
155 : /* void setProtocolHandlerDefaults (in nsIHandlerInfo aHandlerInfo, in boolean aOSHandlerExists); */
156 : NS_IMETHODIMP nsExternalProtocolService::SetProtocolHandlerDefaults(nsIHandlerInfo *aHandlerInfo, bool aOSHandlerExists)
157 : {
158 : return NS_ERROR_NOT_IMPLEMENTED;
159 : }
160 :
161 : /* [deprecated] void loadUrl (in nsIURI aURL); */
162 : NS_IMETHODIMP nsExternalProtocolService::LoadUrl(nsIURI *aURL)
163 : {
164 : return NS_ERROR_NOT_IMPLEMENTED;
165 : }
166 :
167 : /* void loadURI (in nsIURI aURI, [optional] in nsIInterfaceRequestor aWindowContext); */
168 : NS_IMETHODIMP nsExternalProtocolService::LoadURI(nsIURI *aURI, nsIInterfaceRequestor *aWindowContext)
169 : {
170 : return NS_ERROR_NOT_IMPLEMENTED;
171 : }
172 :
173 : /* AString getApplicationDescription (in AUTF8String aScheme); */
174 : NS_IMETHODIMP nsExternalProtocolService::GetApplicationDescription(const nsACString & aScheme, nsAString & _retval NS_OUTPARAM)
175 : {
176 : return NS_ERROR_NOT_IMPLEMENTED;
177 : }
178 :
179 : /* End of implementation class template. */
180 : #endif
181 :
182 :
183 : #endif /* __gen_nsIExternalProtocolService_h__ */
|