/usr/include/thunderbird-11.0.1/nsIScriptError.h is in thunderbird-dev 11.0.1+build1-0ubuntu2.
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 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM /build/buildd/thunderbird-11.0.1+build1/build-tree/mozilla/mozilla/js/xpconnect/idl/nsIScriptError.idl
*/
#ifndef __gen_nsIScriptError_h__
#define __gen_nsIScriptError_h__
#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif
#ifndef __gen_nsIConsoleMessage_h__
#include "nsIConsoleMessage.h"
#endif
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
/* starting interface: nsIScriptError */
#define NS_ISCRIPTERROR_IID_STR "537ff844-c325-4047-92f5-e1c292d108bc"
#define NS_ISCRIPTERROR_IID \
{0x537ff844, 0xc325, 0x4047, \
{ 0x92, 0xf5, 0xe1, 0xc2, 0x92, 0xd1, 0x08, 0xbc }}
class NS_NO_VTABLE NS_SCRIPTABLE nsIScriptError : public nsIConsoleMessage {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISCRIPTERROR_IID)
enum {
errorFlag = 0U,
warningFlag = 1U,
exceptionFlag = 2U,
strictFlag = 4U
};
/* readonly attribute AString errorMessage; */
NS_SCRIPTABLE NS_IMETHOD GetErrorMessage(nsAString & aErrorMessage) = 0;
/* readonly attribute AString sourceName; */
NS_SCRIPTABLE NS_IMETHOD GetSourceName(nsAString & aSourceName) = 0;
/* readonly attribute AString sourceLine; */
NS_SCRIPTABLE NS_IMETHOD GetSourceLine(nsAString & aSourceLine) = 0;
/* readonly attribute PRUint32 lineNumber; */
NS_SCRIPTABLE NS_IMETHOD GetLineNumber(PRUint32 *aLineNumber) = 0;
/* readonly attribute PRUint32 columnNumber; */
NS_SCRIPTABLE NS_IMETHOD GetColumnNumber(PRUint32 *aColumnNumber) = 0;
/* readonly attribute PRUint32 flags; */
NS_SCRIPTABLE NS_IMETHOD GetFlags(PRUint32 *aFlags) = 0;
/* readonly attribute string category; */
NS_SCRIPTABLE NS_IMETHOD GetCategory(char * *aCategory) = 0;
/* readonly attribute long long timeStamp; */
NS_SCRIPTABLE NS_IMETHOD GetTimeStamp(PRInt64 *aTimeStamp) = 0;
/* void init (in wstring message, in wstring sourceName, in wstring sourceLine, in PRUint32 lineNumber, in PRUint32 columnNumber, in PRUint32 flags, in string category); */
NS_SCRIPTABLE NS_IMETHOD Init(const PRUnichar * message, const PRUnichar * sourceName, const PRUnichar * sourceLine, PRUint32 lineNumber, PRUint32 columnNumber, PRUint32 flags, const char * category) = 0;
/* AUTF8String toString (); */
NS_SCRIPTABLE NS_IMETHOD ToString(nsACString & _retval NS_OUTPARAM) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIScriptError, NS_ISCRIPTERROR_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSISCRIPTERROR \
NS_SCRIPTABLE NS_IMETHOD GetErrorMessage(nsAString & aErrorMessage); \
NS_SCRIPTABLE NS_IMETHOD GetSourceName(nsAString & aSourceName); \
NS_SCRIPTABLE NS_IMETHOD GetSourceLine(nsAString & aSourceLine); \
NS_SCRIPTABLE NS_IMETHOD GetLineNumber(PRUint32 *aLineNumber); \
NS_SCRIPTABLE NS_IMETHOD GetColumnNumber(PRUint32 *aColumnNumber); \
NS_SCRIPTABLE NS_IMETHOD GetFlags(PRUint32 *aFlags); \
NS_SCRIPTABLE NS_IMETHOD GetCategory(char * *aCategory); \
NS_SCRIPTABLE NS_IMETHOD GetTimeStamp(PRInt64 *aTimeStamp); \
NS_SCRIPTABLE NS_IMETHOD Init(const PRUnichar * message, const PRUnichar * sourceName, const PRUnichar * sourceLine, PRUint32 lineNumber, PRUint32 columnNumber, PRUint32 flags, const char * category); \
NS_SCRIPTABLE NS_IMETHOD ToString(nsACString & _retval NS_OUTPARAM);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSISCRIPTERROR(_to) \
NS_SCRIPTABLE NS_IMETHOD GetErrorMessage(nsAString & aErrorMessage) { return _to GetErrorMessage(aErrorMessage); } \
NS_SCRIPTABLE NS_IMETHOD GetSourceName(nsAString & aSourceName) { return _to GetSourceName(aSourceName); } \
NS_SCRIPTABLE NS_IMETHOD GetSourceLine(nsAString & aSourceLine) { return _to GetSourceLine(aSourceLine); } \
NS_SCRIPTABLE NS_IMETHOD GetLineNumber(PRUint32 *aLineNumber) { return _to GetLineNumber(aLineNumber); } \
NS_SCRIPTABLE NS_IMETHOD GetColumnNumber(PRUint32 *aColumnNumber) { return _to GetColumnNumber(aColumnNumber); } \
NS_SCRIPTABLE NS_IMETHOD GetFlags(PRUint32 *aFlags) { return _to GetFlags(aFlags); } \
NS_SCRIPTABLE NS_IMETHOD GetCategory(char * *aCategory) { return _to GetCategory(aCategory); } \
NS_SCRIPTABLE NS_IMETHOD GetTimeStamp(PRInt64 *aTimeStamp) { return _to GetTimeStamp(aTimeStamp); } \
NS_SCRIPTABLE NS_IMETHOD Init(const PRUnichar * message, const PRUnichar * sourceName, const PRUnichar * sourceLine, PRUint32 lineNumber, PRUint32 columnNumber, PRUint32 flags, const char * category) { return _to Init(message, sourceName, sourceLine, lineNumber, columnNumber, flags, category); } \
NS_SCRIPTABLE NS_IMETHOD ToString(nsACString & _retval NS_OUTPARAM) { return _to ToString(_retval); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSISCRIPTERROR(_to) \
NS_SCRIPTABLE NS_IMETHOD GetErrorMessage(nsAString & aErrorMessage) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetErrorMessage(aErrorMessage); } \
NS_SCRIPTABLE NS_IMETHOD GetSourceName(nsAString & aSourceName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSourceName(aSourceName); } \
NS_SCRIPTABLE NS_IMETHOD GetSourceLine(nsAString & aSourceLine) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSourceLine(aSourceLine); } \
NS_SCRIPTABLE NS_IMETHOD GetLineNumber(PRUint32 *aLineNumber) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLineNumber(aLineNumber); } \
NS_SCRIPTABLE NS_IMETHOD GetColumnNumber(PRUint32 *aColumnNumber) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetColumnNumber(aColumnNumber); } \
NS_SCRIPTABLE NS_IMETHOD GetFlags(PRUint32 *aFlags) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFlags(aFlags); } \
NS_SCRIPTABLE NS_IMETHOD GetCategory(char * *aCategory) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCategory(aCategory); } \
NS_SCRIPTABLE NS_IMETHOD GetTimeStamp(PRInt64 *aTimeStamp) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTimeStamp(aTimeStamp); } \
NS_SCRIPTABLE NS_IMETHOD Init(const PRUnichar * message, const PRUnichar * sourceName, const PRUnichar * sourceLine, PRUint32 lineNumber, PRUint32 columnNumber, PRUint32 flags, const char * category) { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(message, sourceName, sourceLine, lineNumber, columnNumber, flags, category); } \
NS_SCRIPTABLE NS_IMETHOD ToString(nsACString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsScriptError : public nsIScriptError
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSISCRIPTERROR
nsScriptError();
private:
~nsScriptError();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsScriptError, nsIScriptError)
nsScriptError::nsScriptError()
{
/* member initializers and constructor code */
}
nsScriptError::~nsScriptError()
{
/* destructor code */
}
/* readonly attribute AString errorMessage; */
NS_IMETHODIMP nsScriptError::GetErrorMessage(nsAString & aErrorMessage)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute AString sourceName; */
NS_IMETHODIMP nsScriptError::GetSourceName(nsAString & aSourceName)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute AString sourceLine; */
NS_IMETHODIMP nsScriptError::GetSourceLine(nsAString & aSourceLine)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute PRUint32 lineNumber; */
NS_IMETHODIMP nsScriptError::GetLineNumber(PRUint32 *aLineNumber)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute PRUint32 columnNumber; */
NS_IMETHODIMP nsScriptError::GetColumnNumber(PRUint32 *aColumnNumber)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute PRUint32 flags; */
NS_IMETHODIMP nsScriptError::GetFlags(PRUint32 *aFlags)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute string category; */
NS_IMETHODIMP nsScriptError::GetCategory(char * *aCategory)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute long long timeStamp; */
NS_IMETHODIMP nsScriptError::GetTimeStamp(PRInt64 *aTimeStamp)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void init (in wstring message, in wstring sourceName, in wstring sourceLine, in PRUint32 lineNumber, in PRUint32 columnNumber, in PRUint32 flags, in string category); */
NS_IMETHODIMP nsScriptError::Init(const PRUnichar * message, const PRUnichar * sourceName, const PRUnichar * sourceLine, PRUint32 lineNumber, PRUint32 columnNumber, PRUint32 flags, const char * category)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* AUTF8String toString (); */
NS_IMETHODIMP nsScriptError::ToString(nsACString & _retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: nsIScriptError2 */
#define NS_ISCRIPTERROR2_IID_STR "444c5e66-a85d-4a3b-83ce-4c71882b09a3"
#define NS_ISCRIPTERROR2_IID \
{0x444c5e66, 0xa85d, 0x4a3b, \
{ 0x83, 0xce, 0x4c, 0x71, 0x88, 0x2b, 0x09, 0xa3 }}
class NS_NO_VTABLE NS_SCRIPTABLE nsIScriptError2 : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISCRIPTERROR2_IID)
/* readonly attribute unsigned long long outerWindowID; */
NS_SCRIPTABLE NS_IMETHOD GetOuterWindowID(PRUint64 *aOuterWindowID) = 0;
/* readonly attribute unsigned long long innerWindowID; */
NS_SCRIPTABLE NS_IMETHOD GetInnerWindowID(PRUint64 *aInnerWindowID) = 0;
/* void initWithWindowID (in wstring message, in wstring sourceName, in wstring sourceLine, in PRUint32 lineNumber, in PRUint32 columnNumber, in PRUint32 flags, in string category, in unsigned long long innerWindowID); */
NS_SCRIPTABLE NS_IMETHOD InitWithWindowID(const PRUnichar * message, const PRUnichar * sourceName, const PRUnichar * sourceLine, PRUint32 lineNumber, PRUint32 columnNumber, PRUint32 flags, const char * category, PRUint64 innerWindowID) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIScriptError2, NS_ISCRIPTERROR2_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSISCRIPTERROR2 \
NS_SCRIPTABLE NS_IMETHOD GetOuterWindowID(PRUint64 *aOuterWindowID); \
NS_SCRIPTABLE NS_IMETHOD GetInnerWindowID(PRUint64 *aInnerWindowID); \
NS_SCRIPTABLE NS_IMETHOD InitWithWindowID(const PRUnichar * message, const PRUnichar * sourceName, const PRUnichar * sourceLine, PRUint32 lineNumber, PRUint32 columnNumber, PRUint32 flags, const char * category, PRUint64 innerWindowID);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSISCRIPTERROR2(_to) \
NS_SCRIPTABLE NS_IMETHOD GetOuterWindowID(PRUint64 *aOuterWindowID) { return _to GetOuterWindowID(aOuterWindowID); } \
NS_SCRIPTABLE NS_IMETHOD GetInnerWindowID(PRUint64 *aInnerWindowID) { return _to GetInnerWindowID(aInnerWindowID); } \
NS_SCRIPTABLE NS_IMETHOD InitWithWindowID(const PRUnichar * message, const PRUnichar * sourceName, const PRUnichar * sourceLine, PRUint32 lineNumber, PRUint32 columnNumber, PRUint32 flags, const char * category, PRUint64 innerWindowID) { return _to InitWithWindowID(message, sourceName, sourceLine, lineNumber, columnNumber, flags, category, innerWindowID); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSISCRIPTERROR2(_to) \
NS_SCRIPTABLE NS_IMETHOD GetOuterWindowID(PRUint64 *aOuterWindowID) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOuterWindowID(aOuterWindowID); } \
NS_SCRIPTABLE NS_IMETHOD GetInnerWindowID(PRUint64 *aInnerWindowID) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInnerWindowID(aInnerWindowID); } \
NS_SCRIPTABLE NS_IMETHOD InitWithWindowID(const PRUnichar * message, const PRUnichar * sourceName, const PRUnichar * sourceLine, PRUint32 lineNumber, PRUint32 columnNumber, PRUint32 flags, const char * category, PRUint64 innerWindowID) { return !_to ? NS_ERROR_NULL_POINTER : _to->InitWithWindowID(message, sourceName, sourceLine, lineNumber, columnNumber, flags, category, innerWindowID); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsScriptError2 : public nsIScriptError2
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSISCRIPTERROR2
nsScriptError2();
private:
~nsScriptError2();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsScriptError2, nsIScriptError2)
nsScriptError2::nsScriptError2()
{
/* member initializers and constructor code */
}
nsScriptError2::~nsScriptError2()
{
/* destructor code */
}
/* readonly attribute unsigned long long outerWindowID; */
NS_IMETHODIMP nsScriptError2::GetOuterWindowID(PRUint64 *aOuterWindowID)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute unsigned long long innerWindowID; */
NS_IMETHODIMP nsScriptError2::GetInnerWindowID(PRUint64 *aInnerWindowID)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void initWithWindowID (in wstring message, in wstring sourceName, in wstring sourceLine, in PRUint32 lineNumber, in PRUint32 columnNumber, in PRUint32 flags, in string category, in unsigned long long innerWindowID); */
NS_IMETHODIMP nsScriptError2::InitWithWindowID(const PRUnichar * message, const PRUnichar * sourceName, const PRUnichar * sourceLine, PRUint32 lineNumber, PRUint32 columnNumber, PRUint32 flags, const char * category, PRUint64 innerWindowID)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#define NS_SCRIPTERROR_CLASSNAME "Script Error"
#define NS_SCRIPTERROR_CID \
{ 0xe38e53b9, 0x5bb0, 0x456a, { 0xb5, 0x53, 0x57, 0x93, 0x70, 0xcb, 0x15, 0x67 }}
#define NS_SCRIPTERROR_CONTRACTID "@mozilla.org/scripterror;1"
#endif /* __gen_nsIScriptError_h__ */
|