Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIAccessibleValue.idl
3 : */
4 :
5 : #ifndef __gen_nsIAccessibleValue_h__
6 : #define __gen_nsIAccessibleValue_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 :
18 : /* starting interface: nsIAccessibleValue */
19 : #define NS_IACCESSIBLEVALUE_IID_STR "42a1e1dc-58cf-419d-bff0-ed3314c70016"
20 :
21 : #define NS_IACCESSIBLEVALUE_IID \
22 : {0x42a1e1dc, 0x58cf, 0x419d, \
23 : { 0xbf, 0xf0, 0xed, 0x33, 0x14, 0xc7, 0x00, 0x16 }}
24 :
25 0 : class NS_NO_VTABLE nsIAccessibleValue : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IACCESSIBLEVALUE_IID)
29 :
30 : /* readonly attribute double maximumValue; */
31 : NS_IMETHOD GetMaximumValue(double *aMaximumValue) = 0;
32 :
33 : /* readonly attribute double minimumValue; */
34 : NS_IMETHOD GetMinimumValue(double *aMinimumValue) = 0;
35 :
36 : /* attribute double currentValue; */
37 : NS_IMETHOD GetCurrentValue(double *aCurrentValue) = 0;
38 : NS_IMETHOD SetCurrentValue(double aCurrentValue) = 0;
39 :
40 : /* readonly attribute double minimumIncrement; */
41 : NS_IMETHOD GetMinimumIncrement(double *aMinimumIncrement) = 0;
42 :
43 : };
44 :
45 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIAccessibleValue, NS_IACCESSIBLEVALUE_IID)
46 :
47 : /* Use this macro when declaring classes that implement this interface. */
48 : #define NS_DECL_NSIACCESSIBLEVALUE \
49 : NS_IMETHOD GetMaximumValue(double *aMaximumValue) override; \
50 : NS_IMETHOD GetMinimumValue(double *aMinimumValue) override; \
51 : NS_IMETHOD GetCurrentValue(double *aCurrentValue) override; \
52 : NS_IMETHOD SetCurrentValue(double aCurrentValue) override; \
53 : NS_IMETHOD GetMinimumIncrement(double *aMinimumIncrement) override;
54 :
55 : /* Use this macro when declaring the members of this interface when the
56 : class doesn't implement the interface. This is useful for forwarding. */
57 : #define NS_DECL_NON_VIRTUAL_NSIACCESSIBLEVALUE \
58 : nsresult GetMaximumValue(double *aMaximumValue); \
59 : nsresult GetMinimumValue(double *aMinimumValue); \
60 : nsresult GetCurrentValue(double *aCurrentValue); \
61 : nsresult SetCurrentValue(double aCurrentValue); \
62 : nsresult GetMinimumIncrement(double *aMinimumIncrement);
63 :
64 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
65 : #define NS_FORWARD_NSIACCESSIBLEVALUE(_to) \
66 : NS_IMETHOD GetMaximumValue(double *aMaximumValue) override { return _to GetMaximumValue(aMaximumValue); } \
67 : NS_IMETHOD GetMinimumValue(double *aMinimumValue) override { return _to GetMinimumValue(aMinimumValue); } \
68 : NS_IMETHOD GetCurrentValue(double *aCurrentValue) override { return _to GetCurrentValue(aCurrentValue); } \
69 : NS_IMETHOD SetCurrentValue(double aCurrentValue) override { return _to SetCurrentValue(aCurrentValue); } \
70 : NS_IMETHOD GetMinimumIncrement(double *aMinimumIncrement) override { return _to GetMinimumIncrement(aMinimumIncrement); }
71 :
72 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
73 : #define NS_FORWARD_SAFE_NSIACCESSIBLEVALUE(_to) \
74 : NS_IMETHOD GetMaximumValue(double *aMaximumValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMaximumValue(aMaximumValue); } \
75 : NS_IMETHOD GetMinimumValue(double *aMinimumValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMinimumValue(aMinimumValue); } \
76 : NS_IMETHOD GetCurrentValue(double *aCurrentValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCurrentValue(aCurrentValue); } \
77 : NS_IMETHOD SetCurrentValue(double aCurrentValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCurrentValue(aCurrentValue); } \
78 : NS_IMETHOD GetMinimumIncrement(double *aMinimumIncrement) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMinimumIncrement(aMinimumIncrement); }
79 :
80 : #if 0
81 : /* Use the code below as a template for the implementation class for this interface. */
82 :
83 : /* Header file */
84 : class nsAccessibleValue : public nsIAccessibleValue
85 : {
86 : public:
87 : NS_DECL_ISUPPORTS
88 : NS_DECL_NSIACCESSIBLEVALUE
89 :
90 : nsAccessibleValue();
91 :
92 : private:
93 : ~nsAccessibleValue();
94 :
95 : protected:
96 : /* additional members */
97 : };
98 :
99 : /* Implementation file */
100 : NS_IMPL_ISUPPORTS(nsAccessibleValue, nsIAccessibleValue)
101 :
102 : nsAccessibleValue::nsAccessibleValue()
103 : {
104 : /* member initializers and constructor code */
105 : }
106 :
107 : nsAccessibleValue::~nsAccessibleValue()
108 : {
109 : /* destructor code */
110 : }
111 :
112 : /* readonly attribute double maximumValue; */
113 : NS_IMETHODIMP nsAccessibleValue::GetMaximumValue(double *aMaximumValue)
114 : {
115 : return NS_ERROR_NOT_IMPLEMENTED;
116 : }
117 :
118 : /* readonly attribute double minimumValue; */
119 : NS_IMETHODIMP nsAccessibleValue::GetMinimumValue(double *aMinimumValue)
120 : {
121 : return NS_ERROR_NOT_IMPLEMENTED;
122 : }
123 :
124 : /* attribute double currentValue; */
125 : NS_IMETHODIMP nsAccessibleValue::GetCurrentValue(double *aCurrentValue)
126 : {
127 : return NS_ERROR_NOT_IMPLEMENTED;
128 : }
129 : NS_IMETHODIMP nsAccessibleValue::SetCurrentValue(double aCurrentValue)
130 : {
131 : return NS_ERROR_NOT_IMPLEMENTED;
132 : }
133 :
134 : /* readonly attribute double minimumIncrement; */
135 : NS_IMETHODIMP nsAccessibleValue::GetMinimumIncrement(double *aMinimumIncrement)
136 : {
137 : return NS_ERROR_NOT_IMPLEMENTED;
138 : }
139 :
140 : /* End of implementation class template. */
141 : #endif
142 :
143 :
144 : #endif /* __gen_nsIAccessibleValue_h__ */
|