1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/intl/unicharutil/idl/nsISaveAsCharset.idl
3 : */
4 :
5 : #ifndef __gen_nsISaveAsCharset_h__
6 : #define __gen_nsISaveAsCharset_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : #ifndef __gen_nsIEntityConverter_h__
14 : #include "nsIEntityConverter.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 : #define NS_SAVEASCHARSET_CID { 0xcd233e0, 0x7a86, 0x11d3, { 0x91, 0x5c, 0x0, 0x60, 0x8, 0xa6, 0xed, 0xf6 } }
22 : #define NS_SAVEASCHARSET_CONTRACTID "@mozilla.org/intl/saveascharset;1"
23 :
24 : /* starting interface: nsISaveAsCharset */
25 : #define NS_ISAVEASCHARSET_IID_STR "33b87f70-7a9c-11d3-915c-006008a6edf6"
26 :
27 : #define NS_ISAVEASCHARSET_IID \
28 : {0x33b87f70, 0x7a9c, 0x11d3, \
29 : { 0x91, 0x5c, 0x00, 0x60, 0x08, 0xa6, 0xed, 0xf6 }}
30 :
31 2 : class NS_NO_VTABLE NS_SCRIPTABLE nsISaveAsCharset : public nsISupports {
32 : public:
33 :
34 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISAVEASCHARSET_IID)
35 :
36 : enum {
37 : mask_Fallback = 255U,
38 : mask_Entity = 768U,
39 : mask_CharsetFallback = 1024U,
40 : attr_FallbackNone = 0U,
41 : attr_FallbackQuestionMark = 1U,
42 : attr_FallbackEscapeU = 2U,
43 : attr_FallbackDecimalNCR = 3U,
44 : attr_FallbackHexNCR = 4U,
45 : attr_EntityNone = 0U,
46 : attr_EntityBeforeCharsetConv = 256U,
47 : attr_EntityAfterCharsetConv = 512U,
48 : attr_CharsetFallback = 1024U,
49 : attr_plainTextDefault = 0U,
50 : attr_htmlTextDefault = 259U
51 : };
52 :
53 : /* readonly attribute string charset; */
54 : NS_SCRIPTABLE NS_IMETHOD GetCharset(char * *aCharset) = 0;
55 :
56 : /* void Init (in string charset, in unsigned long attr, in unsigned long entityVersion); */
57 : NS_SCRIPTABLE NS_IMETHOD Init(const char * charset, PRUint32 attr, PRUint32 entityVersion) = 0;
58 :
59 : /* string Convert (in wstring inString); */
60 : NS_SCRIPTABLE NS_IMETHOD Convert(const PRUnichar * inString, char * *_retval NS_OUTPARAM) = 0;
61 :
62 : };
63 :
64 : NS_DEFINE_STATIC_IID_ACCESSOR(nsISaveAsCharset, NS_ISAVEASCHARSET_IID)
65 :
66 : /* Use this macro when declaring classes that implement this interface. */
67 : #define NS_DECL_NSISAVEASCHARSET \
68 : NS_SCRIPTABLE NS_IMETHOD GetCharset(char * *aCharset); \
69 : NS_SCRIPTABLE NS_IMETHOD Init(const char * charset, PRUint32 attr, PRUint32 entityVersion); \
70 : NS_SCRIPTABLE NS_IMETHOD Convert(const PRUnichar * inString, char * *_retval NS_OUTPARAM);
71 :
72 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
73 : #define NS_FORWARD_NSISAVEASCHARSET(_to) \
74 : NS_SCRIPTABLE NS_IMETHOD GetCharset(char * *aCharset) { return _to GetCharset(aCharset); } \
75 : NS_SCRIPTABLE NS_IMETHOD Init(const char * charset, PRUint32 attr, PRUint32 entityVersion) { return _to Init(charset, attr, entityVersion); } \
76 : NS_SCRIPTABLE NS_IMETHOD Convert(const PRUnichar * inString, char * *_retval NS_OUTPARAM) { return _to Convert(inString, _retval); }
77 :
78 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
79 : #define NS_FORWARD_SAFE_NSISAVEASCHARSET(_to) \
80 : NS_SCRIPTABLE NS_IMETHOD GetCharset(char * *aCharset) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCharset(aCharset); } \
81 : NS_SCRIPTABLE NS_IMETHOD Init(const char * charset, PRUint32 attr, PRUint32 entityVersion) { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(charset, attr, entityVersion); } \
82 : NS_SCRIPTABLE NS_IMETHOD Convert(const PRUnichar * inString, char * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Convert(inString, _retval); }
83 :
84 : #if 0
85 : /* Use the code below as a template for the implementation class for this interface. */
86 :
87 : /* Header file */
88 : class nsSaveAsCharset : public nsISaveAsCharset
89 : {
90 : public:
91 : NS_DECL_ISUPPORTS
92 : NS_DECL_NSISAVEASCHARSET
93 :
94 : nsSaveAsCharset();
95 :
96 : private:
97 : ~nsSaveAsCharset();
98 :
99 : protected:
100 : /* additional members */
101 : };
102 :
103 : /* Implementation file */
104 : NS_IMPL_ISUPPORTS1(nsSaveAsCharset, nsISaveAsCharset)
105 :
106 : nsSaveAsCharset::nsSaveAsCharset()
107 : {
108 : /* member initializers and constructor code */
109 : }
110 :
111 : nsSaveAsCharset::~nsSaveAsCharset()
112 : {
113 : /* destructor code */
114 : }
115 :
116 : /* readonly attribute string charset; */
117 : NS_IMETHODIMP nsSaveAsCharset::GetCharset(char * *aCharset)
118 : {
119 : return NS_ERROR_NOT_IMPLEMENTED;
120 : }
121 :
122 : /* void Init (in string charset, in unsigned long attr, in unsigned long entityVersion); */
123 : NS_IMETHODIMP nsSaveAsCharset::Init(const char * charset, PRUint32 attr, PRUint32 entityVersion)
124 : {
125 : return NS_ERROR_NOT_IMPLEMENTED;
126 : }
127 :
128 : /* string Convert (in wstring inString); */
129 : NS_IMETHODIMP nsSaveAsCharset::Convert(const PRUnichar * inString, char * *_retval NS_OUTPARAM)
130 : {
131 : return NS_ERROR_NOT_IMPLEMENTED;
132 : }
133 :
134 : /* End of implementation class template. */
135 : #endif
136 :
137 :
138 : #endif /* __gen_nsISaveAsCharset_h__ */
|