/usr/include/firefox/nsIIDBRequest.h is in firefox-dev 11.0+build1-0ubuntu4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM /build/buildd/firefox-11.0+build1/build-tree/mozilla/dom/indexedDB/nsIIDBRequest.idl
*/
#ifndef __gen_nsIIDBRequest_h__
#define __gen_nsIIDBRequest_h__
#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif
#include "jspubtd.h"
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIDOMEventListener; /* forward declaration */
class nsIIDBTransaction; /* forward declaration */
/* starting interface: nsIIDBRequest */
#define NS_IIDBREQUEST_IID_STR "a1e4a0ff-e0b2-431c-89cf-43b078189e27"
#define NS_IIDBREQUEST_IID \
{0xa1e4a0ff, 0xe0b2, 0x431c, \
{ 0x89, 0xcf, 0x43, 0xb0, 0x78, 0x18, 0x9e, 0x27 }}
class NS_NO_VTABLE NS_SCRIPTABLE nsIIDBRequest : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IIDBREQUEST_IID)
enum {
LOADING = 1U,
DONE = 2U
};
/* readonly attribute unsigned short readyState; */
NS_SCRIPTABLE NS_IMETHOD GetReadyState(PRUint16 *aReadyState) = 0;
/* readonly attribute nsISupports source; */
NS_SCRIPTABLE NS_IMETHOD GetSource(nsISupports * *aSource) = 0;
/* readonly attribute nsIIDBTransaction transaction; */
NS_SCRIPTABLE NS_IMETHOD GetTransaction(nsIIDBTransaction * *aTransaction) = 0;
/* readonly attribute jsval result; */
NS_SCRIPTABLE NS_IMETHOD GetResult(JS::Value *aResult) = 0;
/* readonly attribute unsigned short errorCode; */
NS_SCRIPTABLE NS_IMETHOD GetErrorCode(PRUint16 *aErrorCode) = 0;
/* attribute nsIDOMEventListener onsuccess; */
NS_SCRIPTABLE NS_IMETHOD GetOnsuccess(nsIDOMEventListener * *aOnsuccess) = 0;
NS_SCRIPTABLE NS_IMETHOD SetOnsuccess(nsIDOMEventListener *aOnsuccess) = 0;
/* attribute nsIDOMEventListener onerror; */
NS_SCRIPTABLE NS_IMETHOD GetOnerror(nsIDOMEventListener * *aOnerror) = 0;
NS_SCRIPTABLE NS_IMETHOD SetOnerror(nsIDOMEventListener *aOnerror) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIIDBRequest, NS_IIDBREQUEST_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIIDBREQUEST \
NS_SCRIPTABLE NS_IMETHOD GetReadyState(PRUint16 *aReadyState); \
NS_SCRIPTABLE NS_IMETHOD GetSource(nsISupports * *aSource); \
NS_SCRIPTABLE NS_IMETHOD GetTransaction(nsIIDBTransaction * *aTransaction); \
NS_SCRIPTABLE NS_IMETHOD GetResult(JS::Value *aResult); \
NS_SCRIPTABLE NS_IMETHOD GetErrorCode(PRUint16 *aErrorCode); \
NS_SCRIPTABLE NS_IMETHOD GetOnsuccess(nsIDOMEventListener * *aOnsuccess); \
NS_SCRIPTABLE NS_IMETHOD SetOnsuccess(nsIDOMEventListener *aOnsuccess); \
NS_SCRIPTABLE NS_IMETHOD GetOnerror(nsIDOMEventListener * *aOnerror); \
NS_SCRIPTABLE NS_IMETHOD SetOnerror(nsIDOMEventListener *aOnerror);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIIDBREQUEST(_to) \
NS_SCRIPTABLE NS_IMETHOD GetReadyState(PRUint16 *aReadyState) { return _to GetReadyState(aReadyState); } \
NS_SCRIPTABLE NS_IMETHOD GetSource(nsISupports * *aSource) { return _to GetSource(aSource); } \
NS_SCRIPTABLE NS_IMETHOD GetTransaction(nsIIDBTransaction * *aTransaction) { return _to GetTransaction(aTransaction); } \
NS_SCRIPTABLE NS_IMETHOD GetResult(JS::Value *aResult) { return _to GetResult(aResult); } \
NS_SCRIPTABLE NS_IMETHOD GetErrorCode(PRUint16 *aErrorCode) { return _to GetErrorCode(aErrorCode); } \
NS_SCRIPTABLE NS_IMETHOD GetOnsuccess(nsIDOMEventListener * *aOnsuccess) { return _to GetOnsuccess(aOnsuccess); } \
NS_SCRIPTABLE NS_IMETHOD SetOnsuccess(nsIDOMEventListener *aOnsuccess) { return _to SetOnsuccess(aOnsuccess); } \
NS_SCRIPTABLE NS_IMETHOD GetOnerror(nsIDOMEventListener * *aOnerror) { return _to GetOnerror(aOnerror); } \
NS_SCRIPTABLE NS_IMETHOD SetOnerror(nsIDOMEventListener *aOnerror) { return _to SetOnerror(aOnerror); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIIDBREQUEST(_to) \
NS_SCRIPTABLE NS_IMETHOD GetReadyState(PRUint16 *aReadyState) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReadyState(aReadyState); } \
NS_SCRIPTABLE NS_IMETHOD GetSource(nsISupports * *aSource) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSource(aSource); } \
NS_SCRIPTABLE NS_IMETHOD GetTransaction(nsIIDBTransaction * *aTransaction) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTransaction(aTransaction); } \
NS_SCRIPTABLE NS_IMETHOD GetResult(JS::Value *aResult) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResult(aResult); } \
NS_SCRIPTABLE NS_IMETHOD GetErrorCode(PRUint16 *aErrorCode) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetErrorCode(aErrorCode); } \
NS_SCRIPTABLE NS_IMETHOD GetOnsuccess(nsIDOMEventListener * *aOnsuccess) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOnsuccess(aOnsuccess); } \
NS_SCRIPTABLE NS_IMETHOD SetOnsuccess(nsIDOMEventListener *aOnsuccess) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOnsuccess(aOnsuccess); } \
NS_SCRIPTABLE NS_IMETHOD GetOnerror(nsIDOMEventListener * *aOnerror) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOnerror(aOnerror); } \
NS_SCRIPTABLE NS_IMETHOD SetOnerror(nsIDOMEventListener *aOnerror) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOnerror(aOnerror); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsIDBRequest : public nsIIDBRequest
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIIDBREQUEST
nsIDBRequest();
private:
~nsIDBRequest();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsIDBRequest, nsIIDBRequest)
nsIDBRequest::nsIDBRequest()
{
/* member initializers and constructor code */
}
nsIDBRequest::~nsIDBRequest()
{
/* destructor code */
}
/* readonly attribute unsigned short readyState; */
NS_IMETHODIMP nsIDBRequest::GetReadyState(PRUint16 *aReadyState)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsISupports source; */
NS_IMETHODIMP nsIDBRequest::GetSource(nsISupports * *aSource)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIIDBTransaction transaction; */
NS_IMETHODIMP nsIDBRequest::GetTransaction(nsIIDBTransaction * *aTransaction)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute jsval result; */
NS_IMETHODIMP nsIDBRequest::GetResult(JS::Value *aResult)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute unsigned short errorCode; */
NS_IMETHODIMP nsIDBRequest::GetErrorCode(PRUint16 *aErrorCode)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute nsIDOMEventListener onsuccess; */
NS_IMETHODIMP nsIDBRequest::GetOnsuccess(nsIDOMEventListener * *aOnsuccess)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsIDBRequest::SetOnsuccess(nsIDOMEventListener *aOnsuccess)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute nsIDOMEventListener onerror; */
NS_IMETHODIMP nsIDBRequest::GetOnerror(nsIDOMEventListener * *aOnerror)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsIDBRequest::SetOnerror(nsIDOMEventListener *aOnerror)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsIIDBRequest_h__ */
|