1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/dom/interfaces/geolocation/nsIDOMGeoPosition.idl
3 : */
4 :
5 : #ifndef __gen_nsIDOMGeoPosition_h__
6 : #define __gen_nsIDOMGeoPosition_h__
7 :
8 :
9 : #ifndef __gen_domstubs_h__
10 : #include "domstubs.h"
11 : #endif
12 :
13 : #ifndef __gen_nsIDOMGeoPositionCoords_h__
14 : #include "nsIDOMGeoPositionCoords.h"
15 : #endif
16 :
17 : #ifndef __gen_nsIDOMGeoPositionAddress_h__
18 : #include "nsIDOMGeoPositionAddress.h"
19 : #endif
20 :
21 : /* For IDL files that don't want to include root IDL files. */
22 : #ifndef NS_NO_VTABLE
23 : #define NS_NO_VTABLE
24 : #endif
25 :
26 : /* starting interface: nsIDOMGeoPosition */
27 : #define NS_IDOMGEOPOSITION_IID_STR "23e5269f-4dd7-41c4-b52a-75918694c2de"
28 :
29 : #define NS_IDOMGEOPOSITION_IID \
30 : {0x23e5269f, 0x4dd7, 0x41c4, \
31 : { 0xb5, 0x2a, 0x75, 0x91, 0x86, 0x94, 0xc2, 0xde }}
32 :
33 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMGeoPosition : public nsISupports {
34 : public:
35 :
36 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMGEOPOSITION_IID)
37 :
38 : /* readonly attribute DOMTimeStamp timestamp; */
39 : NS_SCRIPTABLE NS_IMETHOD GetTimestamp(DOMTimeStamp *aTimestamp) = 0;
40 :
41 : /* readonly attribute nsIDOMGeoPositionCoords coords; */
42 : NS_SCRIPTABLE NS_IMETHOD GetCoords(nsIDOMGeoPositionCoords * *aCoords) = 0;
43 :
44 : /* readonly attribute nsIDOMGeoPositionAddress address; */
45 : NS_SCRIPTABLE NS_IMETHOD GetAddress(nsIDOMGeoPositionAddress * *aAddress) = 0;
46 :
47 : };
48 :
49 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMGeoPosition, NS_IDOMGEOPOSITION_IID)
50 :
51 : /* Use this macro when declaring classes that implement this interface. */
52 : #define NS_DECL_NSIDOMGEOPOSITION \
53 : NS_SCRIPTABLE NS_IMETHOD GetTimestamp(DOMTimeStamp *aTimestamp); \
54 : NS_SCRIPTABLE NS_IMETHOD GetCoords(nsIDOMGeoPositionCoords * *aCoords); \
55 : NS_SCRIPTABLE NS_IMETHOD GetAddress(nsIDOMGeoPositionAddress * *aAddress);
56 :
57 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
58 : #define NS_FORWARD_NSIDOMGEOPOSITION(_to) \
59 : NS_SCRIPTABLE NS_IMETHOD GetTimestamp(DOMTimeStamp *aTimestamp) { return _to GetTimestamp(aTimestamp); } \
60 : NS_SCRIPTABLE NS_IMETHOD GetCoords(nsIDOMGeoPositionCoords * *aCoords) { return _to GetCoords(aCoords); } \
61 : NS_SCRIPTABLE NS_IMETHOD GetAddress(nsIDOMGeoPositionAddress * *aAddress) { return _to GetAddress(aAddress); }
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_NSIDOMGEOPOSITION(_to) \
65 : NS_SCRIPTABLE NS_IMETHOD GetTimestamp(DOMTimeStamp *aTimestamp) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTimestamp(aTimestamp); } \
66 : NS_SCRIPTABLE NS_IMETHOD GetCoords(nsIDOMGeoPositionCoords * *aCoords) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCoords(aCoords); } \
67 : NS_SCRIPTABLE NS_IMETHOD GetAddress(nsIDOMGeoPositionAddress * *aAddress) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAddress(aAddress); }
68 :
69 : #if 0
70 : /* Use the code below as a template for the implementation class for this interface. */
71 :
72 : /* Header file */
73 : class nsDOMGeoPosition : public nsIDOMGeoPosition
74 : {
75 : public:
76 : NS_DECL_ISUPPORTS
77 : NS_DECL_NSIDOMGEOPOSITION
78 :
79 : nsDOMGeoPosition();
80 :
81 : private:
82 : ~nsDOMGeoPosition();
83 :
84 : protected:
85 : /* additional members */
86 : };
87 :
88 : /* Implementation file */
89 : NS_IMPL_ISUPPORTS1(nsDOMGeoPosition, nsIDOMGeoPosition)
90 :
91 : nsDOMGeoPosition::nsDOMGeoPosition()
92 : {
93 : /* member initializers and constructor code */
94 : }
95 :
96 : nsDOMGeoPosition::~nsDOMGeoPosition()
97 : {
98 : /* destructor code */
99 : }
100 :
101 : /* readonly attribute DOMTimeStamp timestamp; */
102 : NS_IMETHODIMP nsDOMGeoPosition::GetTimestamp(DOMTimeStamp *aTimestamp)
103 : {
104 : return NS_ERROR_NOT_IMPLEMENTED;
105 : }
106 :
107 : /* readonly attribute nsIDOMGeoPositionCoords coords; */
108 : NS_IMETHODIMP nsDOMGeoPosition::GetCoords(nsIDOMGeoPositionCoords * *aCoords)
109 : {
110 : return NS_ERROR_NOT_IMPLEMENTED;
111 : }
112 :
113 : /* readonly attribute nsIDOMGeoPositionAddress address; */
114 : NS_IMETHODIMP nsDOMGeoPosition::GetAddress(nsIDOMGeoPositionAddress * *aAddress)
115 : {
116 : return NS_ERROR_NOT_IMPLEMENTED;
117 : }
118 :
119 : /* End of implementation class template. */
120 : #endif
121 :
122 :
123 : #endif /* __gen_nsIDOMGeoPosition_h__ */
|