1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/dom/network/interfaces/nsIDOMConnection.idl
3 : */
4 :
5 : #ifndef __gen_nsIDOMConnection_h__
6 : #define __gen_nsIDOMConnection_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 : class nsIDOMEventListener; /* forward declaration */
18 :
19 :
20 : /* starting interface: nsIDOMMozConnection */
21 : #define NS_IDOMMOZCONNECTION_IID_STR "8c6b574d-1135-4387-a6e3-6d8ba38d79a1"
22 :
23 : #define NS_IDOMMOZCONNECTION_IID \
24 : {0x8c6b574d, 0x1135, 0x4387, \
25 : { 0xa6, 0xe3, 0x6d, 0x8b, 0xa3, 0x8d, 0x79, 0xa1 }}
26 :
27 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMMozConnection : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMMOZCONNECTION_IID)
31 :
32 : /* readonly attribute double bandwidth; */
33 : NS_SCRIPTABLE NS_IMETHOD GetBandwidth(double *aBandwidth) = 0;
34 :
35 : /* readonly attribute boolean metered; */
36 : NS_SCRIPTABLE NS_IMETHOD GetMetered(bool *aMetered) = 0;
37 :
38 : /* attribute nsIDOMEventListener onchange; */
39 : NS_SCRIPTABLE NS_IMETHOD GetOnchange(nsIDOMEventListener * *aOnchange) = 0;
40 : NS_SCRIPTABLE NS_IMETHOD SetOnchange(nsIDOMEventListener *aOnchange) = 0;
41 :
42 : };
43 :
44 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMMozConnection, NS_IDOMMOZCONNECTION_IID)
45 :
46 : /* Use this macro when declaring classes that implement this interface. */
47 : #define NS_DECL_NSIDOMMOZCONNECTION \
48 : NS_SCRIPTABLE NS_IMETHOD GetBandwidth(double *aBandwidth); \
49 : NS_SCRIPTABLE NS_IMETHOD GetMetered(bool *aMetered); \
50 : NS_SCRIPTABLE NS_IMETHOD GetOnchange(nsIDOMEventListener * *aOnchange); \
51 : NS_SCRIPTABLE NS_IMETHOD SetOnchange(nsIDOMEventListener *aOnchange);
52 :
53 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
54 : #define NS_FORWARD_NSIDOMMOZCONNECTION(_to) \
55 : NS_SCRIPTABLE NS_IMETHOD GetBandwidth(double *aBandwidth) { return _to GetBandwidth(aBandwidth); } \
56 : NS_SCRIPTABLE NS_IMETHOD GetMetered(bool *aMetered) { return _to GetMetered(aMetered); } \
57 : NS_SCRIPTABLE NS_IMETHOD GetOnchange(nsIDOMEventListener * *aOnchange) { return _to GetOnchange(aOnchange); } \
58 : NS_SCRIPTABLE NS_IMETHOD SetOnchange(nsIDOMEventListener *aOnchange) { return _to SetOnchange(aOnchange); }
59 :
60 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
61 : #define NS_FORWARD_SAFE_NSIDOMMOZCONNECTION(_to) \
62 : NS_SCRIPTABLE NS_IMETHOD GetBandwidth(double *aBandwidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBandwidth(aBandwidth); } \
63 : NS_SCRIPTABLE NS_IMETHOD GetMetered(bool *aMetered) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMetered(aMetered); } \
64 : NS_SCRIPTABLE NS_IMETHOD GetOnchange(nsIDOMEventListener * *aOnchange) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOnchange(aOnchange); } \
65 : NS_SCRIPTABLE NS_IMETHOD SetOnchange(nsIDOMEventListener *aOnchange) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOnchange(aOnchange); }
66 :
67 : #if 0
68 : /* Use the code below as a template for the implementation class for this interface. */
69 :
70 : /* Header file */
71 : class nsDOMMozConnection : public nsIDOMMozConnection
72 : {
73 : public:
74 : NS_DECL_ISUPPORTS
75 : NS_DECL_NSIDOMMOZCONNECTION
76 :
77 : nsDOMMozConnection();
78 :
79 : private:
80 : ~nsDOMMozConnection();
81 :
82 : protected:
83 : /* additional members */
84 : };
85 :
86 : /* Implementation file */
87 : NS_IMPL_ISUPPORTS1(nsDOMMozConnection, nsIDOMMozConnection)
88 :
89 : nsDOMMozConnection::nsDOMMozConnection()
90 : {
91 : /* member initializers and constructor code */
92 : }
93 :
94 : nsDOMMozConnection::~nsDOMMozConnection()
95 : {
96 : /* destructor code */
97 : }
98 :
99 : /* readonly attribute double bandwidth; */
100 : NS_IMETHODIMP nsDOMMozConnection::GetBandwidth(double *aBandwidth)
101 : {
102 : return NS_ERROR_NOT_IMPLEMENTED;
103 : }
104 :
105 : /* readonly attribute boolean metered; */
106 : NS_IMETHODIMP nsDOMMozConnection::GetMetered(bool *aMetered)
107 : {
108 : return NS_ERROR_NOT_IMPLEMENTED;
109 : }
110 :
111 : /* attribute nsIDOMEventListener onchange; */
112 : NS_IMETHODIMP nsDOMMozConnection::GetOnchange(nsIDOMEventListener * *aOnchange)
113 : {
114 : return NS_ERROR_NOT_IMPLEMENTED;
115 : }
116 : NS_IMETHODIMP nsDOMMozConnection::SetOnchange(nsIDOMEventListener *aOnchange)
117 : {
118 : return NS_ERROR_NOT_IMPLEMENTED;
119 : }
120 :
121 : /* End of implementation class template. */
122 : #endif
123 :
124 :
125 : #endif /* __gen_nsIDOMConnection_h__ */
|