1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/dom/indexedDB/nsIIDBCursorWithValue.idl
3 : */
4 :
5 : #ifndef __gen_nsIIDBCursorWithValue_h__
6 : #define __gen_nsIIDBCursorWithValue_h__
7 :
8 :
9 : #ifndef __gen_nsIIDBCursor_h__
10 : #include "nsIIDBCursor.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: nsIIDBCursorWithValue */
21 : #define NS_IIDBCURSORWITHVALUE_IID_STR "b6b7e08a-4379-4441-a176-447c5c96df69"
22 :
23 : #define NS_IIDBCURSORWITHVALUE_IID \
24 : {0xb6b7e08a, 0x4379, 0x4441, \
25 : { 0xa1, 0x76, 0x44, 0x7c, 0x5c, 0x96, 0xdf, 0x69 }}
26 :
27 163 : class NS_NO_VTABLE NS_SCRIPTABLE nsIIDBCursorWithValue : public nsIIDBCursor {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IIDBCURSORWITHVALUE_IID)
31 :
32 : /* [implicit_jscontext] readonly attribute jsval value; */
33 : NS_SCRIPTABLE NS_IMETHOD GetValue(JSContext* cx, JS::Value *aValue) = 0;
34 :
35 : };
36 :
37 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIIDBCursorWithValue, NS_IIDBCURSORWITHVALUE_IID)
38 :
39 : /* Use this macro when declaring classes that implement this interface. */
40 : #define NS_DECL_NSIIDBCURSORWITHVALUE \
41 : NS_SCRIPTABLE NS_IMETHOD GetValue(JSContext* cx, JS::Value *aValue);
42 :
43 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
44 : #define NS_FORWARD_NSIIDBCURSORWITHVALUE(_to) \
45 : NS_SCRIPTABLE NS_IMETHOD GetValue(JSContext* cx, JS::Value *aValue) { return _to GetValue(cx, aValue); }
46 :
47 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
48 : #define NS_FORWARD_SAFE_NSIIDBCURSORWITHVALUE(_to) \
49 : NS_SCRIPTABLE NS_IMETHOD GetValue(JSContext* cx, JS::Value *aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValue(cx, aValue); }
50 :
51 : #if 0
52 : /* Use the code below as a template for the implementation class for this interface. */
53 :
54 : /* Header file */
55 : class nsIDBCursorWithValue : public nsIIDBCursorWithValue
56 : {
57 : public:
58 : NS_DECL_ISUPPORTS
59 : NS_DECL_NSIIDBCURSORWITHVALUE
60 :
61 : nsIDBCursorWithValue();
62 :
63 : private:
64 : ~nsIDBCursorWithValue();
65 :
66 : protected:
67 : /* additional members */
68 : };
69 :
70 : /* Implementation file */
71 : NS_IMPL_ISUPPORTS1(nsIDBCursorWithValue, nsIIDBCursorWithValue)
72 :
73 : nsIDBCursorWithValue::nsIDBCursorWithValue()
74 : {
75 : /* member initializers and constructor code */
76 : }
77 :
78 : nsIDBCursorWithValue::~nsIDBCursorWithValue()
79 : {
80 : /* destructor code */
81 : }
82 :
83 : /* [implicit_jscontext] readonly attribute jsval value; */
84 : NS_IMETHODIMP nsIDBCursorWithValue::GetValue(JSContext* cx, JS::Value *aValue)
85 : {
86 : return NS_ERROR_NOT_IMPLEMENTED;
87 : }
88 :
89 : /* End of implementation class template. */
90 : #endif
91 :
92 :
93 : #endif /* __gen_nsIIDBCursorWithValue_h__ */
|