Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsISubstitutingProtocolHandler.idl
3 : */
4 :
5 : #ifndef __gen_nsISubstitutingProtocolHandler_h__
6 : #define __gen_nsISubstitutingProtocolHandler_h__
7 :
8 :
9 : #ifndef __gen_nsIProtocolHandler_h__
10 : #include "nsIProtocolHandler.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 nsISubstitutionObserver; /* forward declaration */
18 :
19 :
20 : /* starting interface: nsISubstitutingProtocolHandler */
21 : #define NS_ISUBSTITUTINGPROTOCOLHANDLER_IID_STR "154c64fd-a69e-4105-89f8-bd7dfe621372"
22 :
23 : #define NS_ISUBSTITUTINGPROTOCOLHANDLER_IID \
24 : {0x154c64fd, 0xa69e, 0x4105, \
25 : { 0x89, 0xf8, 0xbd, 0x7d, 0xfe, 0x62, 0x13, 0x72 }}
26 :
27 3 : class NS_NO_VTABLE nsISubstitutingProtocolHandler : public nsIProtocolHandler {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISUBSTITUTINGPROTOCOLHANDLER_IID)
31 :
32 : /* [must_use] void setSubstitution (in ACString root, in nsIURI baseURI); */
33 : MOZ_MUST_USE NS_IMETHOD SetSubstitution(const nsACString & root, nsIURI *baseURI) = 0;
34 :
35 : /* [must_use] nsIURI getSubstitution (in ACString root); */
36 : MOZ_MUST_USE NS_IMETHOD GetSubstitution(const nsACString & root, nsIURI * *_retval) = 0;
37 :
38 : /* [must_use] boolean hasSubstitution (in ACString root); */
39 : MOZ_MUST_USE NS_IMETHOD HasSubstitution(const nsACString & root, bool *_retval) = 0;
40 :
41 : /* [must_use] AUTF8String resolveURI (in nsIURI resURI); */
42 : MOZ_MUST_USE NS_IMETHOD ResolveURI(nsIURI *resURI, nsACString & _retval) = 0;
43 :
44 : /* [must_use] void addObserver (in nsISubstitutionObserver observer); */
45 : MOZ_MUST_USE NS_IMETHOD AddObserver(nsISubstitutionObserver *observer) = 0;
46 :
47 : /* [must_use] void removeObserver (in nsISubstitutionObserver observer); */
48 : MOZ_MUST_USE NS_IMETHOD RemoveObserver(nsISubstitutionObserver *observer) = 0;
49 :
50 : };
51 :
52 : NS_DEFINE_STATIC_IID_ACCESSOR(nsISubstitutingProtocolHandler, NS_ISUBSTITUTINGPROTOCOLHANDLER_IID)
53 :
54 : /* Use this macro when declaring classes that implement this interface. */
55 : #define NS_DECL_NSISUBSTITUTINGPROTOCOLHANDLER \
56 : MOZ_MUST_USE NS_IMETHOD SetSubstitution(const nsACString & root, nsIURI *baseURI) override; \
57 : MOZ_MUST_USE NS_IMETHOD GetSubstitution(const nsACString & root, nsIURI * *_retval) override; \
58 : MOZ_MUST_USE NS_IMETHOD HasSubstitution(const nsACString & root, bool *_retval) override; \
59 : MOZ_MUST_USE NS_IMETHOD ResolveURI(nsIURI *resURI, nsACString & _retval) override; \
60 : MOZ_MUST_USE NS_IMETHOD AddObserver(nsISubstitutionObserver *observer) override; \
61 : MOZ_MUST_USE NS_IMETHOD RemoveObserver(nsISubstitutionObserver *observer) override;
62 :
63 : /* Use this macro when declaring the members of this interface when the
64 : class doesn't implement the interface. This is useful for forwarding. */
65 : #define NS_DECL_NON_VIRTUAL_NSISUBSTITUTINGPROTOCOLHANDLER \
66 : MOZ_MUST_USE nsresult SetSubstitution(const nsACString & root, nsIURI *baseURI); \
67 : MOZ_MUST_USE nsresult GetSubstitution(const nsACString & root, nsIURI * *_retval); \
68 : MOZ_MUST_USE nsresult HasSubstitution(const nsACString & root, bool *_retval); \
69 : MOZ_MUST_USE nsresult ResolveURI(nsIURI *resURI, nsACString & _retval); \
70 : MOZ_MUST_USE nsresult AddObserver(nsISubstitutionObserver *observer); \
71 : MOZ_MUST_USE nsresult RemoveObserver(nsISubstitutionObserver *observer);
72 :
73 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
74 : #define NS_FORWARD_NSISUBSTITUTINGPROTOCOLHANDLER(_to) \
75 : MOZ_MUST_USE NS_IMETHOD SetSubstitution(const nsACString & root, nsIURI *baseURI) override { return _to SetSubstitution(root, baseURI); } \
76 : MOZ_MUST_USE NS_IMETHOD GetSubstitution(const nsACString & root, nsIURI * *_retval) override { return _to GetSubstitution(root, _retval); } \
77 : MOZ_MUST_USE NS_IMETHOD HasSubstitution(const nsACString & root, bool *_retval) override { return _to HasSubstitution(root, _retval); } \
78 : MOZ_MUST_USE NS_IMETHOD ResolveURI(nsIURI *resURI, nsACString & _retval) override { return _to ResolveURI(resURI, _retval); } \
79 : MOZ_MUST_USE NS_IMETHOD AddObserver(nsISubstitutionObserver *observer) override { return _to AddObserver(observer); } \
80 : MOZ_MUST_USE NS_IMETHOD RemoveObserver(nsISubstitutionObserver *observer) override { return _to RemoveObserver(observer); }
81 :
82 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
83 : #define NS_FORWARD_SAFE_NSISUBSTITUTINGPROTOCOLHANDLER(_to) \
84 : MOZ_MUST_USE NS_IMETHOD SetSubstitution(const nsACString & root, nsIURI *baseURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSubstitution(root, baseURI); } \
85 : MOZ_MUST_USE NS_IMETHOD GetSubstitution(const nsACString & root, nsIURI * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSubstitution(root, _retval); } \
86 : MOZ_MUST_USE NS_IMETHOD HasSubstitution(const nsACString & root, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HasSubstitution(root, _retval); } \
87 : MOZ_MUST_USE NS_IMETHOD ResolveURI(nsIURI *resURI, nsACString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ResolveURI(resURI, _retval); } \
88 : MOZ_MUST_USE NS_IMETHOD AddObserver(nsISubstitutionObserver *observer) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddObserver(observer); } \
89 : MOZ_MUST_USE NS_IMETHOD RemoveObserver(nsISubstitutionObserver *observer) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveObserver(observer); }
90 :
91 : #if 0
92 : /* Use the code below as a template for the implementation class for this interface. */
93 :
94 : /* Header file */
95 : class nsSubstitutingProtocolHandler : public nsISubstitutingProtocolHandler
96 : {
97 : public:
98 : NS_DECL_ISUPPORTS
99 : NS_DECL_NSISUBSTITUTINGPROTOCOLHANDLER
100 :
101 : nsSubstitutingProtocolHandler();
102 :
103 : private:
104 : ~nsSubstitutingProtocolHandler();
105 :
106 : protected:
107 : /* additional members */
108 : };
109 :
110 : /* Implementation file */
111 : NS_IMPL_ISUPPORTS(nsSubstitutingProtocolHandler, nsISubstitutingProtocolHandler)
112 :
113 : nsSubstitutingProtocolHandler::nsSubstitutingProtocolHandler()
114 : {
115 : /* member initializers and constructor code */
116 : }
117 :
118 : nsSubstitutingProtocolHandler::~nsSubstitutingProtocolHandler()
119 : {
120 : /* destructor code */
121 : }
122 :
123 : /* [must_use] void setSubstitution (in ACString root, in nsIURI baseURI); */
124 : MOZ_MUST_USE NS_IMETHODIMP nsSubstitutingProtocolHandler::SetSubstitution(const nsACString & root, nsIURI *baseURI)
125 : {
126 : return NS_ERROR_NOT_IMPLEMENTED;
127 : }
128 :
129 : /* [must_use] nsIURI getSubstitution (in ACString root); */
130 : MOZ_MUST_USE NS_IMETHODIMP nsSubstitutingProtocolHandler::GetSubstitution(const nsACString & root, nsIURI * *_retval)
131 : {
132 : return NS_ERROR_NOT_IMPLEMENTED;
133 : }
134 :
135 : /* [must_use] boolean hasSubstitution (in ACString root); */
136 : MOZ_MUST_USE NS_IMETHODIMP nsSubstitutingProtocolHandler::HasSubstitution(const nsACString & root, bool *_retval)
137 : {
138 : return NS_ERROR_NOT_IMPLEMENTED;
139 : }
140 :
141 : /* [must_use] AUTF8String resolveURI (in nsIURI resURI); */
142 : MOZ_MUST_USE NS_IMETHODIMP nsSubstitutingProtocolHandler::ResolveURI(nsIURI *resURI, nsACString & _retval)
143 : {
144 : return NS_ERROR_NOT_IMPLEMENTED;
145 : }
146 :
147 : /* [must_use] void addObserver (in nsISubstitutionObserver observer); */
148 : MOZ_MUST_USE NS_IMETHODIMP nsSubstitutingProtocolHandler::AddObserver(nsISubstitutionObserver *observer)
149 : {
150 : return NS_ERROR_NOT_IMPLEMENTED;
151 : }
152 :
153 : /* [must_use] void removeObserver (in nsISubstitutionObserver observer); */
154 : MOZ_MUST_USE NS_IMETHODIMP nsSubstitutingProtocolHandler::RemoveObserver(nsISubstitutionObserver *observer)
155 : {
156 : return NS_ERROR_NOT_IMPLEMENTED;
157 : }
158 :
159 : /* End of implementation class template. */
160 : #endif
161 :
162 :
163 : #endif /* __gen_nsISubstitutingProtocolHandler_h__ */
|