1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/netwerk/protocol/ftp/nsIFTPChannel.idl
3 : */
4 :
5 : #ifndef __gen_nsIFTPChannel_h__
6 : #define __gen_nsIFTPChannel_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 :
18 : /* starting interface: nsIFTPChannel */
19 : #define NS_IFTPCHANNEL_IID_STR "07f0d5cd-1fd5-4aa3-b6fc-665bdc5dbf9f"
20 :
21 : #define NS_IFTPCHANNEL_IID \
22 : {0x07f0d5cd, 0x1fd5, 0x4aa3, \
23 : { 0xb6, 0xfc, 0x66, 0x5b, 0xdc, 0x5d, 0xbf, 0x9f }}
24 :
25 19 : class NS_NO_VTABLE NS_SCRIPTABLE nsIFTPChannel : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IFTPCHANNEL_IID)
29 :
30 : /* attribute PRTime lastModifiedTime; */
31 : NS_SCRIPTABLE NS_IMETHOD GetLastModifiedTime(PRTime *aLastModifiedTime) = 0;
32 : NS_SCRIPTABLE NS_IMETHOD SetLastModifiedTime(PRTime aLastModifiedTime) = 0;
33 :
34 : };
35 :
36 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIFTPChannel, NS_IFTPCHANNEL_IID)
37 :
38 : /* Use this macro when declaring classes that implement this interface. */
39 : #define NS_DECL_NSIFTPCHANNEL \
40 : NS_SCRIPTABLE NS_IMETHOD GetLastModifiedTime(PRTime *aLastModifiedTime); \
41 : NS_SCRIPTABLE NS_IMETHOD SetLastModifiedTime(PRTime aLastModifiedTime);
42 :
43 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
44 : #define NS_FORWARD_NSIFTPCHANNEL(_to) \
45 : NS_SCRIPTABLE NS_IMETHOD GetLastModifiedTime(PRTime *aLastModifiedTime) { return _to GetLastModifiedTime(aLastModifiedTime); } \
46 : NS_SCRIPTABLE NS_IMETHOD SetLastModifiedTime(PRTime aLastModifiedTime) { return _to SetLastModifiedTime(aLastModifiedTime); }
47 :
48 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
49 : #define NS_FORWARD_SAFE_NSIFTPCHANNEL(_to) \
50 : NS_SCRIPTABLE NS_IMETHOD GetLastModifiedTime(PRTime *aLastModifiedTime) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastModifiedTime(aLastModifiedTime); } \
51 : NS_SCRIPTABLE NS_IMETHOD SetLastModifiedTime(PRTime aLastModifiedTime) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLastModifiedTime(aLastModifiedTime); }
52 :
53 : #if 0
54 : /* Use the code below as a template for the implementation class for this interface. */
55 :
56 : /* Header file */
57 : class nsFTPChannel : public nsIFTPChannel
58 : {
59 : public:
60 : NS_DECL_ISUPPORTS
61 : NS_DECL_NSIFTPCHANNEL
62 :
63 : nsFTPChannel();
64 :
65 : private:
66 : ~nsFTPChannel();
67 :
68 : protected:
69 : /* additional members */
70 : };
71 :
72 : /* Implementation file */
73 : NS_IMPL_ISUPPORTS1(nsFTPChannel, nsIFTPChannel)
74 :
75 : nsFTPChannel::nsFTPChannel()
76 : {
77 : /* member initializers and constructor code */
78 : }
79 :
80 : nsFTPChannel::~nsFTPChannel()
81 : {
82 : /* destructor code */
83 : }
84 :
85 : /* attribute PRTime lastModifiedTime; */
86 : NS_IMETHODIMP nsFTPChannel::GetLastModifiedTime(PRTime *aLastModifiedTime)
87 : {
88 : return NS_ERROR_NOT_IMPLEMENTED;
89 : }
90 : NS_IMETHODIMP nsFTPChannel::SetLastModifiedTime(PRTime aLastModifiedTime)
91 : {
92 : return NS_ERROR_NOT_IMPLEMENTED;
93 : }
94 :
95 : /* End of implementation class template. */
96 : #endif
97 :
98 :
99 : /* starting interface: nsIFTPEventSink */
100 : #define NS_IFTPEVENTSINK_IID_STR "455d4234-0330-43d2-bbfb-99afbecbfeb0"
101 :
102 : #define NS_IFTPEVENTSINK_IID \
103 : {0x455d4234, 0x0330, 0x43d2, \
104 : { 0xbb, 0xfb, 0x99, 0xaf, 0xbe, 0xcb, 0xfe, 0xb0 }}
105 :
106 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIFTPEventSink : public nsISupports {
107 : public:
108 :
109 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IFTPEVENTSINK_IID)
110 :
111 : /* void OnFTPControlLog (in boolean server, in string msg); */
112 : NS_SCRIPTABLE NS_IMETHOD OnFTPControlLog(bool server, const char * msg) = 0;
113 :
114 : };
115 :
116 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIFTPEventSink, NS_IFTPEVENTSINK_IID)
117 :
118 : /* Use this macro when declaring classes that implement this interface. */
119 : #define NS_DECL_NSIFTPEVENTSINK \
120 : NS_SCRIPTABLE NS_IMETHOD OnFTPControlLog(bool server, const char * msg);
121 :
122 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
123 : #define NS_FORWARD_NSIFTPEVENTSINK(_to) \
124 : NS_SCRIPTABLE NS_IMETHOD OnFTPControlLog(bool server, const char * msg) { return _to OnFTPControlLog(server, msg); }
125 :
126 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
127 : #define NS_FORWARD_SAFE_NSIFTPEVENTSINK(_to) \
128 : NS_SCRIPTABLE NS_IMETHOD OnFTPControlLog(bool server, const char * msg) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnFTPControlLog(server, msg); }
129 :
130 : #if 0
131 : /* Use the code below as a template for the implementation class for this interface. */
132 :
133 : /* Header file */
134 : class nsFTPEventSink : public nsIFTPEventSink
135 : {
136 : public:
137 : NS_DECL_ISUPPORTS
138 : NS_DECL_NSIFTPEVENTSINK
139 :
140 : nsFTPEventSink();
141 :
142 : private:
143 : ~nsFTPEventSink();
144 :
145 : protected:
146 : /* additional members */
147 : };
148 :
149 : /* Implementation file */
150 : NS_IMPL_ISUPPORTS1(nsFTPEventSink, nsIFTPEventSink)
151 :
152 : nsFTPEventSink::nsFTPEventSink()
153 : {
154 : /* member initializers and constructor code */
155 : }
156 :
157 : nsFTPEventSink::~nsFTPEventSink()
158 : {
159 : /* destructor code */
160 : }
161 :
162 : /* void OnFTPControlLog (in boolean server, in string msg); */
163 : NS_IMETHODIMP nsFTPEventSink::OnFTPControlLog(bool server, const char * msg)
164 : {
165 : return NS_ERROR_NOT_IMPLEMENTED;
166 : }
167 :
168 : /* End of implementation class template. */
169 : #endif
170 :
171 :
172 : #endif /* __gen_nsIFTPChannel_h__ */
|