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

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/xpcom/base/nsIErrorService.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIErrorService_h__
       6                 : #define __gen_nsIErrorService_h__
       7                 : 
       8                 : 
       9                 : #ifndef __gen_nsISupports_h__
      10                 : #include "nsISupports.h"
      11                 : #endif
      12                 : 
      13                 : /* For IDL files that don't want to include root IDL files. */
      14                 : #ifndef NS_NO_VTABLE
      15                 : #define NS_NO_VTABLE
      16                 : #endif
      17                 : 
      18                 : /* starting interface:    nsIErrorService */
      19                 : #define NS_IERRORSERVICE_IID_STR "e72f94b2-5f85-11d4-9877-00c04fa0cf4a"
      20                 : 
      21                 : #define NS_IERRORSERVICE_IID \
      22                 :   {0xe72f94b2, 0x5f85, 0x11d4, \
      23                 :     { 0x98, 0x77, 0x00, 0xc0, 0x4f, 0xa0, 0xcf, 0x4a }}
      24                 : 
      25            1419 : class NS_NO_VTABLE NS_SCRIPTABLE nsIErrorService : public nsISupports {
      26                 :  public: 
      27                 : 
      28                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IERRORSERVICE_IID)
      29                 : 
      30                 :   /* void registerErrorStringBundle (in short errorModule, in string stringBundleURL); */
      31                 :   NS_SCRIPTABLE NS_IMETHOD RegisterErrorStringBundle(PRInt16 errorModule, const char * stringBundleURL) = 0;
      32                 : 
      33                 :   /* void unregisterErrorStringBundle (in short errorModule); */
      34                 :   NS_SCRIPTABLE NS_IMETHOD UnregisterErrorStringBundle(PRInt16 errorModule) = 0;
      35                 : 
      36                 :   /* string getErrorStringBundle (in short errorModule); */
      37                 :   NS_SCRIPTABLE NS_IMETHOD GetErrorStringBundle(PRInt16 errorModule, char * *_retval NS_OUTPARAM) = 0;
      38                 : 
      39                 :   /* void registerErrorStringBundleKey (in nsresult error, in string stringBundleKey); */
      40                 :   NS_SCRIPTABLE NS_IMETHOD RegisterErrorStringBundleKey(nsresult error, const char * stringBundleKey) = 0;
      41                 : 
      42                 :   /* void unregisterErrorStringBundleKey (in nsresult error); */
      43                 :   NS_SCRIPTABLE NS_IMETHOD UnregisterErrorStringBundleKey(nsresult error) = 0;
      44                 : 
      45                 :   /* string getErrorStringBundleKey (in nsresult error); */
      46                 :   NS_SCRIPTABLE NS_IMETHOD GetErrorStringBundleKey(nsresult error, char * *_retval NS_OUTPARAM) = 0;
      47                 : 
      48                 : };
      49                 : 
      50                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIErrorService, NS_IERRORSERVICE_IID)
      51                 : 
      52                 : /* Use this macro when declaring classes that implement this interface. */
      53                 : #define NS_DECL_NSIERRORSERVICE \
      54                 :   NS_SCRIPTABLE NS_IMETHOD RegisterErrorStringBundle(PRInt16 errorModule, const char * stringBundleURL); \
      55                 :   NS_SCRIPTABLE NS_IMETHOD UnregisterErrorStringBundle(PRInt16 errorModule); \
      56                 :   NS_SCRIPTABLE NS_IMETHOD GetErrorStringBundle(PRInt16 errorModule, char * *_retval NS_OUTPARAM); \
      57                 :   NS_SCRIPTABLE NS_IMETHOD RegisterErrorStringBundleKey(nsresult error, const char * stringBundleKey); \
      58                 :   NS_SCRIPTABLE NS_IMETHOD UnregisterErrorStringBundleKey(nsresult error); \
      59                 :   NS_SCRIPTABLE NS_IMETHOD GetErrorStringBundleKey(nsresult error, char * *_retval NS_OUTPARAM); 
      60                 : 
      61                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      62                 : #define NS_FORWARD_NSIERRORSERVICE(_to) \
      63                 :   NS_SCRIPTABLE NS_IMETHOD RegisterErrorStringBundle(PRInt16 errorModule, const char * stringBundleURL) { return _to RegisterErrorStringBundle(errorModule, stringBundleURL); } \
      64                 :   NS_SCRIPTABLE NS_IMETHOD UnregisterErrorStringBundle(PRInt16 errorModule) { return _to UnregisterErrorStringBundle(errorModule); } \
      65                 :   NS_SCRIPTABLE NS_IMETHOD GetErrorStringBundle(PRInt16 errorModule, char * *_retval NS_OUTPARAM) { return _to GetErrorStringBundle(errorModule, _retval); } \
      66                 :   NS_SCRIPTABLE NS_IMETHOD RegisterErrorStringBundleKey(nsresult error, const char * stringBundleKey) { return _to RegisterErrorStringBundleKey(error, stringBundleKey); } \
      67                 :   NS_SCRIPTABLE NS_IMETHOD UnregisterErrorStringBundleKey(nsresult error) { return _to UnregisterErrorStringBundleKey(error); } \
      68                 :   NS_SCRIPTABLE NS_IMETHOD GetErrorStringBundleKey(nsresult error, char * *_retval NS_OUTPARAM) { return _to GetErrorStringBundleKey(error, _retval); } 
      69                 : 
      70                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      71                 : #define NS_FORWARD_SAFE_NSIERRORSERVICE(_to) \
      72                 :   NS_SCRIPTABLE NS_IMETHOD RegisterErrorStringBundle(PRInt16 errorModule, const char * stringBundleURL) { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterErrorStringBundle(errorModule, stringBundleURL); } \
      73                 :   NS_SCRIPTABLE NS_IMETHOD UnregisterErrorStringBundle(PRInt16 errorModule) { return !_to ? NS_ERROR_NULL_POINTER : _to->UnregisterErrorStringBundle(errorModule); } \
      74                 :   NS_SCRIPTABLE NS_IMETHOD GetErrorStringBundle(PRInt16 errorModule, char * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetErrorStringBundle(errorModule, _retval); } \
      75                 :   NS_SCRIPTABLE NS_IMETHOD RegisterErrorStringBundleKey(nsresult error, const char * stringBundleKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterErrorStringBundleKey(error, stringBundleKey); } \
      76                 :   NS_SCRIPTABLE NS_IMETHOD UnregisterErrorStringBundleKey(nsresult error) { return !_to ? NS_ERROR_NULL_POINTER : _to->UnregisterErrorStringBundleKey(error); } \
      77                 :   NS_SCRIPTABLE NS_IMETHOD GetErrorStringBundleKey(nsresult error, char * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetErrorStringBundleKey(error, _retval); } 
      78                 : 
      79                 : #if 0
      80                 : /* Use the code below as a template for the implementation class for this interface. */
      81                 : 
      82                 : /* Header file */
      83                 : class nsErrorService : public nsIErrorService
      84                 : {
      85                 : public:
      86                 :   NS_DECL_ISUPPORTS
      87                 :   NS_DECL_NSIERRORSERVICE
      88                 : 
      89                 :   nsErrorService();
      90                 : 
      91                 : private:
      92                 :   ~nsErrorService();
      93                 : 
      94                 : protected:
      95                 :   /* additional members */
      96                 : };
      97                 : 
      98                 : /* Implementation file */
      99                 : NS_IMPL_ISUPPORTS1(nsErrorService, nsIErrorService)
     100                 : 
     101                 : nsErrorService::nsErrorService()
     102                 : {
     103                 :   /* member initializers and constructor code */
     104                 : }
     105                 : 
     106                 : nsErrorService::~nsErrorService()
     107                 : {
     108                 :   /* destructor code */
     109                 : }
     110                 : 
     111                 : /* void registerErrorStringBundle (in short errorModule, in string stringBundleURL); */
     112                 : NS_IMETHODIMP nsErrorService::RegisterErrorStringBundle(PRInt16 errorModule, const char * stringBundleURL)
     113                 : {
     114                 :     return NS_ERROR_NOT_IMPLEMENTED;
     115                 : }
     116                 : 
     117                 : /* void unregisterErrorStringBundle (in short errorModule); */
     118                 : NS_IMETHODIMP nsErrorService::UnregisterErrorStringBundle(PRInt16 errorModule)
     119                 : {
     120                 :     return NS_ERROR_NOT_IMPLEMENTED;
     121                 : }
     122                 : 
     123                 : /* string getErrorStringBundle (in short errorModule); */
     124                 : NS_IMETHODIMP nsErrorService::GetErrorStringBundle(PRInt16 errorModule, char * *_retval NS_OUTPARAM)
     125                 : {
     126                 :     return NS_ERROR_NOT_IMPLEMENTED;
     127                 : }
     128                 : 
     129                 : /* void registerErrorStringBundleKey (in nsresult error, in string stringBundleKey); */
     130                 : NS_IMETHODIMP nsErrorService::RegisterErrorStringBundleKey(nsresult error, const char * stringBundleKey)
     131                 : {
     132                 :     return NS_ERROR_NOT_IMPLEMENTED;
     133                 : }
     134                 : 
     135                 : /* void unregisterErrorStringBundleKey (in nsresult error); */
     136                 : NS_IMETHODIMP nsErrorService::UnregisterErrorStringBundleKey(nsresult error)
     137                 : {
     138                 :     return NS_ERROR_NOT_IMPLEMENTED;
     139                 : }
     140                 : 
     141                 : /* string getErrorStringBundleKey (in nsresult error); */
     142                 : NS_IMETHODIMP nsErrorService::GetErrorStringBundleKey(nsresult error, char * *_retval NS_OUTPARAM)
     143                 : {
     144                 :     return NS_ERROR_NOT_IMPLEMENTED;
     145                 : }
     146                 : 
     147                 : /* End of implementation class template. */
     148                 : #endif
     149                 : 
     150                 : 
     151                 : // The global nsIErrorService:
     152                 : #define NS_ERRORSERVICE_NAME   "Error Service" 
     153                 : #define NS_ERRORSERVICE_CONTRACTID "@mozilla.org/xpcom/error-service;1"
     154                 : #define NS_ERRORSERVICE_CID                          \
     155                 : { /* 744afd5e-5f8c-11d4-9877-00c04fa0cf4a */         \
     156                 :     0x744afd5e,                                      \
     157                 :     0x5f8c,                                          \
     158                 :     0x11d4,                                          \
     159                 :     {0x98, 0x77, 0x00, 0xc0, 0x4f, 0xa0, 0xcf, 0x4a} \
     160                 : }
     161                 : 
     162                 : #endif /* __gen_nsIErrorService_h__ */

Generated by: LCOV version 1.7