1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/xpcom/io/nsIScriptableInputStream.idl
3 : */
4 :
5 : #ifndef __gen_nsIScriptableInputStream_h__
6 : #define __gen_nsIScriptableInputStream_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 : class nsIInputStream; /* forward declaration */
18 :
19 :
20 : /* starting interface: nsIScriptableInputStream */
21 : #define NS_ISCRIPTABLEINPUTSTREAM_IID_STR "e546afd6-1248-4deb-8940-4b000b618a58"
22 :
23 : #define NS_ISCRIPTABLEINPUTSTREAM_IID \
24 : {0xe546afd6, 0x1248, 0x4deb, \
25 : { 0x89, 0x40, 0x4b, 0x00, 0x0b, 0x61, 0x8a, 0x58 }}
26 :
27 2670 : class NS_NO_VTABLE NS_SCRIPTABLE nsIScriptableInputStream : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISCRIPTABLEINPUTSTREAM_IID)
31 :
32 : /* void close (); */
33 : NS_SCRIPTABLE NS_IMETHOD Close(void) = 0;
34 :
35 : /* void init (in nsIInputStream aInputStream); */
36 : NS_SCRIPTABLE NS_IMETHOD Init(nsIInputStream *aInputStream) = 0;
37 :
38 : /* unsigned long available (); */
39 : NS_SCRIPTABLE NS_IMETHOD Available(PRUint32 *_retval NS_OUTPARAM) = 0;
40 :
41 : /* string read (in unsigned long aCount); */
42 : NS_SCRIPTABLE NS_IMETHOD Read(PRUint32 aCount, char * *_retval NS_OUTPARAM) = 0;
43 :
44 : /* ACString readBytes (in unsigned long aCount); */
45 : NS_SCRIPTABLE NS_IMETHOD ReadBytes(PRUint32 aCount, nsACString & _retval NS_OUTPARAM) = 0;
46 :
47 : };
48 :
49 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIScriptableInputStream, NS_ISCRIPTABLEINPUTSTREAM_IID)
50 :
51 : /* Use this macro when declaring classes that implement this interface. */
52 : #define NS_DECL_NSISCRIPTABLEINPUTSTREAM \
53 : NS_SCRIPTABLE NS_IMETHOD Close(void); \
54 : NS_SCRIPTABLE NS_IMETHOD Init(nsIInputStream *aInputStream); \
55 : NS_SCRIPTABLE NS_IMETHOD Available(PRUint32 *_retval NS_OUTPARAM); \
56 : NS_SCRIPTABLE NS_IMETHOD Read(PRUint32 aCount, char * *_retval NS_OUTPARAM); \
57 : NS_SCRIPTABLE NS_IMETHOD ReadBytes(PRUint32 aCount, nsACString & _retval NS_OUTPARAM);
58 :
59 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
60 : #define NS_FORWARD_NSISCRIPTABLEINPUTSTREAM(_to) \
61 : NS_SCRIPTABLE NS_IMETHOD Close(void) { return _to Close(); } \
62 : NS_SCRIPTABLE NS_IMETHOD Init(nsIInputStream *aInputStream) { return _to Init(aInputStream); } \
63 : NS_SCRIPTABLE NS_IMETHOD Available(PRUint32 *_retval NS_OUTPARAM) { return _to Available(_retval); } \
64 : NS_SCRIPTABLE NS_IMETHOD Read(PRUint32 aCount, char * *_retval NS_OUTPARAM) { return _to Read(aCount, _retval); } \
65 : NS_SCRIPTABLE NS_IMETHOD ReadBytes(PRUint32 aCount, nsACString & _retval NS_OUTPARAM) { return _to ReadBytes(aCount, _retval); }
66 :
67 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
68 : #define NS_FORWARD_SAFE_NSISCRIPTABLEINPUTSTREAM(_to) \
69 : NS_SCRIPTABLE NS_IMETHOD Close(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Close(); } \
70 : NS_SCRIPTABLE NS_IMETHOD Init(nsIInputStream *aInputStream) { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aInputStream); } \
71 : NS_SCRIPTABLE NS_IMETHOD Available(PRUint32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Available(_retval); } \
72 : NS_SCRIPTABLE NS_IMETHOD Read(PRUint32 aCount, char * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Read(aCount, _retval); } \
73 : NS_SCRIPTABLE NS_IMETHOD ReadBytes(PRUint32 aCount, nsACString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ReadBytes(aCount, _retval); }
74 :
75 : #if 0
76 : /* Use the code below as a template for the implementation class for this interface. */
77 :
78 : /* Header file */
79 : class nsScriptableInputStream : public nsIScriptableInputStream
80 : {
81 : public:
82 : NS_DECL_ISUPPORTS
83 : NS_DECL_NSISCRIPTABLEINPUTSTREAM
84 :
85 : nsScriptableInputStream();
86 :
87 : private:
88 : ~nsScriptableInputStream();
89 :
90 : protected:
91 : /* additional members */
92 : };
93 :
94 : /* Implementation file */
95 : NS_IMPL_ISUPPORTS1(nsScriptableInputStream, nsIScriptableInputStream)
96 :
97 : nsScriptableInputStream::nsScriptableInputStream()
98 : {
99 : /* member initializers and constructor code */
100 : }
101 :
102 : nsScriptableInputStream::~nsScriptableInputStream()
103 : {
104 : /* destructor code */
105 : }
106 :
107 : /* void close (); */
108 : NS_IMETHODIMP nsScriptableInputStream::Close()
109 : {
110 : return NS_ERROR_NOT_IMPLEMENTED;
111 : }
112 :
113 : /* void init (in nsIInputStream aInputStream); */
114 : NS_IMETHODIMP nsScriptableInputStream::Init(nsIInputStream *aInputStream)
115 : {
116 : return NS_ERROR_NOT_IMPLEMENTED;
117 : }
118 :
119 : /* unsigned long available (); */
120 : NS_IMETHODIMP nsScriptableInputStream::Available(PRUint32 *_retval NS_OUTPARAM)
121 : {
122 : return NS_ERROR_NOT_IMPLEMENTED;
123 : }
124 :
125 : /* string read (in unsigned long aCount); */
126 : NS_IMETHODIMP nsScriptableInputStream::Read(PRUint32 aCount, char * *_retval NS_OUTPARAM)
127 : {
128 : return NS_ERROR_NOT_IMPLEMENTED;
129 : }
130 :
131 : /* ACString readBytes (in unsigned long aCount); */
132 : NS_IMETHODIMP nsScriptableInputStream::ReadBytes(PRUint32 aCount, nsACString & _retval NS_OUTPARAM)
133 : {
134 : return NS_ERROR_NOT_IMPLEMENTED;
135 : }
136 :
137 : /* End of implementation class template. */
138 : #endif
139 :
140 :
141 : #endif /* __gen_nsIScriptableInputStream_h__ */
|