Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/mozIStorageFunction.idl
3 : */
4 :
5 : #ifndef __gen_mozIStorageFunction_h__
6 : #define __gen_mozIStorageFunction_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : #ifndef __gen_mozIStorageValueArray_h__
14 : #include "mozIStorageValueArray.h"
15 : #endif
16 :
17 : /* For IDL files that don't want to include root IDL files. */
18 : #ifndef NS_NO_VTABLE
19 : #define NS_NO_VTABLE
20 : #endif
21 : class mozIStorageConnection; /* forward declaration */
22 :
23 : class nsIArray; /* forward declaration */
24 :
25 : class nsIVariant; /* forward declaration */
26 :
27 :
28 : /* starting interface: mozIStorageFunction */
29 : #define MOZISTORAGEFUNCTION_IID_STR "9ff02465-21cb-49f3-b975-7d5b38ceec73"
30 :
31 : #define MOZISTORAGEFUNCTION_IID \
32 : {0x9ff02465, 0x21cb, 0x49f3, \
33 : { 0xb9, 0x75, 0x7d, 0x5b, 0x38, 0xce, 0xec, 0x73 }}
34 :
35 8 : class NS_NO_VTABLE mozIStorageFunction : public nsISupports {
36 : public:
37 :
38 : NS_DECLARE_STATIC_IID_ACCESSOR(MOZISTORAGEFUNCTION_IID)
39 :
40 : /* nsIVariant onFunctionCall (in mozIStorageValueArray aFunctionArguments); */
41 : NS_IMETHOD OnFunctionCall(mozIStorageValueArray *aFunctionArguments, nsIVariant * *_retval) = 0;
42 :
43 : };
44 :
45 : NS_DEFINE_STATIC_IID_ACCESSOR(mozIStorageFunction, MOZISTORAGEFUNCTION_IID)
46 :
47 : /* Use this macro when declaring classes that implement this interface. */
48 : #define NS_DECL_MOZISTORAGEFUNCTION \
49 : NS_IMETHOD OnFunctionCall(mozIStorageValueArray *aFunctionArguments, nsIVariant * *_retval) override;
50 :
51 : /* Use this macro when declaring the members of this interface when the
52 : class doesn't implement the interface. This is useful for forwarding. */
53 : #define NS_DECL_NON_VIRTUAL_MOZISTORAGEFUNCTION \
54 : nsresult OnFunctionCall(mozIStorageValueArray *aFunctionArguments, nsIVariant * *_retval);
55 :
56 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
57 : #define NS_FORWARD_MOZISTORAGEFUNCTION(_to) \
58 : NS_IMETHOD OnFunctionCall(mozIStorageValueArray *aFunctionArguments, nsIVariant * *_retval) override { return _to OnFunctionCall(aFunctionArguments, _retval); }
59 :
60 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
61 : #define NS_FORWARD_SAFE_MOZISTORAGEFUNCTION(_to) \
62 : NS_IMETHOD OnFunctionCall(mozIStorageValueArray *aFunctionArguments, nsIVariant * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnFunctionCall(aFunctionArguments, _retval); }
63 :
64 : #if 0
65 : /* Use the code below as a template for the implementation class for this interface. */
66 :
67 : /* Header file */
68 : class _MYCLASS_ : public mozIStorageFunction
69 : {
70 : public:
71 : NS_DECL_ISUPPORTS
72 : NS_DECL_MOZISTORAGEFUNCTION
73 :
74 : _MYCLASS_();
75 :
76 : private:
77 : ~_MYCLASS_();
78 :
79 : protected:
80 : /* additional members */
81 : };
82 :
83 : /* Implementation file */
84 : NS_IMPL_ISUPPORTS(_MYCLASS_, mozIStorageFunction)
85 :
86 : _MYCLASS_::_MYCLASS_()
87 : {
88 : /* member initializers and constructor code */
89 : }
90 :
91 : _MYCLASS_::~_MYCLASS_()
92 : {
93 : /* destructor code */
94 : }
95 :
96 : /* nsIVariant onFunctionCall (in mozIStorageValueArray aFunctionArguments); */
97 : NS_IMETHODIMP _MYCLASS_::OnFunctionCall(mozIStorageValueArray *aFunctionArguments, nsIVariant * *_retval)
98 : {
99 : return NS_ERROR_NOT_IMPLEMENTED;
100 : }
101 :
102 : /* End of implementation class template. */
103 : #endif
104 :
105 :
106 : #endif /* __gen_mozIStorageFunction_h__ */
|