Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIIconURI.idl
3 : */
4 :
5 : #ifndef __gen_nsIIconURI_h__
6 : #define __gen_nsIIconURI_h__
7 :
8 :
9 : #ifndef __gen_nsIURL_h__
10 : #include "nsIURL.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 :
18 : /* starting interface: nsIMozIconURI */
19 : #define NS_IMOZICONURI_IID_STR "f8fe5ef2-5f2b-43f3-857d-5b64d192c427"
20 :
21 : #define NS_IMOZICONURI_IID \
22 : {0xf8fe5ef2, 0x5f2b, 0x43f3, \
23 : { 0x85, 0x7d, 0x5b, 0x64, 0xd1, 0x92, 0xc4, 0x27 }}
24 :
25 3 : class NS_NO_VTABLE nsIMozIconURI : public nsIURI {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMOZICONURI_IID)
29 :
30 : /* attribute nsIURL iconURL; */
31 : NS_IMETHOD GetIconURL(nsIURL * *aIconURL) = 0;
32 : NS_IMETHOD SetIconURL(nsIURL *aIconURL) = 0;
33 :
34 : /* attribute unsigned long imageSize; */
35 : NS_IMETHOD GetImageSize(uint32_t *aImageSize) = 0;
36 : NS_IMETHOD SetImageSize(uint32_t aImageSize) = 0;
37 :
38 : /* readonly attribute ACString stockIcon; */
39 : NS_IMETHOD GetStockIcon(nsACString & aStockIcon) = 0;
40 :
41 : /* readonly attribute ACString iconSize; */
42 : NS_IMETHOD GetIconSize(nsACString & aIconSize) = 0;
43 :
44 : /* readonly attribute ACString iconState; */
45 : NS_IMETHOD GetIconState(nsACString & aIconState) = 0;
46 :
47 : /* attribute ACString contentType; */
48 : NS_IMETHOD GetContentType(nsACString & aContentType) = 0;
49 : NS_IMETHOD SetContentType(const nsACString & aContentType) = 0;
50 :
51 : /* readonly attribute ACString fileExtension; */
52 : NS_IMETHOD GetFileExtension(nsACString & aFileExtension) = 0;
53 :
54 : };
55 :
56 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIMozIconURI, NS_IMOZICONURI_IID)
57 :
58 : /* Use this macro when declaring classes that implement this interface. */
59 : #define NS_DECL_NSIMOZICONURI \
60 : NS_IMETHOD GetIconURL(nsIURL * *aIconURL) override; \
61 : NS_IMETHOD SetIconURL(nsIURL *aIconURL) override; \
62 : NS_IMETHOD GetImageSize(uint32_t *aImageSize) override; \
63 : NS_IMETHOD SetImageSize(uint32_t aImageSize) override; \
64 : NS_IMETHOD GetStockIcon(nsACString & aStockIcon) override; \
65 : NS_IMETHOD GetIconSize(nsACString & aIconSize) override; \
66 : NS_IMETHOD GetIconState(nsACString & aIconState) override; \
67 : NS_IMETHOD GetContentType(nsACString & aContentType) override; \
68 : NS_IMETHOD SetContentType(const nsACString & aContentType) override; \
69 : NS_IMETHOD GetFileExtension(nsACString & aFileExtension) override;
70 :
71 : /* Use this macro when declaring the members of this interface when the
72 : class doesn't implement the interface. This is useful for forwarding. */
73 : #define NS_DECL_NON_VIRTUAL_NSIMOZICONURI \
74 : nsresult GetIconURL(nsIURL * *aIconURL); \
75 : nsresult SetIconURL(nsIURL *aIconURL); \
76 : nsresult GetImageSize(uint32_t *aImageSize); \
77 : nsresult SetImageSize(uint32_t aImageSize); \
78 : nsresult GetStockIcon(nsACString & aStockIcon); \
79 : nsresult GetIconSize(nsACString & aIconSize); \
80 : nsresult GetIconState(nsACString & aIconState); \
81 : nsresult GetContentType(nsACString & aContentType); \
82 : nsresult SetContentType(const nsACString & aContentType); \
83 : nsresult GetFileExtension(nsACString & aFileExtension);
84 :
85 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
86 : #define NS_FORWARD_NSIMOZICONURI(_to) \
87 : NS_IMETHOD GetIconURL(nsIURL * *aIconURL) override { return _to GetIconURL(aIconURL); } \
88 : NS_IMETHOD SetIconURL(nsIURL *aIconURL) override { return _to SetIconURL(aIconURL); } \
89 : NS_IMETHOD GetImageSize(uint32_t *aImageSize) override { return _to GetImageSize(aImageSize); } \
90 : NS_IMETHOD SetImageSize(uint32_t aImageSize) override { return _to SetImageSize(aImageSize); } \
91 : NS_IMETHOD GetStockIcon(nsACString & aStockIcon) override { return _to GetStockIcon(aStockIcon); } \
92 : NS_IMETHOD GetIconSize(nsACString & aIconSize) override { return _to GetIconSize(aIconSize); } \
93 : NS_IMETHOD GetIconState(nsACString & aIconState) override { return _to GetIconState(aIconState); } \
94 : NS_IMETHOD GetContentType(nsACString & aContentType) override { return _to GetContentType(aContentType); } \
95 : NS_IMETHOD SetContentType(const nsACString & aContentType) override { return _to SetContentType(aContentType); } \
96 : NS_IMETHOD GetFileExtension(nsACString & aFileExtension) override { return _to GetFileExtension(aFileExtension); }
97 :
98 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
99 : #define NS_FORWARD_SAFE_NSIMOZICONURI(_to) \
100 : NS_IMETHOD GetIconURL(nsIURL * *aIconURL) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIconURL(aIconURL); } \
101 : NS_IMETHOD SetIconURL(nsIURL *aIconURL) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIconURL(aIconURL); } \
102 : NS_IMETHOD GetImageSize(uint32_t *aImageSize) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetImageSize(aImageSize); } \
103 : NS_IMETHOD SetImageSize(uint32_t aImageSize) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetImageSize(aImageSize); } \
104 : NS_IMETHOD GetStockIcon(nsACString & aStockIcon) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStockIcon(aStockIcon); } \
105 : NS_IMETHOD GetIconSize(nsACString & aIconSize) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIconSize(aIconSize); } \
106 : NS_IMETHOD GetIconState(nsACString & aIconState) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIconState(aIconState); } \
107 : NS_IMETHOD GetContentType(nsACString & aContentType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContentType(aContentType); } \
108 : NS_IMETHOD SetContentType(const nsACString & aContentType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetContentType(aContentType); } \
109 : NS_IMETHOD GetFileExtension(nsACString & aFileExtension) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFileExtension(aFileExtension); }
110 :
111 : #if 0
112 : /* Use the code below as a template for the implementation class for this interface. */
113 :
114 : /* Header file */
115 : class nsMozIconURI : public nsIMozIconURI
116 : {
117 : public:
118 : NS_DECL_ISUPPORTS
119 : NS_DECL_NSIMOZICONURI
120 :
121 : nsMozIconURI();
122 :
123 : private:
124 : ~nsMozIconURI();
125 :
126 : protected:
127 : /* additional members */
128 : };
129 :
130 : /* Implementation file */
131 : NS_IMPL_ISUPPORTS(nsMozIconURI, nsIMozIconURI)
132 :
133 : nsMozIconURI::nsMozIconURI()
134 : {
135 : /* member initializers and constructor code */
136 : }
137 :
138 : nsMozIconURI::~nsMozIconURI()
139 : {
140 : /* destructor code */
141 : }
142 :
143 : /* attribute nsIURL iconURL; */
144 : NS_IMETHODIMP nsMozIconURI::GetIconURL(nsIURL * *aIconURL)
145 : {
146 : return NS_ERROR_NOT_IMPLEMENTED;
147 : }
148 : NS_IMETHODIMP nsMozIconURI::SetIconURL(nsIURL *aIconURL)
149 : {
150 : return NS_ERROR_NOT_IMPLEMENTED;
151 : }
152 :
153 : /* attribute unsigned long imageSize; */
154 : NS_IMETHODIMP nsMozIconURI::GetImageSize(uint32_t *aImageSize)
155 : {
156 : return NS_ERROR_NOT_IMPLEMENTED;
157 : }
158 : NS_IMETHODIMP nsMozIconURI::SetImageSize(uint32_t aImageSize)
159 : {
160 : return NS_ERROR_NOT_IMPLEMENTED;
161 : }
162 :
163 : /* readonly attribute ACString stockIcon; */
164 : NS_IMETHODIMP nsMozIconURI::GetStockIcon(nsACString & aStockIcon)
165 : {
166 : return NS_ERROR_NOT_IMPLEMENTED;
167 : }
168 :
169 : /* readonly attribute ACString iconSize; */
170 : NS_IMETHODIMP nsMozIconURI::GetIconSize(nsACString & aIconSize)
171 : {
172 : return NS_ERROR_NOT_IMPLEMENTED;
173 : }
174 :
175 : /* readonly attribute ACString iconState; */
176 : NS_IMETHODIMP nsMozIconURI::GetIconState(nsACString & aIconState)
177 : {
178 : return NS_ERROR_NOT_IMPLEMENTED;
179 : }
180 :
181 : /* attribute ACString contentType; */
182 : NS_IMETHODIMP nsMozIconURI::GetContentType(nsACString & aContentType)
183 : {
184 : return NS_ERROR_NOT_IMPLEMENTED;
185 : }
186 : NS_IMETHODIMP nsMozIconURI::SetContentType(const nsACString & aContentType)
187 : {
188 : return NS_ERROR_NOT_IMPLEMENTED;
189 : }
190 :
191 : /* readonly attribute ACString fileExtension; */
192 : NS_IMETHODIMP nsMozIconURI::GetFileExtension(nsACString & aFileExtension)
193 : {
194 : return NS_ERROR_NOT_IMPLEMENTED;
195 : }
196 :
197 : /* End of implementation class template. */
198 : #endif
199 :
200 :
201 : // CID for nsMozIconURI, if implemented on this platform.
202 : #define NS_MOZICONURI_CID \
203 : { \
204 : 0x43a88e0e, \
205 : 0x2d37, \
206 : 0x11d5, \
207 : { 0x99, 0x7, 0x0, 0x10, 0x83, 0x1, 0xe, 0x9b } \
208 : }
209 :
210 : #endif /* __gen_nsIIconURI_h__ */
|