1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/netwerk/protocol/wyciwyg/nsIWyciwygChannel.idl
3 : */
4 :
5 : #ifndef __gen_nsIWyciwygChannel_h__
6 : #define __gen_nsIWyciwygChannel_h__
7 :
8 :
9 : #ifndef __gen_nsIChannel_h__
10 : #include "nsIChannel.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 :
18 : /* starting interface: nsIWyciwygChannel */
19 : #define NS_IWYCIWYGCHANNEL_IID_STR "89b0674a-9e2f-4124-9b59-481444be841d"
20 :
21 : #define NS_IWYCIWYGCHANNEL_IID \
22 : {0x89b0674a, 0x9e2f, 0x4124, \
23 : { 0x9b, 0x59, 0x48, 0x14, 0x44, 0xbe, 0x84, 0x1d }}
24 :
25 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIWyciwygChannel : public nsIChannel {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IWYCIWYGCHANNEL_IID)
29 :
30 : /* void writeToCacheEntry (in AString aData); */
31 : NS_SCRIPTABLE NS_IMETHOD WriteToCacheEntry(const nsAString & aData) = 0;
32 :
33 : /* void closeCacheEntry (in nsresult reason); */
34 : NS_SCRIPTABLE NS_IMETHOD CloseCacheEntry(nsresult reason) = 0;
35 :
36 : /* void setSecurityInfo (in nsISupports aSecurityInfo); */
37 : NS_SCRIPTABLE NS_IMETHOD SetSecurityInfo(nsISupports *aSecurityInfo) = 0;
38 :
39 : /* void setCharsetAndSource (in long aSource, in ACString aCharset); */
40 : NS_SCRIPTABLE NS_IMETHOD SetCharsetAndSource(PRInt32 aSource, const nsACString & aCharset) = 0;
41 :
42 : /* ACString getCharsetAndSource (out long aSource); */
43 : NS_SCRIPTABLE NS_IMETHOD GetCharsetAndSource(PRInt32 *aSource NS_OUTPARAM, nsACString & _retval NS_OUTPARAM) = 0;
44 :
45 : };
46 :
47 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIWyciwygChannel, NS_IWYCIWYGCHANNEL_IID)
48 :
49 : /* Use this macro when declaring classes that implement this interface. */
50 : #define NS_DECL_NSIWYCIWYGCHANNEL \
51 : NS_SCRIPTABLE NS_IMETHOD WriteToCacheEntry(const nsAString & aData); \
52 : NS_SCRIPTABLE NS_IMETHOD CloseCacheEntry(nsresult reason); \
53 : NS_SCRIPTABLE NS_IMETHOD SetSecurityInfo(nsISupports *aSecurityInfo); \
54 : NS_SCRIPTABLE NS_IMETHOD SetCharsetAndSource(PRInt32 aSource, const nsACString & aCharset); \
55 : NS_SCRIPTABLE NS_IMETHOD GetCharsetAndSource(PRInt32 *aSource NS_OUTPARAM, nsACString & _retval NS_OUTPARAM);
56 :
57 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
58 : #define NS_FORWARD_NSIWYCIWYGCHANNEL(_to) \
59 : NS_SCRIPTABLE NS_IMETHOD WriteToCacheEntry(const nsAString & aData) { return _to WriteToCacheEntry(aData); } \
60 : NS_SCRIPTABLE NS_IMETHOD CloseCacheEntry(nsresult reason) { return _to CloseCacheEntry(reason); } \
61 : NS_SCRIPTABLE NS_IMETHOD SetSecurityInfo(nsISupports *aSecurityInfo) { return _to SetSecurityInfo(aSecurityInfo); } \
62 : NS_SCRIPTABLE NS_IMETHOD SetCharsetAndSource(PRInt32 aSource, const nsACString & aCharset) { return _to SetCharsetAndSource(aSource, aCharset); } \
63 : NS_SCRIPTABLE NS_IMETHOD GetCharsetAndSource(PRInt32 *aSource NS_OUTPARAM, nsACString & _retval NS_OUTPARAM) { return _to GetCharsetAndSource(aSource, _retval); }
64 :
65 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
66 : #define NS_FORWARD_SAFE_NSIWYCIWYGCHANNEL(_to) \
67 : NS_SCRIPTABLE NS_IMETHOD WriteToCacheEntry(const nsAString & aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->WriteToCacheEntry(aData); } \
68 : NS_SCRIPTABLE NS_IMETHOD CloseCacheEntry(nsresult reason) { return !_to ? NS_ERROR_NULL_POINTER : _to->CloseCacheEntry(reason); } \
69 : NS_SCRIPTABLE NS_IMETHOD SetSecurityInfo(nsISupports *aSecurityInfo) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSecurityInfo(aSecurityInfo); } \
70 : NS_SCRIPTABLE NS_IMETHOD SetCharsetAndSource(PRInt32 aSource, const nsACString & aCharset) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCharsetAndSource(aSource, aCharset); } \
71 : NS_SCRIPTABLE NS_IMETHOD GetCharsetAndSource(PRInt32 *aSource NS_OUTPARAM, nsACString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCharsetAndSource(aSource, _retval); }
72 :
73 : #if 0
74 : /* Use the code below as a template for the implementation class for this interface. */
75 :
76 : /* Header file */
77 : class nsWyciwygChannel : public nsIWyciwygChannel
78 : {
79 : public:
80 : NS_DECL_ISUPPORTS
81 : NS_DECL_NSIWYCIWYGCHANNEL
82 :
83 : nsWyciwygChannel();
84 :
85 : private:
86 : ~nsWyciwygChannel();
87 :
88 : protected:
89 : /* additional members */
90 : };
91 :
92 : /* Implementation file */
93 : NS_IMPL_ISUPPORTS1(nsWyciwygChannel, nsIWyciwygChannel)
94 :
95 : nsWyciwygChannel::nsWyciwygChannel()
96 : {
97 : /* member initializers and constructor code */
98 : }
99 :
100 : nsWyciwygChannel::~nsWyciwygChannel()
101 : {
102 : /* destructor code */
103 : }
104 :
105 : /* void writeToCacheEntry (in AString aData); */
106 : NS_IMETHODIMP nsWyciwygChannel::WriteToCacheEntry(const nsAString & aData)
107 : {
108 : return NS_ERROR_NOT_IMPLEMENTED;
109 : }
110 :
111 : /* void closeCacheEntry (in nsresult reason); */
112 : NS_IMETHODIMP nsWyciwygChannel::CloseCacheEntry(nsresult reason)
113 : {
114 : return NS_ERROR_NOT_IMPLEMENTED;
115 : }
116 :
117 : /* void setSecurityInfo (in nsISupports aSecurityInfo); */
118 : NS_IMETHODIMP nsWyciwygChannel::SetSecurityInfo(nsISupports *aSecurityInfo)
119 : {
120 : return NS_ERROR_NOT_IMPLEMENTED;
121 : }
122 :
123 : /* void setCharsetAndSource (in long aSource, in ACString aCharset); */
124 : NS_IMETHODIMP nsWyciwygChannel::SetCharsetAndSource(PRInt32 aSource, const nsACString & aCharset)
125 : {
126 : return NS_ERROR_NOT_IMPLEMENTED;
127 : }
128 :
129 : /* ACString getCharsetAndSource (out long aSource); */
130 : NS_IMETHODIMP nsWyciwygChannel::GetCharsetAndSource(PRInt32 *aSource NS_OUTPARAM, nsACString & _retval NS_OUTPARAM)
131 : {
132 : return NS_ERROR_NOT_IMPLEMENTED;
133 : }
134 :
135 : /* End of implementation class template. */
136 : #endif
137 :
138 :
139 : #endif /* __gen_nsIWyciwygChannel_h__ */
|