1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/dom/indexedDB/nsIIDBKeyRange.idl
3 : */
4 :
5 : #ifndef __gen_nsIIDBKeyRange_h__
6 : #define __gen_nsIIDBKeyRange_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : #include "jspubtd.h"
14 :
15 : /* For IDL files that don't want to include root IDL files. */
16 : #ifndef NS_NO_VTABLE
17 : #define NS_NO_VTABLE
18 : #endif
19 :
20 : /* starting interface: nsIIDBKeyRange */
21 : #define NS_IIDBKEYRANGE_IID_STR "8aeb8660-76b3-4651-b8c2-9894ae6dfe68"
22 :
23 : #define NS_IIDBKEYRANGE_IID \
24 : {0x8aeb8660, 0x76b3, 0x4651, \
25 : { 0xb8, 0xc2, 0x98, 0x94, 0xae, 0x6d, 0xfe, 0x68 }}
26 :
27 374 : class NS_NO_VTABLE NS_SCRIPTABLE nsIIDBKeyRange : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IIDBKEYRANGE_IID)
31 :
32 : /* [implicit_jscontext] readonly attribute jsval lower; */
33 : NS_SCRIPTABLE NS_IMETHOD GetLower(JSContext* cx, JS::Value *aLower) = 0;
34 :
35 : /* [implicit_jscontext] readonly attribute jsval upper; */
36 : NS_SCRIPTABLE NS_IMETHOD GetUpper(JSContext* cx, JS::Value *aUpper) = 0;
37 :
38 : /* readonly attribute boolean lowerOpen; */
39 : NS_SCRIPTABLE NS_IMETHOD GetLowerOpen(bool *aLowerOpen) = 0;
40 :
41 : /* readonly attribute boolean upperOpen; */
42 : NS_SCRIPTABLE NS_IMETHOD GetUpperOpen(bool *aUpperOpen) = 0;
43 :
44 : };
45 :
46 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIIDBKeyRange, NS_IIDBKEYRANGE_IID)
47 :
48 : /* Use this macro when declaring classes that implement this interface. */
49 : #define NS_DECL_NSIIDBKEYRANGE \
50 : NS_SCRIPTABLE NS_IMETHOD GetLower(JSContext* cx, JS::Value *aLower); \
51 : NS_SCRIPTABLE NS_IMETHOD GetUpper(JSContext* cx, JS::Value *aUpper); \
52 : NS_SCRIPTABLE NS_IMETHOD GetLowerOpen(bool *aLowerOpen); \
53 : NS_SCRIPTABLE NS_IMETHOD GetUpperOpen(bool *aUpperOpen);
54 :
55 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
56 : #define NS_FORWARD_NSIIDBKEYRANGE(_to) \
57 : NS_SCRIPTABLE NS_IMETHOD GetLower(JSContext* cx, JS::Value *aLower) { return _to GetLower(cx, aLower); } \
58 : NS_SCRIPTABLE NS_IMETHOD GetUpper(JSContext* cx, JS::Value *aUpper) { return _to GetUpper(cx, aUpper); } \
59 : NS_SCRIPTABLE NS_IMETHOD GetLowerOpen(bool *aLowerOpen) { return _to GetLowerOpen(aLowerOpen); } \
60 : NS_SCRIPTABLE NS_IMETHOD GetUpperOpen(bool *aUpperOpen) { return _to GetUpperOpen(aUpperOpen); }
61 :
62 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
63 : #define NS_FORWARD_SAFE_NSIIDBKEYRANGE(_to) \
64 : NS_SCRIPTABLE NS_IMETHOD GetLower(JSContext* cx, JS::Value *aLower) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLower(cx, aLower); } \
65 : NS_SCRIPTABLE NS_IMETHOD GetUpper(JSContext* cx, JS::Value *aUpper) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUpper(cx, aUpper); } \
66 : NS_SCRIPTABLE NS_IMETHOD GetLowerOpen(bool *aLowerOpen) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLowerOpen(aLowerOpen); } \
67 : NS_SCRIPTABLE NS_IMETHOD GetUpperOpen(bool *aUpperOpen) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUpperOpen(aUpperOpen); }
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 nsIDBKeyRange : public nsIIDBKeyRange
74 : {
75 : public:
76 : NS_DECL_ISUPPORTS
77 : NS_DECL_NSIIDBKEYRANGE
78 :
79 : nsIDBKeyRange();
80 :
81 : private:
82 : ~nsIDBKeyRange();
83 :
84 : protected:
85 : /* additional members */
86 : };
87 :
88 : /* Implementation file */
89 : NS_IMPL_ISUPPORTS1(nsIDBKeyRange, nsIIDBKeyRange)
90 :
91 : nsIDBKeyRange::nsIDBKeyRange()
92 : {
93 : /* member initializers and constructor code */
94 : }
95 :
96 : nsIDBKeyRange::~nsIDBKeyRange()
97 : {
98 : /* destructor code */
99 : }
100 :
101 : /* [implicit_jscontext] readonly attribute jsval lower; */
102 : NS_IMETHODIMP nsIDBKeyRange::GetLower(JSContext* cx, JS::Value *aLower)
103 : {
104 : return NS_ERROR_NOT_IMPLEMENTED;
105 : }
106 :
107 : /* [implicit_jscontext] readonly attribute jsval upper; */
108 : NS_IMETHODIMP nsIDBKeyRange::GetUpper(JSContext* cx, JS::Value *aUpper)
109 : {
110 : return NS_ERROR_NOT_IMPLEMENTED;
111 : }
112 :
113 : /* readonly attribute boolean lowerOpen; */
114 : NS_IMETHODIMP nsIDBKeyRange::GetLowerOpen(bool *aLowerOpen)
115 : {
116 : return NS_ERROR_NOT_IMPLEMENTED;
117 : }
118 :
119 : /* readonly attribute boolean upperOpen; */
120 : NS_IMETHODIMP nsIDBKeyRange::GetUpperOpen(bool *aUpperOpen)
121 : {
122 : return NS_ERROR_NOT_IMPLEMENTED;
123 : }
124 :
125 : /* End of implementation class template. */
126 : #endif
127 :
128 :
129 : #endif /* __gen_nsIIDBKeyRange_h__ */
|