Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIIOUtil.idl
3 : */
4 :
5 : #ifndef __gen_nsIIOUtil_h__
6 : #define __gen_nsIIOUtil_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 : class nsIOutputStream; /* forward declaration */
20 :
21 :
22 : /* starting interface: nsIIOUtil */
23 : #define NS_IIOUTIL_IID_STR "e8152f7f-4209-4c63-ad23-c3d2aa0c5a49"
24 :
25 : #define NS_IIOUTIL_IID \
26 : {0xe8152f7f, 0x4209, 0x4c63, \
27 : { 0xad, 0x23, 0xc3, 0xd2, 0xaa, 0x0c, 0x5a, 0x49 }}
28 :
29 0 : class NS_NO_VTABLE nsIIOUtil : public nsISupports {
30 : public:
31 :
32 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IIOUTIL_IID)
33 :
34 : /* boolean inputStreamIsBuffered (in nsIInputStream aStream); */
35 : NS_IMETHOD InputStreamIsBuffered(nsIInputStream *aStream, bool *_retval) = 0;
36 :
37 : /* boolean outputStreamIsBuffered (in nsIOutputStream aStream); */
38 : NS_IMETHOD OutputStreamIsBuffered(nsIOutputStream *aStream, bool *_retval) = 0;
39 :
40 : };
41 :
42 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIIOUtil, NS_IIOUTIL_IID)
43 :
44 : /* Use this macro when declaring classes that implement this interface. */
45 : #define NS_DECL_NSIIOUTIL \
46 : NS_IMETHOD InputStreamIsBuffered(nsIInputStream *aStream, bool *_retval) override; \
47 : NS_IMETHOD OutputStreamIsBuffered(nsIOutputStream *aStream, bool *_retval) override;
48 :
49 : /* Use this macro when declaring the members of this interface when the
50 : class doesn't implement the interface. This is useful for forwarding. */
51 : #define NS_DECL_NON_VIRTUAL_NSIIOUTIL \
52 : nsresult InputStreamIsBuffered(nsIInputStream *aStream, bool *_retval); \
53 : nsresult OutputStreamIsBuffered(nsIOutputStream *aStream, bool *_retval);
54 :
55 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
56 : #define NS_FORWARD_NSIIOUTIL(_to) \
57 : NS_IMETHOD InputStreamIsBuffered(nsIInputStream *aStream, bool *_retval) override { return _to InputStreamIsBuffered(aStream, _retval); } \
58 : NS_IMETHOD OutputStreamIsBuffered(nsIOutputStream *aStream, bool *_retval) override { return _to OutputStreamIsBuffered(aStream, _retval); }
59 :
60 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
61 : #define NS_FORWARD_SAFE_NSIIOUTIL(_to) \
62 : NS_IMETHOD InputStreamIsBuffered(nsIInputStream *aStream, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InputStreamIsBuffered(aStream, _retval); } \
63 : NS_IMETHOD OutputStreamIsBuffered(nsIOutputStream *aStream, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OutputStreamIsBuffered(aStream, _retval); }
64 :
65 : #if 0
66 : /* Use the code below as a template for the implementation class for this interface. */
67 :
68 : /* Header file */
69 : class nsIOUtil : public nsIIOUtil
70 : {
71 : public:
72 : NS_DECL_ISUPPORTS
73 : NS_DECL_NSIIOUTIL
74 :
75 : nsIOUtil();
76 :
77 : private:
78 : ~nsIOUtil();
79 :
80 : protected:
81 : /* additional members */
82 : };
83 :
84 : /* Implementation file */
85 : NS_IMPL_ISUPPORTS(nsIOUtil, nsIIOUtil)
86 :
87 : nsIOUtil::nsIOUtil()
88 : {
89 : /* member initializers and constructor code */
90 : }
91 :
92 : nsIOUtil::~nsIOUtil()
93 : {
94 : /* destructor code */
95 : }
96 :
97 : /* boolean inputStreamIsBuffered (in nsIInputStream aStream); */
98 : NS_IMETHODIMP nsIOUtil::InputStreamIsBuffered(nsIInputStream *aStream, bool *_retval)
99 : {
100 : return NS_ERROR_NOT_IMPLEMENTED;
101 : }
102 :
103 : /* boolean outputStreamIsBuffered (in nsIOutputStream aStream); */
104 : NS_IMETHODIMP nsIOUtil::OutputStreamIsBuffered(nsIOutputStream *aStream, bool *_retval)
105 : {
106 : return NS_ERROR_NOT_IMPLEMENTED;
107 : }
108 :
109 : /* End of implementation class template. */
110 : #endif
111 :
112 :
113 : #endif /* __gen_nsIIOUtil_h__ */
|