Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIEditorUtils.idl
3 : */
4 :
5 : #ifndef __gen_nsIEditorUtils_h__
6 : #define __gen_nsIEditorUtils_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : #ifndef __gen_domstubs_h__
14 : #include "domstubs.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 : class nsIDOMBlob; /* forward declaration */
22 :
23 : class mozIDOMWindowProxy; /* forward declaration */
24 :
25 :
26 : /* starting interface: nsIEditorBlobListener */
27 : #define NS_IEDITORBLOBLISTENER_IID_STR "eb8b8ad9-5d8f-43bd-8ce5-5b943c180d56"
28 :
29 : #define NS_IEDITORBLOBLISTENER_IID \
30 : {0xeb8b8ad9, 0x5d8f, 0x43bd, \
31 : { 0x8c, 0xe5, 0x5b, 0x94, 0x3c, 0x18, 0x0d, 0x56 }}
32 :
33 0 : class NS_NO_VTABLE nsIEditorBlobListener : public nsISupports {
34 : public:
35 :
36 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IEDITORBLOBLISTENER_IID)
37 :
38 : /* void onResult (in ACString aResult); */
39 : NS_IMETHOD OnResult(const nsACString & aResult) = 0;
40 :
41 : /* void onError (in AString aErrorName); */
42 : NS_IMETHOD OnError(const nsAString & aErrorName) = 0;
43 :
44 : };
45 :
46 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIEditorBlobListener, NS_IEDITORBLOBLISTENER_IID)
47 :
48 : /* Use this macro when declaring classes that implement this interface. */
49 : #define NS_DECL_NSIEDITORBLOBLISTENER \
50 : NS_IMETHOD OnResult(const nsACString & aResult) override; \
51 : NS_IMETHOD OnError(const nsAString & aErrorName) override;
52 :
53 : /* Use this macro when declaring the members of this interface when the
54 : class doesn't implement the interface. This is useful for forwarding. */
55 : #define NS_DECL_NON_VIRTUAL_NSIEDITORBLOBLISTENER \
56 : nsresult OnResult(const nsACString & aResult); \
57 : nsresult OnError(const nsAString & aErrorName);
58 :
59 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
60 : #define NS_FORWARD_NSIEDITORBLOBLISTENER(_to) \
61 : NS_IMETHOD OnResult(const nsACString & aResult) override { return _to OnResult(aResult); } \
62 : NS_IMETHOD OnError(const nsAString & aErrorName) override { return _to OnError(aErrorName); }
63 :
64 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
65 : #define NS_FORWARD_SAFE_NSIEDITORBLOBLISTENER(_to) \
66 : NS_IMETHOD OnResult(const nsACString & aResult) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnResult(aResult); } \
67 : NS_IMETHOD OnError(const nsAString & aErrorName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnError(aErrorName); }
68 :
69 : #if 0
70 : /* Use the code below as a template for the implementation class for this interface. */
71 :
72 : /* Header file */
73 : class nsEditorBlobListener : public nsIEditorBlobListener
74 : {
75 : public:
76 : NS_DECL_ISUPPORTS
77 : NS_DECL_NSIEDITORBLOBLISTENER
78 :
79 : nsEditorBlobListener();
80 :
81 : private:
82 : ~nsEditorBlobListener();
83 :
84 : protected:
85 : /* additional members */
86 : };
87 :
88 : /* Implementation file */
89 : NS_IMPL_ISUPPORTS(nsEditorBlobListener, nsIEditorBlobListener)
90 :
91 : nsEditorBlobListener::nsEditorBlobListener()
92 : {
93 : /* member initializers and constructor code */
94 : }
95 :
96 : nsEditorBlobListener::~nsEditorBlobListener()
97 : {
98 : /* destructor code */
99 : }
100 :
101 : /* void onResult (in ACString aResult); */
102 : NS_IMETHODIMP nsEditorBlobListener::OnResult(const nsACString & aResult)
103 : {
104 : return NS_ERROR_NOT_IMPLEMENTED;
105 : }
106 :
107 : /* void onError (in AString aErrorName); */
108 : NS_IMETHODIMP nsEditorBlobListener::OnError(const nsAString & aErrorName)
109 : {
110 : return NS_ERROR_NOT_IMPLEMENTED;
111 : }
112 :
113 : /* End of implementation class template. */
114 : #endif
115 :
116 :
117 : /* starting interface: nsIEditorUtils */
118 : #define NS_IEDITORUTILS_IID_STR "4bf94928-575e-4bd1-8321-a2c4b3d0119e"
119 :
120 : #define NS_IEDITORUTILS_IID \
121 : {0x4bf94928, 0x575e, 0x4bd1, \
122 : { 0x83, 0x21, 0xa2, 0xc4, 0xb3, 0xd0, 0x11, 0x9e }}
123 :
124 : class NS_NO_VTABLE nsIEditorUtils : public nsISupports {
125 : public:
126 :
127 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IEDITORUTILS_IID)
128 :
129 : /* void slurpBlob (in nsIDOMBlob aBlob, in mozIDOMWindowProxy aScope, in nsIEditorBlobListener aListener); */
130 : NS_IMETHOD SlurpBlob(nsIDOMBlob *aBlob, mozIDOMWindowProxy *aScope, nsIEditorBlobListener *aListener) = 0;
131 :
132 : };
133 :
134 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIEditorUtils, NS_IEDITORUTILS_IID)
135 :
136 : /* Use this macro when declaring classes that implement this interface. */
137 : #define NS_DECL_NSIEDITORUTILS \
138 : NS_IMETHOD SlurpBlob(nsIDOMBlob *aBlob, mozIDOMWindowProxy *aScope, nsIEditorBlobListener *aListener) override;
139 :
140 : /* Use this macro when declaring the members of this interface when the
141 : class doesn't implement the interface. This is useful for forwarding. */
142 : #define NS_DECL_NON_VIRTUAL_NSIEDITORUTILS \
143 : nsresult SlurpBlob(nsIDOMBlob *aBlob, mozIDOMWindowProxy *aScope, nsIEditorBlobListener *aListener);
144 :
145 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
146 : #define NS_FORWARD_NSIEDITORUTILS(_to) \
147 : NS_IMETHOD SlurpBlob(nsIDOMBlob *aBlob, mozIDOMWindowProxy *aScope, nsIEditorBlobListener *aListener) override { return _to SlurpBlob(aBlob, aScope, aListener); }
148 :
149 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
150 : #define NS_FORWARD_SAFE_NSIEDITORUTILS(_to) \
151 : NS_IMETHOD SlurpBlob(nsIDOMBlob *aBlob, mozIDOMWindowProxy *aScope, nsIEditorBlobListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SlurpBlob(aBlob, aScope, aListener); }
152 :
153 : #if 0
154 : /* Use the code below as a template for the implementation class for this interface. */
155 :
156 : /* Header file */
157 : class nsEditorUtils : public nsIEditorUtils
158 : {
159 : public:
160 : NS_DECL_ISUPPORTS
161 : NS_DECL_NSIEDITORUTILS
162 :
163 : nsEditorUtils();
164 :
165 : private:
166 : ~nsEditorUtils();
167 :
168 : protected:
169 : /* additional members */
170 : };
171 :
172 : /* Implementation file */
173 : NS_IMPL_ISUPPORTS(nsEditorUtils, nsIEditorUtils)
174 :
175 : nsEditorUtils::nsEditorUtils()
176 : {
177 : /* member initializers and constructor code */
178 : }
179 :
180 : nsEditorUtils::~nsEditorUtils()
181 : {
182 : /* destructor code */
183 : }
184 :
185 : /* void slurpBlob (in nsIDOMBlob aBlob, in mozIDOMWindowProxy aScope, in nsIEditorBlobListener aListener); */
186 : NS_IMETHODIMP nsEditorUtils::SlurpBlob(nsIDOMBlob *aBlob, mozIDOMWindowProxy *aScope, nsIEditorBlobListener *aListener)
187 : {
188 : return NS_ERROR_NOT_IMPLEMENTED;
189 : }
190 :
191 : /* End of implementation class template. */
192 : #endif
193 :
194 :
195 : #endif /* __gen_nsIEditorUtils_h__ */
|