1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/dom/plugins/base/nsIPluginStreamListener.idl
3 : */
4 :
5 : #ifndef __gen_nsIPluginStreamListener_h__
6 : #define __gen_nsIPluginStreamListener_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : #ifndef __gen_nspluginroot_h__
14 : #include "nspluginroot.h"
15 : #endif
16 :
17 : #ifndef __gen_nsIPluginStreamInfo_h__
18 : #include "nsIPluginStreamInfo.h"
19 : #endif
20 :
21 : #ifndef __gen_nsIInputStream_h__
22 : #include "nsIInputStream.h"
23 : #endif
24 :
25 : /* For IDL files that don't want to include root IDL files. */
26 : #ifndef NS_NO_VTABLE
27 : #define NS_NO_VTABLE
28 : #endif
29 : #include "npapi.h"
30 :
31 : /* starting interface: nsIPluginStreamListener */
32 : #define NS_IPLUGINSTREAMLISTENER_IID_STR "02c9dad7-d9dd-4f36-bd5e-93ca404a31bc"
33 :
34 : #define NS_IPLUGINSTREAMLISTENER_IID \
35 : {0x02c9dad7, 0xd9dd, 0x4f36, \
36 : { 0xbd, 0x5e, 0x93, 0xca, 0x40, 0x4a, 0x31, 0xbc }}
37 :
38 0 : class NS_NO_VTABLE nsIPluginStreamListener : public nsISupports {
39 : public:
40 :
41 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPLUGINSTREAMLISTENER_IID)
42 :
43 : /* void onStartBinding (in nsIPluginStreamInfo aPluginInfo); */
44 : NS_IMETHOD OnStartBinding(nsIPluginStreamInfo *aPluginInfo) = 0;
45 :
46 : /* void onDataAvailable (in nsIPluginStreamInfo aPluginInfo, in nsIInputStream aInputStream, in unsigned long aLength); */
47 : NS_IMETHOD OnDataAvailable(nsIPluginStreamInfo *aPluginInfo, nsIInputStream *aInputStream, PRUint32 aLength) = 0;
48 :
49 : /* void onFileAvailable (in nsIPluginStreamInfo aPluginInfo, in string aFileName); */
50 : NS_IMETHOD OnFileAvailable(nsIPluginStreamInfo *aPluginInfo, const char * aFileName) = 0;
51 :
52 : /* void onStopBinding (in nsIPluginStreamInfo aPluginInfo, in nsresult aStatus); */
53 : NS_IMETHOD OnStopBinding(nsIPluginStreamInfo *aPluginInfo, nsresult aStatus) = 0;
54 :
55 : /* readonly attribute PRInt32 streamType; */
56 : NS_IMETHOD GetStreamType(PRInt32 *aStreamType) = 0;
57 :
58 : };
59 :
60 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIPluginStreamListener, NS_IPLUGINSTREAMLISTENER_IID)
61 :
62 : /* Use this macro when declaring classes that implement this interface. */
63 : #define NS_DECL_NSIPLUGINSTREAMLISTENER \
64 : NS_IMETHOD OnStartBinding(nsIPluginStreamInfo *aPluginInfo); \
65 : NS_IMETHOD OnDataAvailable(nsIPluginStreamInfo *aPluginInfo, nsIInputStream *aInputStream, PRUint32 aLength); \
66 : NS_IMETHOD OnFileAvailable(nsIPluginStreamInfo *aPluginInfo, const char * aFileName); \
67 : NS_IMETHOD OnStopBinding(nsIPluginStreamInfo *aPluginInfo, nsresult aStatus); \
68 : NS_IMETHOD GetStreamType(PRInt32 *aStreamType);
69 :
70 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
71 : #define NS_FORWARD_NSIPLUGINSTREAMLISTENER(_to) \
72 : NS_IMETHOD OnStartBinding(nsIPluginStreamInfo *aPluginInfo) { return _to OnStartBinding(aPluginInfo); } \
73 : NS_IMETHOD OnDataAvailable(nsIPluginStreamInfo *aPluginInfo, nsIInputStream *aInputStream, PRUint32 aLength) { return _to OnDataAvailable(aPluginInfo, aInputStream, aLength); } \
74 : NS_IMETHOD OnFileAvailable(nsIPluginStreamInfo *aPluginInfo, const char * aFileName) { return _to OnFileAvailable(aPluginInfo, aFileName); } \
75 : NS_IMETHOD OnStopBinding(nsIPluginStreamInfo *aPluginInfo, nsresult aStatus) { return _to OnStopBinding(aPluginInfo, aStatus); } \
76 : NS_IMETHOD GetStreamType(PRInt32 *aStreamType) { return _to GetStreamType(aStreamType); }
77 :
78 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
79 : #define NS_FORWARD_SAFE_NSIPLUGINSTREAMLISTENER(_to) \
80 : NS_IMETHOD OnStartBinding(nsIPluginStreamInfo *aPluginInfo) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnStartBinding(aPluginInfo); } \
81 : NS_IMETHOD OnDataAvailable(nsIPluginStreamInfo *aPluginInfo, nsIInputStream *aInputStream, PRUint32 aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnDataAvailable(aPluginInfo, aInputStream, aLength); } \
82 : NS_IMETHOD OnFileAvailable(nsIPluginStreamInfo *aPluginInfo, const char * aFileName) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnFileAvailable(aPluginInfo, aFileName); } \
83 : NS_IMETHOD OnStopBinding(nsIPluginStreamInfo *aPluginInfo, nsresult aStatus) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnStopBinding(aPluginInfo, aStatus); } \
84 : NS_IMETHOD GetStreamType(PRInt32 *aStreamType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStreamType(aStreamType); }
85 :
86 : #if 0
87 : /* Use the code below as a template for the implementation class for this interface. */
88 :
89 : /* Header file */
90 : class nsPluginStreamListener : public nsIPluginStreamListener
91 : {
92 : public:
93 : NS_DECL_ISUPPORTS
94 : NS_DECL_NSIPLUGINSTREAMLISTENER
95 :
96 : nsPluginStreamListener();
97 :
98 : private:
99 : ~nsPluginStreamListener();
100 :
101 : protected:
102 : /* additional members */
103 : };
104 :
105 : /* Implementation file */
106 : NS_IMPL_ISUPPORTS1(nsPluginStreamListener, nsIPluginStreamListener)
107 :
108 : nsPluginStreamListener::nsPluginStreamListener()
109 : {
110 : /* member initializers and constructor code */
111 : }
112 :
113 : nsPluginStreamListener::~nsPluginStreamListener()
114 : {
115 : /* destructor code */
116 : }
117 :
118 : /* void onStartBinding (in nsIPluginStreamInfo aPluginInfo); */
119 : NS_IMETHODIMP nsPluginStreamListener::OnStartBinding(nsIPluginStreamInfo *aPluginInfo)
120 : {
121 : return NS_ERROR_NOT_IMPLEMENTED;
122 : }
123 :
124 : /* void onDataAvailable (in nsIPluginStreamInfo aPluginInfo, in nsIInputStream aInputStream, in unsigned long aLength); */
125 : NS_IMETHODIMP nsPluginStreamListener::OnDataAvailable(nsIPluginStreamInfo *aPluginInfo, nsIInputStream *aInputStream, PRUint32 aLength)
126 : {
127 : return NS_ERROR_NOT_IMPLEMENTED;
128 : }
129 :
130 : /* void onFileAvailable (in nsIPluginStreamInfo aPluginInfo, in string aFileName); */
131 : NS_IMETHODIMP nsPluginStreamListener::OnFileAvailable(nsIPluginStreamInfo *aPluginInfo, const char * aFileName)
132 : {
133 : return NS_ERROR_NOT_IMPLEMENTED;
134 : }
135 :
136 : /* void onStopBinding (in nsIPluginStreamInfo aPluginInfo, in nsresult aStatus); */
137 : NS_IMETHODIMP nsPluginStreamListener::OnStopBinding(nsIPluginStreamInfo *aPluginInfo, nsresult aStatus)
138 : {
139 : return NS_ERROR_NOT_IMPLEMENTED;
140 : }
141 :
142 : /* readonly attribute PRInt32 streamType; */
143 : NS_IMETHODIMP nsPluginStreamListener::GetStreamType(PRInt32 *aStreamType)
144 : {
145 : return NS_ERROR_NOT_IMPLEMENTED;
146 : }
147 :
148 : /* End of implementation class template. */
149 : #endif
150 :
151 :
152 : #endif /* __gen_nsIPluginStreamListener_h__ */
|