Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsITextToSubURI.idl
3 : */
4 :
5 : #ifndef __gen_nsITextToSubURI_h__
6 : #define __gen_nsITextToSubURI_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 : // {8B042E22-6F87-11d3-B3C8-00805F8A6670}
18 : #define NS_TEXTTOSUBURI_CID { 0x8b042e22, 0x6f87, 0x11d3, { 0xb3, 0xc8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70 } }
19 : #define NS_ITEXTTOSUBURI_CONTRACTID "@mozilla.org/intl/texttosuburi;1"
20 :
21 : /* starting interface: nsITextToSubURI */
22 : #define NS_ITEXTTOSUBURI_IID_STR "8b042e24-6f87-11d3-b3c8-00805f8a6670"
23 :
24 : #define NS_ITEXTTOSUBURI_IID \
25 : {0x8b042e24, 0x6f87, 0x11d3, \
26 : { 0xb3, 0xc8, 0x00, 0x80, 0x5f, 0x8a, 0x66, 0x70 }}
27 :
28 1 : class NS_NO_VTABLE nsITextToSubURI : public nsISupports {
29 : public:
30 :
31 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITEXTTOSUBURI_IID)
32 :
33 : /* ACString ConvertAndEscape (in ACString charset, in AString text); */
34 : NS_IMETHOD ConvertAndEscape(const nsACString & charset, const nsAString & text, nsACString & _retval) = 0;
35 :
36 : /* AString UnEscapeAndConvert (in ACString charset, in ACString text); */
37 : NS_IMETHOD UnEscapeAndConvert(const nsACString & charset, const nsACString & text, nsAString & _retval) = 0;
38 :
39 : /* AString unEscapeURIForUI (in ACString aCharset, in AUTF8String aURIFragment); */
40 : NS_IMETHOD UnEscapeURIForUI(const nsACString & aCharset, const nsACString & aURIFragment, nsAString & _retval) = 0;
41 :
42 : /* AString unEscapeNonAsciiURI (in ACString aCharset, in AUTF8String aURIFragment); */
43 : NS_IMETHOD UnEscapeNonAsciiURI(const nsACString & aCharset, const nsACString & aURIFragment, nsAString & _retval) = 0;
44 :
45 : };
46 :
47 : NS_DEFINE_STATIC_IID_ACCESSOR(nsITextToSubURI, NS_ITEXTTOSUBURI_IID)
48 :
49 : /* Use this macro when declaring classes that implement this interface. */
50 : #define NS_DECL_NSITEXTTOSUBURI \
51 : NS_IMETHOD ConvertAndEscape(const nsACString & charset, const nsAString & text, nsACString & _retval) override; \
52 : NS_IMETHOD UnEscapeAndConvert(const nsACString & charset, const nsACString & text, nsAString & _retval) override; \
53 : NS_IMETHOD UnEscapeURIForUI(const nsACString & aCharset, const nsACString & aURIFragment, nsAString & _retval) override; \
54 : NS_IMETHOD UnEscapeNonAsciiURI(const nsACString & aCharset, const nsACString & aURIFragment, nsAString & _retval) override;
55 :
56 : /* Use this macro when declaring the members of this interface when the
57 : class doesn't implement the interface. This is useful for forwarding. */
58 : #define NS_DECL_NON_VIRTUAL_NSITEXTTOSUBURI \
59 : nsresult ConvertAndEscape(const nsACString & charset, const nsAString & text, nsACString & _retval); \
60 : nsresult UnEscapeAndConvert(const nsACString & charset, const nsACString & text, nsAString & _retval); \
61 : nsresult UnEscapeURIForUI(const nsACString & aCharset, const nsACString & aURIFragment, nsAString & _retval); \
62 : nsresult UnEscapeNonAsciiURI(const nsACString & aCharset, const nsACString & aURIFragment, nsAString & _retval);
63 :
64 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
65 : #define NS_FORWARD_NSITEXTTOSUBURI(_to) \
66 : NS_IMETHOD ConvertAndEscape(const nsACString & charset, const nsAString & text, nsACString & _retval) override { return _to ConvertAndEscape(charset, text, _retval); } \
67 : NS_IMETHOD UnEscapeAndConvert(const nsACString & charset, const nsACString & text, nsAString & _retval) override { return _to UnEscapeAndConvert(charset, text, _retval); } \
68 : NS_IMETHOD UnEscapeURIForUI(const nsACString & aCharset, const nsACString & aURIFragment, nsAString & _retval) override { return _to UnEscapeURIForUI(aCharset, aURIFragment, _retval); } \
69 : NS_IMETHOD UnEscapeNonAsciiURI(const nsACString & aCharset, const nsACString & aURIFragment, nsAString & _retval) override { return _to UnEscapeNonAsciiURI(aCharset, aURIFragment, _retval); }
70 :
71 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
72 : #define NS_FORWARD_SAFE_NSITEXTTOSUBURI(_to) \
73 : NS_IMETHOD ConvertAndEscape(const nsACString & charset, const nsAString & text, nsACString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ConvertAndEscape(charset, text, _retval); } \
74 : NS_IMETHOD UnEscapeAndConvert(const nsACString & charset, const nsACString & text, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UnEscapeAndConvert(charset, text, _retval); } \
75 : NS_IMETHOD UnEscapeURIForUI(const nsACString & aCharset, const nsACString & aURIFragment, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UnEscapeURIForUI(aCharset, aURIFragment, _retval); } \
76 : NS_IMETHOD UnEscapeNonAsciiURI(const nsACString & aCharset, const nsACString & aURIFragment, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UnEscapeNonAsciiURI(aCharset, aURIFragment, _retval); }
77 :
78 : #if 0
79 : /* Use the code below as a template for the implementation class for this interface. */
80 :
81 : /* Header file */
82 : class nsTextToSubURI : public nsITextToSubURI
83 : {
84 : public:
85 : NS_DECL_ISUPPORTS
86 : NS_DECL_NSITEXTTOSUBURI
87 :
88 : nsTextToSubURI();
89 :
90 : private:
91 : ~nsTextToSubURI();
92 :
93 : protected:
94 : /* additional members */
95 : };
96 :
97 : /* Implementation file */
98 : NS_IMPL_ISUPPORTS(nsTextToSubURI, nsITextToSubURI)
99 :
100 : nsTextToSubURI::nsTextToSubURI()
101 : {
102 : /* member initializers and constructor code */
103 : }
104 :
105 : nsTextToSubURI::~nsTextToSubURI()
106 : {
107 : /* destructor code */
108 : }
109 :
110 : /* ACString ConvertAndEscape (in ACString charset, in AString text); */
111 : NS_IMETHODIMP nsTextToSubURI::ConvertAndEscape(const nsACString & charset, const nsAString & text, nsACString & _retval)
112 : {
113 : return NS_ERROR_NOT_IMPLEMENTED;
114 : }
115 :
116 : /* AString UnEscapeAndConvert (in ACString charset, in ACString text); */
117 : NS_IMETHODIMP nsTextToSubURI::UnEscapeAndConvert(const nsACString & charset, const nsACString & text, nsAString & _retval)
118 : {
119 : return NS_ERROR_NOT_IMPLEMENTED;
120 : }
121 :
122 : /* AString unEscapeURIForUI (in ACString aCharset, in AUTF8String aURIFragment); */
123 : NS_IMETHODIMP nsTextToSubURI::UnEscapeURIForUI(const nsACString & aCharset, const nsACString & aURIFragment, nsAString & _retval)
124 : {
125 : return NS_ERROR_NOT_IMPLEMENTED;
126 : }
127 :
128 : /* AString unEscapeNonAsciiURI (in ACString aCharset, in AUTF8String aURIFragment); */
129 : NS_IMETHODIMP nsTextToSubURI::UnEscapeNonAsciiURI(const nsACString & aCharset, const nsACString & aURIFragment, nsAString & _retval)
130 : {
131 : return NS_ERROR_NOT_IMPLEMENTED;
132 : }
133 :
134 : /* End of implementation class template. */
135 : #endif
136 :
137 :
138 : #endif /* __gen_nsITextToSubURI_h__ */
|