Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIStringStream.idl
3 : */
4 :
5 : #ifndef __gen_nsIStringStream_h__
6 : #define __gen_nsIStringStream_h__
7 :
8 :
9 : #ifndef __gen_nsIInputStream_h__
10 : #include "nsIInputStream.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 : #include "mozilla/MemoryReporting.h"
18 :
19 : /* starting interface: nsIStringInputStream */
20 : #define NS_ISTRINGINPUTSTREAM_IID_STR "450cd2d4-f0fd-424d-b365-b1251f80fd53"
21 :
22 : #define NS_ISTRINGINPUTSTREAM_IID \
23 : {0x450cd2d4, 0xf0fd, 0x424d, \
24 : { 0xb3, 0x65, 0xb1, 0x25, 0x1f, 0x80, 0xfd, 0x53 }}
25 :
26 87 : class NS_NO_VTABLE nsIStringInputStream : public nsIInputStream {
27 : public:
28 :
29 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISTRINGINPUTSTREAM_IID)
30 :
31 : /* void setData (in string data, in long dataLen); */
32 : NS_IMETHOD SetData(const char * data, int32_t dataLen) = 0;
33 :
34 : /* [noscript] void adoptData (in charPtr data, in long dataLen); */
35 : NS_IMETHOD AdoptData(char *data, int32_t dataLen) = 0;
36 :
37 : /* [noscript] void shareData (in string data, in long dataLen); */
38 : NS_IMETHOD ShareData(const char * data, int32_t dataLen) = 0;
39 :
40 : /* [noscript,notxpcom] size_t SizeOfIncludingThis (in MallocSizeOf aMallocSizeOf); */
41 : NS_IMETHOD_(size_t) SizeOfIncludingThis(mozilla::MallocSizeOf aMallocSizeOf) = 0;
42 :
43 : };
44 :
45 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIStringInputStream, NS_ISTRINGINPUTSTREAM_IID)
46 :
47 : /* Use this macro when declaring classes that implement this interface. */
48 : #define NS_DECL_NSISTRINGINPUTSTREAM \
49 : NS_IMETHOD SetData(const char * data, int32_t dataLen) override; \
50 : NS_IMETHOD AdoptData(char *data, int32_t dataLen) override; \
51 : NS_IMETHOD ShareData(const char * data, int32_t dataLen) override; \
52 : NS_IMETHOD_(size_t) SizeOfIncludingThis(mozilla::MallocSizeOf aMallocSizeOf) override;
53 :
54 : /* Use this macro when declaring the members of this interface when the
55 : class doesn't implement the interface. This is useful for forwarding. */
56 : #define NS_DECL_NON_VIRTUAL_NSISTRINGINPUTSTREAM \
57 : nsresult SetData(const char * data, int32_t dataLen); \
58 : nsresult AdoptData(char *data, int32_t dataLen); \
59 : nsresult ShareData(const char * data, int32_t dataLen); \
60 : nsresult_(size_t) SizeOfIncludingThis(mozilla::MallocSizeOf aMallocSizeOf);
61 :
62 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
63 : #define NS_FORWARD_NSISTRINGINPUTSTREAM(_to) \
64 : NS_IMETHOD SetData(const char * data, int32_t dataLen) override { return _to SetData(data, dataLen); } \
65 : NS_IMETHOD AdoptData(char *data, int32_t dataLen) override { return _to AdoptData(data, dataLen); } \
66 : NS_IMETHOD ShareData(const char * data, int32_t dataLen) override { return _to ShareData(data, dataLen); } \
67 : NS_IMETHOD_(size_t) SizeOfIncludingThis(mozilla::MallocSizeOf aMallocSizeOf) override { return _to SizeOfIncludingThis(aMallocSizeOf); }
68 :
69 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
70 : #define NS_FORWARD_SAFE_NSISTRINGINPUTSTREAM(_to) \
71 : NS_IMETHOD SetData(const char * data, int32_t dataLen) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(data, dataLen); } \
72 : NS_IMETHOD AdoptData(char *data, int32_t dataLen) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AdoptData(data, dataLen); } \
73 : NS_IMETHOD ShareData(const char * data, int32_t dataLen) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ShareData(data, dataLen); } \
74 : NS_IMETHOD_(size_t) SizeOfIncludingThis(mozilla::MallocSizeOf aMallocSizeOf) override;
75 :
76 : #if 0
77 : /* Use the code below as a template for the implementation class for this interface. */
78 :
79 : /* Header file */
80 : class nsStringInputStream : public nsIStringInputStream
81 : {
82 : public:
83 : NS_DECL_ISUPPORTS
84 : NS_DECL_NSISTRINGINPUTSTREAM
85 :
86 : nsStringInputStream();
87 :
88 : private:
89 : ~nsStringInputStream();
90 :
91 : protected:
92 : /* additional members */
93 : };
94 :
95 : /* Implementation file */
96 : NS_IMPL_ISUPPORTS(nsStringInputStream, nsIStringInputStream)
97 :
98 : nsStringInputStream::nsStringInputStream()
99 : {
100 : /* member initializers and constructor code */
101 : }
102 :
103 : nsStringInputStream::~nsStringInputStream()
104 : {
105 : /* destructor code */
106 : }
107 :
108 : /* void setData (in string data, in long dataLen); */
109 : NS_IMETHODIMP nsStringInputStream::SetData(const char * data, int32_t dataLen)
110 : {
111 : return NS_ERROR_NOT_IMPLEMENTED;
112 : }
113 :
114 : /* [noscript] void adoptData (in charPtr data, in long dataLen); */
115 : NS_IMETHODIMP nsStringInputStream::AdoptData(char *data, int32_t dataLen)
116 : {
117 : return NS_ERROR_NOT_IMPLEMENTED;
118 : }
119 :
120 : /* [noscript] void shareData (in string data, in long dataLen); */
121 : NS_IMETHODIMP nsStringInputStream::ShareData(const char * data, int32_t dataLen)
122 : {
123 : return NS_ERROR_NOT_IMPLEMENTED;
124 : }
125 :
126 : /* [noscript,notxpcom] size_t SizeOfIncludingThis (in MallocSizeOf aMallocSizeOf); */
127 : NS_IMETHODIMP_(size_t) nsStringInputStream::SizeOfIncludingThis(mozilla::MallocSizeOf aMallocSizeOf)
128 : {
129 : return NS_ERROR_NOT_IMPLEMENTED;
130 : }
131 :
132 : /* End of implementation class template. */
133 : #endif
134 :
135 :
136 : #endif /* __gen_nsIStringStream_h__ */
|