1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/netwerk/base/public/nsPISocketTransportService.idl
3 : */
4 :
5 : #ifndef __gen_nsPISocketTransportService_h__
6 : #define __gen_nsPISocketTransportService_h__
7 :
8 :
9 : #ifndef __gen_nsISocketTransportService_h__
10 : #include "nsISocketTransportService.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: nsPISocketTransportService */
19 : #define NS_PISOCKETTRANSPORTSERVICE_IID_STR "83123036-81c0-47cb-8d9c-bd85d29a1b3f"
20 :
21 : #define NS_PISOCKETTRANSPORTSERVICE_IID \
22 : {0x83123036, 0x81c0, 0x47cb, \
23 : { 0x8d, 0x9c, 0xbd, 0x85, 0xd2, 0x9a, 0x1b, 0x3f }}
24 :
25 1419 : class NS_NO_VTABLE NS_SCRIPTABLE nsPISocketTransportService : public nsISocketTransportService {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_PISOCKETTRANSPORTSERVICE_IID)
29 :
30 : /* void init (); */
31 : NS_SCRIPTABLE NS_IMETHOD Init(void) = 0;
32 :
33 : /* void shutdown (); */
34 : NS_SCRIPTABLE NS_IMETHOD Shutdown(void) = 0;
35 :
36 : /* attribute boolean autodialEnabled; */
37 : NS_SCRIPTABLE NS_IMETHOD GetAutodialEnabled(bool *aAutodialEnabled) = 0;
38 : NS_SCRIPTABLE NS_IMETHOD SetAutodialEnabled(bool aAutodialEnabled) = 0;
39 :
40 : /* readonly attribute long sendBufferSize; */
41 : NS_SCRIPTABLE NS_IMETHOD GetSendBufferSize(PRInt32 *aSendBufferSize) = 0;
42 :
43 : };
44 :
45 : NS_DEFINE_STATIC_IID_ACCESSOR(nsPISocketTransportService, NS_PISOCKETTRANSPORTSERVICE_IID)
46 :
47 : /* Use this macro when declaring classes that implement this interface. */
48 : #define NS_DECL_NSPISOCKETTRANSPORTSERVICE \
49 : NS_SCRIPTABLE NS_IMETHOD Init(void); \
50 : NS_SCRIPTABLE NS_IMETHOD Shutdown(void); \
51 : NS_SCRIPTABLE NS_IMETHOD GetAutodialEnabled(bool *aAutodialEnabled); \
52 : NS_SCRIPTABLE NS_IMETHOD SetAutodialEnabled(bool aAutodialEnabled); \
53 : NS_SCRIPTABLE NS_IMETHOD GetSendBufferSize(PRInt32 *aSendBufferSize);
54 :
55 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
56 : #define NS_FORWARD_NSPISOCKETTRANSPORTSERVICE(_to) \
57 : NS_SCRIPTABLE NS_IMETHOD Init(void) { return _to Init(); } \
58 : NS_SCRIPTABLE NS_IMETHOD Shutdown(void) { return _to Shutdown(); } \
59 : NS_SCRIPTABLE NS_IMETHOD GetAutodialEnabled(bool *aAutodialEnabled) { return _to GetAutodialEnabled(aAutodialEnabled); } \
60 : NS_SCRIPTABLE NS_IMETHOD SetAutodialEnabled(bool aAutodialEnabled) { return _to SetAutodialEnabled(aAutodialEnabled); } \
61 : NS_SCRIPTABLE NS_IMETHOD GetSendBufferSize(PRInt32 *aSendBufferSize) { return _to GetSendBufferSize(aSendBufferSize); }
62 :
63 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
64 : #define NS_FORWARD_SAFE_NSPISOCKETTRANSPORTSERVICE(_to) \
65 : NS_SCRIPTABLE NS_IMETHOD Init(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(); } \
66 : NS_SCRIPTABLE NS_IMETHOD Shutdown(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Shutdown(); } \
67 : NS_SCRIPTABLE NS_IMETHOD GetAutodialEnabled(bool *aAutodialEnabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAutodialEnabled(aAutodialEnabled); } \
68 : NS_SCRIPTABLE NS_IMETHOD SetAutodialEnabled(bool aAutodialEnabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAutodialEnabled(aAutodialEnabled); } \
69 : NS_SCRIPTABLE NS_IMETHOD GetSendBufferSize(PRInt32 *aSendBufferSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSendBufferSize(aSendBufferSize); }
70 :
71 : #if 0
72 : /* Use the code below as a template for the implementation class for this interface. */
73 :
74 : /* Header file */
75 : class _MYCLASS_ : public nsPISocketTransportService
76 : {
77 : public:
78 : NS_DECL_ISUPPORTS
79 : NS_DECL_NSPISOCKETTRANSPORTSERVICE
80 :
81 : _MYCLASS_();
82 :
83 : private:
84 : ~_MYCLASS_();
85 :
86 : protected:
87 : /* additional members */
88 : };
89 :
90 : /* Implementation file */
91 : NS_IMPL_ISUPPORTS1(_MYCLASS_, nsPISocketTransportService)
92 :
93 : _MYCLASS_::_MYCLASS_()
94 : {
95 : /* member initializers and constructor code */
96 : }
97 :
98 : _MYCLASS_::~_MYCLASS_()
99 : {
100 : /* destructor code */
101 : }
102 :
103 : /* void init (); */
104 : NS_IMETHODIMP _MYCLASS_::Init()
105 : {
106 : return NS_ERROR_NOT_IMPLEMENTED;
107 : }
108 :
109 : /* void shutdown (); */
110 : NS_IMETHODIMP _MYCLASS_::Shutdown()
111 : {
112 : return NS_ERROR_NOT_IMPLEMENTED;
113 : }
114 :
115 : /* attribute boolean autodialEnabled; */
116 : NS_IMETHODIMP _MYCLASS_::GetAutodialEnabled(bool *aAutodialEnabled)
117 : {
118 : return NS_ERROR_NOT_IMPLEMENTED;
119 : }
120 : NS_IMETHODIMP _MYCLASS_::SetAutodialEnabled(bool aAutodialEnabled)
121 : {
122 : return NS_ERROR_NOT_IMPLEMENTED;
123 : }
124 :
125 : /* readonly attribute long sendBufferSize; */
126 : NS_IMETHODIMP _MYCLASS_::GetSendBufferSize(PRInt32 *aSendBufferSize)
127 : {
128 : return NS_ERROR_NOT_IMPLEMENTED;
129 : }
130 :
131 : /* End of implementation class template. */
132 : #endif
133 :
134 :
135 : #endif /* __gen_nsPISocketTransportService_h__ */
|