1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/dom/interfaces/storage/nsIDOMStorageEvent.idl
3 : */
4 :
5 : #ifndef __gen_nsIDOMStorageEvent_h__
6 : #define __gen_nsIDOMStorageEvent_h__
7 :
8 :
9 : #ifndef __gen_domstubs_h__
10 : #include "domstubs.h"
11 : #endif
12 :
13 : #ifndef __gen_nsIDOMEvent_h__
14 : #include "nsIDOMEvent.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 nsIDOMStorage; /* forward declaration */
22 :
23 :
24 : /* starting interface: nsIDOMStorageEvent */
25 : #define NS_IDOMSTORAGEEVENT_IID_STR "501d7dc8-5b8b-4cce-99ad-16ed1046030a"
26 :
27 : #define NS_IDOMSTORAGEEVENT_IID \
28 : {0x501d7dc8, 0x5b8b, 0x4cce, \
29 : { 0x99, 0xad, 0x16, 0xed, 0x10, 0x46, 0x03, 0x0a }}
30 :
31 30 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMStorageEvent : public nsIDOMEvent {
32 : public:
33 :
34 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMSTORAGEEVENT_IID)
35 :
36 : /* readonly attribute DOMString key; */
37 : NS_SCRIPTABLE NS_IMETHOD GetKey(nsAString & aKey) = 0;
38 :
39 : /* readonly attribute DOMString oldValue; */
40 : NS_SCRIPTABLE NS_IMETHOD GetOldValue(nsAString & aOldValue) = 0;
41 :
42 : /* readonly attribute DOMString newValue; */
43 : NS_SCRIPTABLE NS_IMETHOD GetNewValue(nsAString & aNewValue) = 0;
44 :
45 : /* readonly attribute DOMString url; */
46 : NS_SCRIPTABLE NS_IMETHOD GetUrl(nsAString & aUrl) = 0;
47 :
48 : /* readonly attribute nsIDOMStorage storageArea; */
49 : NS_SCRIPTABLE NS_IMETHOD GetStorageArea(nsIDOMStorage * *aStorageArea) = 0;
50 :
51 : /* void initStorageEvent (in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in DOMString keyArg, in DOMString oldValueArg, in DOMString newValueArg, in DOMString urlArg, in nsIDOMStorage storageAreaArg); */
52 : NS_SCRIPTABLE NS_IMETHOD InitStorageEvent(const nsAString & typeArg, bool canBubbleArg, bool cancelableArg, const nsAString & keyArg, const nsAString & oldValueArg, const nsAString & newValueArg, const nsAString & urlArg, nsIDOMStorage *storageAreaArg) = 0;
53 :
54 : };
55 :
56 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMStorageEvent, NS_IDOMSTORAGEEVENT_IID)
57 :
58 : /* Use this macro when declaring classes that implement this interface. */
59 : #define NS_DECL_NSIDOMSTORAGEEVENT \
60 : NS_SCRIPTABLE NS_IMETHOD GetKey(nsAString & aKey); \
61 : NS_SCRIPTABLE NS_IMETHOD GetOldValue(nsAString & aOldValue); \
62 : NS_SCRIPTABLE NS_IMETHOD GetNewValue(nsAString & aNewValue); \
63 : NS_SCRIPTABLE NS_IMETHOD GetUrl(nsAString & aUrl); \
64 : NS_SCRIPTABLE NS_IMETHOD GetStorageArea(nsIDOMStorage * *aStorageArea); \
65 : NS_SCRIPTABLE NS_IMETHOD InitStorageEvent(const nsAString & typeArg, bool canBubbleArg, bool cancelableArg, const nsAString & keyArg, const nsAString & oldValueArg, const nsAString & newValueArg, const nsAString & urlArg, nsIDOMStorage *storageAreaArg);
66 :
67 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
68 : #define NS_FORWARD_NSIDOMSTORAGEEVENT(_to) \
69 : NS_SCRIPTABLE NS_IMETHOD GetKey(nsAString & aKey) { return _to GetKey(aKey); } \
70 : NS_SCRIPTABLE NS_IMETHOD GetOldValue(nsAString & aOldValue) { return _to GetOldValue(aOldValue); } \
71 : NS_SCRIPTABLE NS_IMETHOD GetNewValue(nsAString & aNewValue) { return _to GetNewValue(aNewValue); } \
72 : NS_SCRIPTABLE NS_IMETHOD GetUrl(nsAString & aUrl) { return _to GetUrl(aUrl); } \
73 : NS_SCRIPTABLE NS_IMETHOD GetStorageArea(nsIDOMStorage * *aStorageArea) { return _to GetStorageArea(aStorageArea); } \
74 : NS_SCRIPTABLE NS_IMETHOD InitStorageEvent(const nsAString & typeArg, bool canBubbleArg, bool cancelableArg, const nsAString & keyArg, const nsAString & oldValueArg, const nsAString & newValueArg, const nsAString & urlArg, nsIDOMStorage *storageAreaArg) { return _to InitStorageEvent(typeArg, canBubbleArg, cancelableArg, keyArg, oldValueArg, newValueArg, urlArg, storageAreaArg); }
75 :
76 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
77 : #define NS_FORWARD_SAFE_NSIDOMSTORAGEEVENT(_to) \
78 : NS_SCRIPTABLE NS_IMETHOD GetKey(nsAString & aKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetKey(aKey); } \
79 : NS_SCRIPTABLE NS_IMETHOD GetOldValue(nsAString & aOldValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOldValue(aOldValue); } \
80 : NS_SCRIPTABLE NS_IMETHOD GetNewValue(nsAString & aNewValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNewValue(aNewValue); } \
81 : NS_SCRIPTABLE NS_IMETHOD GetUrl(nsAString & aUrl) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUrl(aUrl); } \
82 : NS_SCRIPTABLE NS_IMETHOD GetStorageArea(nsIDOMStorage * *aStorageArea) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStorageArea(aStorageArea); } \
83 : NS_SCRIPTABLE NS_IMETHOD InitStorageEvent(const nsAString & typeArg, bool canBubbleArg, bool cancelableArg, const nsAString & keyArg, const nsAString & oldValueArg, const nsAString & newValueArg, const nsAString & urlArg, nsIDOMStorage *storageAreaArg) { return !_to ? NS_ERROR_NULL_POINTER : _to->InitStorageEvent(typeArg, canBubbleArg, cancelableArg, keyArg, oldValueArg, newValueArg, urlArg, storageAreaArg); }
84 :
85 : #if 0
86 : /* Use the code below as a template for the implementation class for this interface. */
87 :
88 : /* Header file */
89 : class nsDOMStorageEvent : public nsIDOMStorageEvent
90 : {
91 : public:
92 : NS_DECL_ISUPPORTS
93 : NS_DECL_NSIDOMSTORAGEEVENT
94 :
95 : nsDOMStorageEvent();
96 :
97 : private:
98 : ~nsDOMStorageEvent();
99 :
100 : protected:
101 : /* additional members */
102 : };
103 :
104 : /* Implementation file */
105 : NS_IMPL_ISUPPORTS1(nsDOMStorageEvent, nsIDOMStorageEvent)
106 :
107 : nsDOMStorageEvent::nsDOMStorageEvent()
108 : {
109 : /* member initializers and constructor code */
110 : }
111 :
112 : nsDOMStorageEvent::~nsDOMStorageEvent()
113 : {
114 : /* destructor code */
115 : }
116 :
117 : /* readonly attribute DOMString key; */
118 : NS_IMETHODIMP nsDOMStorageEvent::GetKey(nsAString & aKey)
119 : {
120 : return NS_ERROR_NOT_IMPLEMENTED;
121 : }
122 :
123 : /* readonly attribute DOMString oldValue; */
124 : NS_IMETHODIMP nsDOMStorageEvent::GetOldValue(nsAString & aOldValue)
125 : {
126 : return NS_ERROR_NOT_IMPLEMENTED;
127 : }
128 :
129 : /* readonly attribute DOMString newValue; */
130 : NS_IMETHODIMP nsDOMStorageEvent::GetNewValue(nsAString & aNewValue)
131 : {
132 : return NS_ERROR_NOT_IMPLEMENTED;
133 : }
134 :
135 : /* readonly attribute DOMString url; */
136 : NS_IMETHODIMP nsDOMStorageEvent::GetUrl(nsAString & aUrl)
137 : {
138 : return NS_ERROR_NOT_IMPLEMENTED;
139 : }
140 :
141 : /* readonly attribute nsIDOMStorage storageArea; */
142 : NS_IMETHODIMP nsDOMStorageEvent::GetStorageArea(nsIDOMStorage * *aStorageArea)
143 : {
144 : return NS_ERROR_NOT_IMPLEMENTED;
145 : }
146 :
147 : /* void initStorageEvent (in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in DOMString keyArg, in DOMString oldValueArg, in DOMString newValueArg, in DOMString urlArg, in nsIDOMStorage storageAreaArg); */
148 : NS_IMETHODIMP nsDOMStorageEvent::InitStorageEvent(const nsAString & typeArg, bool canBubbleArg, bool cancelableArg, const nsAString & keyArg, const nsAString & oldValueArg, const nsAString & newValueArg, const nsAString & urlArg, nsIDOMStorage *storageAreaArg)
149 : {
150 : return NS_ERROR_NOT_IMPLEMENTED;
151 : }
152 :
153 : /* End of implementation class template. */
154 : #endif
155 :
156 :
157 : #endif /* __gen_nsIDOMStorageEvent_h__ */
|