Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIDOMGeoPositionError.idl
3 : */
4 :
5 : #ifndef __gen_nsIDOMGeoPositionError_h__
6 : #define __gen_nsIDOMGeoPositionError_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 : #ifdef GetMessage
18 : #undef GetMessage
19 : #endif
20 :
21 : /* starting interface: nsIDOMGeoPositionError */
22 : #define NS_IDOMGEOPOSITIONERROR_IID_STR "85255cc3-07ba-49fd-bc9b-18d2963daf7f"
23 :
24 : #define NS_IDOMGEOPOSITIONERROR_IID \
25 : {0x85255cc3, 0x07ba, 0x49fd, \
26 : { 0xbc, 0x9b, 0x18, 0xd2, 0x96, 0x3d, 0xaf, 0x7f }}
27 :
28 0 : class NS_NO_VTABLE nsIDOMGeoPositionError : public nsISupports {
29 : public:
30 :
31 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMGEOPOSITIONERROR_IID)
32 :
33 : enum {
34 : PERMISSION_DENIED = 1U,
35 : POSITION_UNAVAILABLE = 2U,
36 : TIMEOUT = 3U
37 : };
38 :
39 : /* readonly attribute short code; */
40 : NS_IMETHOD GetCode(int16_t *aCode) = 0;
41 :
42 : /* readonly attribute AString message; */
43 : NS_IMETHOD GetMessage(nsAString & aMessage) = 0;
44 :
45 : };
46 :
47 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMGeoPositionError, NS_IDOMGEOPOSITIONERROR_IID)
48 :
49 : /* Use this macro when declaring classes that implement this interface. */
50 : #define NS_DECL_NSIDOMGEOPOSITIONERROR \
51 : NS_IMETHOD GetCode(int16_t *aCode) override; \
52 : NS_IMETHOD GetMessage(nsAString & aMessage) override;
53 :
54 : /* Use this macro when declaring the members of this interface when the
55 : class doesn't implement the interface. This is useful for forwarding. */
56 : #define NS_DECL_NON_VIRTUAL_NSIDOMGEOPOSITIONERROR \
57 : nsresult GetCode(int16_t *aCode); \
58 : nsresult GetMessage(nsAString & aMessage);
59 :
60 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
61 : #define NS_FORWARD_NSIDOMGEOPOSITIONERROR(_to) \
62 : NS_IMETHOD GetCode(int16_t *aCode) override { return _to GetCode(aCode); } \
63 : NS_IMETHOD GetMessage(nsAString & aMessage) override { return _to GetMessage(aMessage); }
64 :
65 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
66 : #define NS_FORWARD_SAFE_NSIDOMGEOPOSITIONERROR(_to) \
67 : NS_IMETHOD GetCode(int16_t *aCode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCode(aCode); } \
68 : NS_IMETHOD GetMessage(nsAString & aMessage) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMessage(aMessage); }
69 :
70 : #if 0
71 : /* Use the code below as a template for the implementation class for this interface. */
72 :
73 : /* Header file */
74 : class nsDOMGeoPositionError : public nsIDOMGeoPositionError
75 : {
76 : public:
77 : NS_DECL_ISUPPORTS
78 : NS_DECL_NSIDOMGEOPOSITIONERROR
79 :
80 : nsDOMGeoPositionError();
81 :
82 : private:
83 : ~nsDOMGeoPositionError();
84 :
85 : protected:
86 : /* additional members */
87 : };
88 :
89 : /* Implementation file */
90 : NS_IMPL_ISUPPORTS(nsDOMGeoPositionError, nsIDOMGeoPositionError)
91 :
92 : nsDOMGeoPositionError::nsDOMGeoPositionError()
93 : {
94 : /* member initializers and constructor code */
95 : }
96 :
97 : nsDOMGeoPositionError::~nsDOMGeoPositionError()
98 : {
99 : /* destructor code */
100 : }
101 :
102 : /* readonly attribute short code; */
103 : NS_IMETHODIMP nsDOMGeoPositionError::GetCode(int16_t *aCode)
104 : {
105 : return NS_ERROR_NOT_IMPLEMENTED;
106 : }
107 :
108 : /* readonly attribute AString message; */
109 : NS_IMETHODIMP nsDOMGeoPositionError::GetMessage(nsAString & aMessage)
110 : {
111 : return NS_ERROR_NOT_IMPLEMENTED;
112 : }
113 :
114 : /* End of implementation class template. */
115 : #endif
116 :
117 :
118 : #endif /* __gen_nsIDOMGeoPositionError_h__ */
|