LCOV - app.info - objdir/dist/include/nsIScriptError.h

LCOV - code coverage report
| Current view: | directory - objdir/dist/include - nsIScriptError.h (source / functions) |  | Found | Hit | Coverage |
| Test: | app.info | Lines: | 1 | 1 | 100.0 %
| Date: | 2012-04-21 | Functions: | 1 | 1 | 100.0 %

           1                 : /*
           2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-aurora-lnx-codecoverage/build/js/xpconnect/idl/nsIScriptError.idl
           3                 :  */
           4                 :
           5                 : #ifndef __gen_nsIScriptError_h__
           6                 : #define __gen_nsIScriptError_h__
           7                 :
           8                 :
           9                 : #ifndef __gen_nsISupports_h__
          10                 : #include "nsISupports.h"
          11                 : #endif
          12                 :
          13                 : #ifndef __gen_nsIConsoleMessage_h__
          14                 : #include "nsIConsoleMessage.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                 :
          22                 : /* starting interface:    nsIScriptError */
          23                 : #define NS_ISCRIPTERROR_IID_STR "c6dd877a-87b6-47cc-968d-90f4514ec65f"
          24                 :
          25                 : #define NS_ISCRIPTERROR_IID \
          26                 :   {0xc6dd877a, 0x87b6, 0x47cc, \
          27                 :     { 0x96, 0x8d, 0x90, 0xf4, 0x51, 0x4e, 0xc6, 0x5f }}
          28                 :
          29            3311 : class NS_NO_VTABLE NS_SCRIPTABLE nsIScriptError : public nsIConsoleMessage {
          30                 :  public:
          31                 :
          32                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISCRIPTERROR_IID)
          33                 :
          34                 :   enum {
          35                 :     errorFlag = 0U,
          36                 :     warningFlag = 1U,
          37                 :     exceptionFlag = 2U,
          38                 :     strictFlag = 4U
          39                 :   };
          40                 :
          41                 :   /* readonly attribute AString errorMessage; */
          42                 :   NS_SCRIPTABLE NS_IMETHOD GetErrorMessage(nsAString & aErrorMessage) = 0;
          43                 :
          44                 :   /* readonly attribute AString sourceName; */
          45                 :   NS_SCRIPTABLE NS_IMETHOD GetSourceName(nsAString & aSourceName) = 0;
          46                 :
          47                 :   /* readonly attribute AString sourceLine; */
          48                 :   NS_SCRIPTABLE NS_IMETHOD GetSourceLine(nsAString & aSourceLine) = 0;
          49                 :
          50                 :   /* readonly attribute PRUint32 lineNumber; */
          51                 :   NS_SCRIPTABLE NS_IMETHOD GetLineNumber(PRUint32 *aLineNumber) = 0;
          52                 :
          53                 :   /* readonly attribute PRUint32 columnNumber; */
          54                 :   NS_SCRIPTABLE NS_IMETHOD GetColumnNumber(PRUint32 *aColumnNumber) = 0;
          55                 :
          56                 :   /* readonly attribute PRUint32 flags; */
          57                 :   NS_SCRIPTABLE NS_IMETHOD GetFlags(PRUint32 *aFlags) = 0;
          58                 :
          59                 :   /* readonly attribute string category; */
          60                 :   NS_SCRIPTABLE NS_IMETHOD GetCategory(char * *aCategory) = 0;
          61                 :
          62                 :   /* readonly attribute long long timeStamp; */
          63                 :   NS_SCRIPTABLE NS_IMETHOD GetTimeStamp(PRInt64 *aTimeStamp) = 0;
          64                 :
          65                 :   /* readonly attribute unsigned long long outerWindowID; */
          66                 :   NS_SCRIPTABLE NS_IMETHOD GetOuterWindowID(PRUint64 *aOuterWindowID) = 0;
          67                 :
          68                 :   /* readonly attribute unsigned long long innerWindowID; */
          69                 :   NS_SCRIPTABLE NS_IMETHOD GetInnerWindowID(PRUint64 *aInnerWindowID) = 0;
          70                 :
          71                 :   /* void init (in wstring message, in wstring sourceName, in wstring sourceLine, in PRUint32 lineNumber, in PRUint32 columnNumber, in PRUint32 flags, in string category); */
          72                 :   NS_SCRIPTABLE NS_IMETHOD Init(const PRUnichar * message, const PRUnichar * sourceName, const PRUnichar * sourceLine, PRUint32 lineNumber, PRUint32 columnNumber, PRUint32 flags, const char * category) = 0;
          73                 :
          74                 :   /* 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); */
          75                 :   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;
          76                 :
          77                 :   /* AUTF8String toString (); */
          78                 :   NS_SCRIPTABLE NS_IMETHOD ToString(nsACString & _retval NS_OUTPARAM) = 0;
          79                 :
          80                 : };
          81                 :
          82                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIScriptError, NS_ISCRIPTERROR_IID)
          83                 :
          84                 : /* Use this macro when declaring classes that implement this interface. */
          85                 : #define NS_DECL_NSISCRIPTERROR \
          86                 :   NS_SCRIPTABLE NS_IMETHOD GetErrorMessage(nsAString & aErrorMessage); \
          87                 :   NS_SCRIPTABLE NS_IMETHOD GetSourceName(nsAString & aSourceName); \
          88                 :   NS_SCRIPTABLE NS_IMETHOD GetSourceLine(nsAString & aSourceLine); \
          89                 :   NS_SCRIPTABLE NS_IMETHOD GetLineNumber(PRUint32 *aLineNumber); \
          90                 :   NS_SCRIPTABLE NS_IMETHOD GetColumnNumber(PRUint32 *aColumnNumber); \
          91                 :   NS_SCRIPTABLE NS_IMETHOD GetFlags(PRUint32 *aFlags); \
          92                 :   NS_SCRIPTABLE NS_IMETHOD GetCategory(char * *aCategory); \
          93                 :   NS_SCRIPTABLE NS_IMETHOD GetTimeStamp(PRInt64 *aTimeStamp); \
          94                 :   NS_SCRIPTABLE NS_IMETHOD GetOuterWindowID(PRUint64 *aOuterWindowID); \
          95                 :   NS_SCRIPTABLE NS_IMETHOD GetInnerWindowID(PRUint64 *aInnerWindowID); \
          96                 :   NS_SCRIPTABLE NS_IMETHOD Init(const PRUnichar * message, const PRUnichar * sourceName, const PRUnichar * sourceLine, PRUint32 lineNumber, PRUint32 columnNumber, PRUint32 flags, const char * category); \
          97                 :   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); \
          98                 :   NS_SCRIPTABLE NS_IMETHOD ToString(nsACString & _retval NS_OUTPARAM);
          99                 :
         100                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
         101                 : #define NS_FORWARD_NSISCRIPTERROR(_to) \
         102                 :   NS_SCRIPTABLE NS_IMETHOD GetErrorMessage(nsAString & aErrorMessage) { return _to GetErrorMessage(aErrorMessage); } \
         103                 :   NS_SCRIPTABLE NS_IMETHOD GetSourceName(nsAString & aSourceName) { return _to GetSourceName(aSourceName); } \
         104                 :   NS_SCRIPTABLE NS_IMETHOD GetSourceLine(nsAString & aSourceLine) { return _to GetSourceLine(aSourceLine); } \
         105                 :   NS_SCRIPTABLE NS_IMETHOD GetLineNumber(PRUint32 *aLineNumber) { return _to GetLineNumber(aLineNumber); } \
         106                 :   NS_SCRIPTABLE NS_IMETHOD GetColumnNumber(PRUint32 *aColumnNumber) { return _to GetColumnNumber(aColumnNumber); } \
         107                 :   NS_SCRIPTABLE NS_IMETHOD GetFlags(PRUint32 *aFlags) { return _to GetFlags(aFlags); } \
         108                 :   NS_SCRIPTABLE NS_IMETHOD GetCategory(char * *aCategory) { return _to GetCategory(aCategory); } \
         109                 :   NS_SCRIPTABLE NS_IMETHOD GetTimeStamp(PRInt64 *aTimeStamp) { return _to GetTimeStamp(aTimeStamp); } \
         110                 :   NS_SCRIPTABLE NS_IMETHOD GetOuterWindowID(PRUint64 *aOuterWindowID) { return _to GetOuterWindowID(aOuterWindowID); } \
         111                 :   NS_SCRIPTABLE NS_IMETHOD GetInnerWindowID(PRUint64 *aInnerWindowID) { return _to GetInnerWindowID(aInnerWindowID); } \
         112                 :   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); } \
         113                 :   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); } \
         114                 :   NS_SCRIPTABLE NS_IMETHOD ToString(nsACString & _retval NS_OUTPARAM) { return _to ToString(_retval); }
         115                 :
         116                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
         117                 : #define NS_FORWARD_SAFE_NSISCRIPTERROR(_to) \
         118                 :   NS_SCRIPTABLE NS_IMETHOD GetErrorMessage(nsAString & aErrorMessage) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetErrorMessage(aErrorMessage); } \
         119                 :   NS_SCRIPTABLE NS_IMETHOD GetSourceName(nsAString & aSourceName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSourceName(aSourceName); } \
         120                 :   NS_SCRIPTABLE NS_IMETHOD GetSourceLine(nsAString & aSourceLine) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSourceLine(aSourceLine); } \
         121                 :   NS_SCRIPTABLE NS_IMETHOD GetLineNumber(PRUint32 *aLineNumber) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLineNumber(aLineNumber); } \
         122                 :   NS_SCRIPTABLE NS_IMETHOD GetColumnNumber(PRUint32 *aColumnNumber) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetColumnNumber(aColumnNumber); } \
         123                 :   NS_SCRIPTABLE NS_IMETHOD GetFlags(PRUint32 *aFlags) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFlags(aFlags); } \
         124                 :   NS_SCRIPTABLE NS_IMETHOD GetCategory(char * *aCategory) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCategory(aCategory); } \
         125                 :   NS_SCRIPTABLE NS_IMETHOD GetTimeStamp(PRInt64 *aTimeStamp) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTimeStamp(aTimeStamp); } \
         126                 :   NS_SCRIPTABLE NS_IMETHOD GetOuterWindowID(PRUint64 *aOuterWindowID) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOuterWindowID(aOuterWindowID); } \
         127                 :   NS_SCRIPTABLE NS_IMETHOD GetInnerWindowID(PRUint64 *aInnerWindowID) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInnerWindowID(aInnerWindowID); } \
         128                 :   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); } \
         129                 :   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); } \
         130                 :   NS_SCRIPTABLE NS_IMETHOD ToString(nsACString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); }
         131                 :
         132                 : #if 0
         133                 : /* Use the code below as a template for the implementation class for this interface. */
         134                 :
         135                 : /* Header file */
         136                 : class nsScriptError : public nsIScriptError
         137                 : {
         138                 : public:
         139                 :   NS_DECL_ISUPPORTS
         140                 :   NS_DECL_NSISCRIPTERROR
         141                 :
         142                 :   nsScriptError();
         143                 :
         144                 : private:
         145                 :   ~nsScriptError();
         146                 :
         147                 : protected:
         148                 :   /* additional members */
         149                 : };
         150                 :
         151                 : /* Implementation file */
         152                 : NS_IMPL_ISUPPORTS1(nsScriptError, nsIScriptError)
         153                 :
         154                 : nsScriptError::nsScriptError()
         155                 : {
         156                 :   /* member initializers and constructor code */
         157                 : }
         158                 :
         159                 : nsScriptError::~nsScriptError()
         160                 : {
         161                 :   /* destructor code */
         162                 : }
         163                 :
         164                 : /* readonly attribute AString errorMessage; */
         165                 : NS_IMETHODIMP nsScriptError::GetErrorMessage(nsAString & aErrorMessage)
         166                 : {
         167                 :     return NS_ERROR_NOT_IMPLEMENTED;
         168                 : }
         169                 :
         170                 : /* readonly attribute AString sourceName; */
         171                 : NS_IMETHODIMP nsScriptError::GetSourceName(nsAString & aSourceName)
         172                 : {
         173                 :     return NS_ERROR_NOT_IMPLEMENTED;
         174                 : }
         175                 :
         176                 : /* readonly attribute AString sourceLine; */
         177                 : NS_IMETHODIMP nsScriptError::GetSourceLine(nsAString & aSourceLine)
         178                 : {
         179                 :     return NS_ERROR_NOT_IMPLEMENTED;
         180                 : }
         181                 :
         182                 : /* readonly attribute PRUint32 lineNumber; */
         183                 : NS_IMETHODIMP nsScriptError::GetLineNumber(PRUint32 *aLineNumber)
         184                 : {
         185                 :     return NS_ERROR_NOT_IMPLEMENTED;
         186                 : }
         187                 :
         188                 : /* readonly attribute PRUint32 columnNumber; */
         189                 : NS_IMETHODIMP nsScriptError::GetColumnNumber(PRUint32 *aColumnNumber)
         190                 : {
         191                 :     return NS_ERROR_NOT_IMPLEMENTED;
         192                 : }
         193                 :
         194                 : /* readonly attribute PRUint32 flags; */
         195                 : NS_IMETHODIMP nsScriptError::GetFlags(PRUint32 *aFlags)
         196                 : {
         197                 :     return NS_ERROR_NOT_IMPLEMENTED;
         198                 : }
         199                 :
         200                 : /* readonly attribute string category; */
         201                 : NS_IMETHODIMP nsScriptError::GetCategory(char * *aCategory)
         202                 : {
         203                 :     return NS_ERROR_NOT_IMPLEMENTED;
         204                 : }
         205                 :
         206                 : /* readonly attribute long long timeStamp; */
         207                 : NS_IMETHODIMP nsScriptError::GetTimeStamp(PRInt64 *aTimeStamp)
         208                 : {
         209                 :     return NS_ERROR_NOT_IMPLEMENTED;
         210                 : }
         211                 :
         212                 : /* readonly attribute unsigned long long outerWindowID; */
         213                 : NS_IMETHODIMP nsScriptError::GetOuterWindowID(PRUint64 *aOuterWindowID)
         214                 : {
         215                 :     return NS_ERROR_NOT_IMPLEMENTED;
         216                 : }
         217                 :
         218                 : /* readonly attribute unsigned long long innerWindowID; */
         219                 : NS_IMETHODIMP nsScriptError::GetInnerWindowID(PRUint64 *aInnerWindowID)
         220                 : {
         221                 :     return NS_ERROR_NOT_IMPLEMENTED;
         222                 : }
         223                 :
         224                 : /* void init (in wstring message, in wstring sourceName, in wstring sourceLine, in PRUint32 lineNumber, in PRUint32 columnNumber, in PRUint32 flags, in string category); */
         225                 : NS_IMETHODIMP nsScriptError::Init(const PRUnichar * message, const PRUnichar * sourceName, const PRUnichar * sourceLine, PRUint32 lineNumber, PRUint32 columnNumber, PRUint32 flags, const char * category)
         226                 : {
         227                 :     return NS_ERROR_NOT_IMPLEMENTED;
         228                 : }
         229                 :
         230                 : /* 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); */
         231                 : NS_IMETHODIMP nsScriptError::InitWithWindowID(const PRUnichar * message, const PRUnichar * sourceName, const PRUnichar * sourceLine, PRUint32 lineNumber, PRUint32 columnNumber, PRUint32 flags, const char * category, PRUint64 innerWindowID)
         232                 : {
         233                 :     return NS_ERROR_NOT_IMPLEMENTED;
         234                 : }
         235                 :
         236                 : /* AUTF8String toString (); */
         237                 : NS_IMETHODIMP nsScriptError::ToString(nsACString & _retval NS_OUTPARAM)
         238                 : {
         239                 :     return NS_ERROR_NOT_IMPLEMENTED;
         240                 : }
         241                 :
         242                 : /* End of implementation class template. */
         243                 : #endif
         244                 :
         245                 : #define NS_SCRIPTERROR_CLASSNAME "Script Error"
         246                 : #define NS_SCRIPTERROR_CID \
         247                 : { 0xe38e53b9, 0x5bb0, 0x456a, { 0xb5, 0x53, 0x57, 0x93, 0x70, 0xcb, 0x15, 0x67 }}
         248                 : #define NS_SCRIPTERROR_CONTRACTID "@mozilla.org/scripterror;1"
         249                 :
         250                 : #endif /* __gen_nsIScriptError_h__ */

Generated by: LCOV version 1.7