Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIDOMGeoPositionCoords.idl
3 : */
4 :
5 : #ifndef __gen_nsIDOMGeoPositionCoords_h__
6 : #define __gen_nsIDOMGeoPositionCoords_h__
7 :
8 :
9 : #ifndef __gen_domstubs_h__
10 : #include "domstubs.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: nsIDOMGeoPositionCoords */
19 : #define NS_IDOMGEOPOSITIONCOORDS_IID_STR "b31702d0-6dac-4fa0-b93b-f043e71c8f9a"
20 :
21 : #define NS_IDOMGEOPOSITIONCOORDS_IID \
22 : {0xb31702d0, 0x6dac, 0x4fa0, \
23 : { 0xb9, 0x3b, 0xf0, 0x43, 0xe7, 0x1c, 0x8f, 0x9a }}
24 :
25 0 : class NS_NO_VTABLE nsIDOMGeoPositionCoords : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMGEOPOSITIONCOORDS_IID)
29 :
30 : /* readonly attribute double latitude; */
31 : NS_IMETHOD GetLatitude(double *aLatitude) = 0;
32 :
33 : /* readonly attribute double longitude; */
34 : NS_IMETHOD GetLongitude(double *aLongitude) = 0;
35 :
36 : /* readonly attribute double altitude; */
37 : NS_IMETHOD GetAltitude(double *aAltitude) = 0;
38 :
39 : /* readonly attribute double accuracy; */
40 : NS_IMETHOD GetAccuracy(double *aAccuracy) = 0;
41 :
42 : /* readonly attribute double altitudeAccuracy; */
43 : NS_IMETHOD GetAltitudeAccuracy(double *aAltitudeAccuracy) = 0;
44 :
45 : /* readonly attribute double heading; */
46 : NS_IMETHOD GetHeading(double *aHeading) = 0;
47 :
48 : /* readonly attribute double speed; */
49 : NS_IMETHOD GetSpeed(double *aSpeed) = 0;
50 :
51 : };
52 :
53 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMGeoPositionCoords, NS_IDOMGEOPOSITIONCOORDS_IID)
54 :
55 : /* Use this macro when declaring classes that implement this interface. */
56 : #define NS_DECL_NSIDOMGEOPOSITIONCOORDS \
57 : NS_IMETHOD GetLatitude(double *aLatitude) override; \
58 : NS_IMETHOD GetLongitude(double *aLongitude) override; \
59 : NS_IMETHOD GetAltitude(double *aAltitude) override; \
60 : NS_IMETHOD GetAccuracy(double *aAccuracy) override; \
61 : NS_IMETHOD GetAltitudeAccuracy(double *aAltitudeAccuracy) override; \
62 : NS_IMETHOD GetHeading(double *aHeading) override; \
63 : NS_IMETHOD GetSpeed(double *aSpeed) override;
64 :
65 : /* Use this macro when declaring the members of this interface when the
66 : class doesn't implement the interface. This is useful for forwarding. */
67 : #define NS_DECL_NON_VIRTUAL_NSIDOMGEOPOSITIONCOORDS \
68 : nsresult GetLatitude(double *aLatitude); \
69 : nsresult GetLongitude(double *aLongitude); \
70 : nsresult GetAltitude(double *aAltitude); \
71 : nsresult GetAccuracy(double *aAccuracy); \
72 : nsresult GetAltitudeAccuracy(double *aAltitudeAccuracy); \
73 : nsresult GetHeading(double *aHeading); \
74 : nsresult GetSpeed(double *aSpeed);
75 :
76 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
77 : #define NS_FORWARD_NSIDOMGEOPOSITIONCOORDS(_to) \
78 : NS_IMETHOD GetLatitude(double *aLatitude) override { return _to GetLatitude(aLatitude); } \
79 : NS_IMETHOD GetLongitude(double *aLongitude) override { return _to GetLongitude(aLongitude); } \
80 : NS_IMETHOD GetAltitude(double *aAltitude) override { return _to GetAltitude(aAltitude); } \
81 : NS_IMETHOD GetAccuracy(double *aAccuracy) override { return _to GetAccuracy(aAccuracy); } \
82 : NS_IMETHOD GetAltitudeAccuracy(double *aAltitudeAccuracy) override { return _to GetAltitudeAccuracy(aAltitudeAccuracy); } \
83 : NS_IMETHOD GetHeading(double *aHeading) override { return _to GetHeading(aHeading); } \
84 : NS_IMETHOD GetSpeed(double *aSpeed) override { return _to GetSpeed(aSpeed); }
85 :
86 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
87 : #define NS_FORWARD_SAFE_NSIDOMGEOPOSITIONCOORDS(_to) \
88 : NS_IMETHOD GetLatitude(double *aLatitude) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLatitude(aLatitude); } \
89 : NS_IMETHOD GetLongitude(double *aLongitude) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLongitude(aLongitude); } \
90 : NS_IMETHOD GetAltitude(double *aAltitude) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAltitude(aAltitude); } \
91 : NS_IMETHOD GetAccuracy(double *aAccuracy) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAccuracy(aAccuracy); } \
92 : NS_IMETHOD GetAltitudeAccuracy(double *aAltitudeAccuracy) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAltitudeAccuracy(aAltitudeAccuracy); } \
93 : NS_IMETHOD GetHeading(double *aHeading) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHeading(aHeading); } \
94 : NS_IMETHOD GetSpeed(double *aSpeed) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSpeed(aSpeed); }
95 :
96 : #if 0
97 : /* Use the code below as a template for the implementation class for this interface. */
98 :
99 : /* Header file */
100 : class nsDOMGeoPositionCoords : public nsIDOMGeoPositionCoords
101 : {
102 : public:
103 : NS_DECL_ISUPPORTS
104 : NS_DECL_NSIDOMGEOPOSITIONCOORDS
105 :
106 : nsDOMGeoPositionCoords();
107 :
108 : private:
109 : ~nsDOMGeoPositionCoords();
110 :
111 : protected:
112 : /* additional members */
113 : };
114 :
115 : /* Implementation file */
116 : NS_IMPL_ISUPPORTS(nsDOMGeoPositionCoords, nsIDOMGeoPositionCoords)
117 :
118 : nsDOMGeoPositionCoords::nsDOMGeoPositionCoords()
119 : {
120 : /* member initializers and constructor code */
121 : }
122 :
123 : nsDOMGeoPositionCoords::~nsDOMGeoPositionCoords()
124 : {
125 : /* destructor code */
126 : }
127 :
128 : /* readonly attribute double latitude; */
129 : NS_IMETHODIMP nsDOMGeoPositionCoords::GetLatitude(double *aLatitude)
130 : {
131 : return NS_ERROR_NOT_IMPLEMENTED;
132 : }
133 :
134 : /* readonly attribute double longitude; */
135 : NS_IMETHODIMP nsDOMGeoPositionCoords::GetLongitude(double *aLongitude)
136 : {
137 : return NS_ERROR_NOT_IMPLEMENTED;
138 : }
139 :
140 : /* readonly attribute double altitude; */
141 : NS_IMETHODIMP nsDOMGeoPositionCoords::GetAltitude(double *aAltitude)
142 : {
143 : return NS_ERROR_NOT_IMPLEMENTED;
144 : }
145 :
146 : /* readonly attribute double accuracy; */
147 : NS_IMETHODIMP nsDOMGeoPositionCoords::GetAccuracy(double *aAccuracy)
148 : {
149 : return NS_ERROR_NOT_IMPLEMENTED;
150 : }
151 :
152 : /* readonly attribute double altitudeAccuracy; */
153 : NS_IMETHODIMP nsDOMGeoPositionCoords::GetAltitudeAccuracy(double *aAltitudeAccuracy)
154 : {
155 : return NS_ERROR_NOT_IMPLEMENTED;
156 : }
157 :
158 : /* readonly attribute double heading; */
159 : NS_IMETHODIMP nsDOMGeoPositionCoords::GetHeading(double *aHeading)
160 : {
161 : return NS_ERROR_NOT_IMPLEMENTED;
162 : }
163 :
164 : /* readonly attribute double speed; */
165 : NS_IMETHODIMP nsDOMGeoPositionCoords::GetSpeed(double *aSpeed)
166 : {
167 : return NS_ERROR_NOT_IMPLEMENTED;
168 : }
169 :
170 : /* End of implementation class template. */
171 : #endif
172 :
173 :
174 : #endif /* __gen_nsIDOMGeoPositionCoords_h__ */
|