1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/xpcom/io/nsIConverterInputStream.idl
3 : */
4 :
5 : #ifndef __gen_nsIConverterInputStream_h__
6 : #define __gen_nsIConverterInputStream_h__
7 :
8 :
9 : #ifndef __gen_nsIUnicharInputStream_h__
10 : #include "nsIUnicharInputStream.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 nsIInputStream; /* forward declaration */
18 :
19 :
20 : /* starting interface: nsIConverterInputStream */
21 : #define NS_ICONVERTERINPUTSTREAM_IID_STR "fc66ffb6-5404-4908-a4a3-27f92fa0579d"
22 :
23 : #define NS_ICONVERTERINPUTSTREAM_IID \
24 : {0xfc66ffb6, 0x5404, 0x4908, \
25 : { 0xa4, 0xa3, 0x27, 0xf9, 0x2f, 0xa0, 0x57, 0x9d }}
26 :
27 453 : class NS_NO_VTABLE NS_SCRIPTABLE nsIConverterInputStream : public nsIUnicharInputStream {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICONVERTERINPUTSTREAM_IID)
31 :
32 : enum {
33 : DEFAULT_REPLACEMENT_CHARACTER = 65533U
34 : };
35 :
36 : /* void init (in nsIInputStream aStream, in string aCharset, in long aBufferSize, in PRUnichar aReplacementChar); */
37 : NS_SCRIPTABLE NS_IMETHOD Init(nsIInputStream *aStream, const char * aCharset, PRInt32 aBufferSize, PRUnichar aReplacementChar) = 0;
38 :
39 : };
40 :
41 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIConverterInputStream, NS_ICONVERTERINPUTSTREAM_IID)
42 :
43 : /* Use this macro when declaring classes that implement this interface. */
44 : #define NS_DECL_NSICONVERTERINPUTSTREAM \
45 : NS_SCRIPTABLE NS_IMETHOD Init(nsIInputStream *aStream, const char * aCharset, PRInt32 aBufferSize, PRUnichar aReplacementChar);
46 :
47 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
48 : #define NS_FORWARD_NSICONVERTERINPUTSTREAM(_to) \
49 : NS_SCRIPTABLE NS_IMETHOD Init(nsIInputStream *aStream, const char * aCharset, PRInt32 aBufferSize, PRUnichar aReplacementChar) { return _to Init(aStream, aCharset, aBufferSize, aReplacementChar); }
50 :
51 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
52 : #define NS_FORWARD_SAFE_NSICONVERTERINPUTSTREAM(_to) \
53 : NS_SCRIPTABLE NS_IMETHOD Init(nsIInputStream *aStream, const char * aCharset, PRInt32 aBufferSize, PRUnichar aReplacementChar) { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aStream, aCharset, aBufferSize, aReplacementChar); }
54 :
55 : #if 0
56 : /* Use the code below as a template for the implementation class for this interface. */
57 :
58 : /* Header file */
59 : class nsConverterInputStream : public nsIConverterInputStream
60 : {
61 : public:
62 : NS_DECL_ISUPPORTS
63 : NS_DECL_NSICONVERTERINPUTSTREAM
64 :
65 : nsConverterInputStream();
66 :
67 : private:
68 : ~nsConverterInputStream();
69 :
70 : protected:
71 : /* additional members */
72 : };
73 :
74 : /* Implementation file */
75 : NS_IMPL_ISUPPORTS1(nsConverterInputStream, nsIConverterInputStream)
76 :
77 : nsConverterInputStream::nsConverterInputStream()
78 : {
79 : /* member initializers and constructor code */
80 : }
81 :
82 : nsConverterInputStream::~nsConverterInputStream()
83 : {
84 : /* destructor code */
85 : }
86 :
87 : /* void init (in nsIInputStream aStream, in string aCharset, in long aBufferSize, in PRUnichar aReplacementChar); */
88 : NS_IMETHODIMP nsConverterInputStream::Init(nsIInputStream *aStream, const char * aCharset, PRInt32 aBufferSize, PRUnichar aReplacementChar)
89 : {
90 : return NS_ERROR_NOT_IMPLEMENTED;
91 : }
92 :
93 : /* End of implementation class template. */
94 : #endif
95 :
96 :
97 : #endif /* __gen_nsIConverterInputStream_h__ */
|