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

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/xpcom/base/nsIExceptionService.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIExceptionService_h__
       6                 : #define __gen_nsIExceptionService_h__
       7                 : 
       8                 : 
       9                 : #ifndef __gen_nsISupports_h__
      10                 : #include "nsISupports.h"
      11                 : #endif
      12                 : 
      13                 : #ifndef __gen_nsIException_h__
      14                 : #include "nsIException.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:    nsIExceptionProvider */
      23                 : #define NS_IEXCEPTIONPROVIDER_IID_STR "0577744c-c1d2-47f2-8bcc-ce7a9e5a88fc"
      24                 : 
      25                 : #define NS_IEXCEPTIONPROVIDER_IID \
      26                 :   {0x0577744c, 0xc1d2, 0x47f2, \
      27                 :     { 0x8b, 0xcc, 0xce, 0x7a, 0x9e, 0x5a, 0x88, 0xfc }}
      28                 : 
      29              50 : class NS_NO_VTABLE NS_SCRIPTABLE nsIExceptionProvider : public nsISupports {
      30                 :  public: 
      31                 : 
      32                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IEXCEPTIONPROVIDER_IID)
      33                 : 
      34                 :   /* nsIException getException (in nsresult result, in nsIException defaultException); */
      35                 :   NS_SCRIPTABLE NS_IMETHOD GetException(nsresult result, nsIException *defaultException, nsIException * *_retval NS_OUTPARAM) = 0;
      36                 : 
      37                 : };
      38                 : 
      39                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIExceptionProvider, NS_IEXCEPTIONPROVIDER_IID)
      40                 : 
      41                 : /* Use this macro when declaring classes that implement this interface. */
      42                 : #define NS_DECL_NSIEXCEPTIONPROVIDER \
      43                 :   NS_SCRIPTABLE NS_IMETHOD GetException(nsresult result, nsIException *defaultException, nsIException * *_retval NS_OUTPARAM); 
      44                 : 
      45                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      46                 : #define NS_FORWARD_NSIEXCEPTIONPROVIDER(_to) \
      47                 :   NS_SCRIPTABLE NS_IMETHOD GetException(nsresult result, nsIException *defaultException, nsIException * *_retval NS_OUTPARAM) { return _to GetException(result, defaultException, _retval); } 
      48                 : 
      49                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      50                 : #define NS_FORWARD_SAFE_NSIEXCEPTIONPROVIDER(_to) \
      51                 :   NS_SCRIPTABLE NS_IMETHOD GetException(nsresult result, nsIException *defaultException, nsIException * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetException(result, defaultException, _retval); } 
      52                 : 
      53                 : #if 0
      54                 : /* Use the code below as a template for the implementation class for this interface. */
      55                 : 
      56                 : /* Header file */
      57                 : class nsExceptionProvider : public nsIExceptionProvider
      58                 : {
      59                 : public:
      60                 :   NS_DECL_ISUPPORTS
      61                 :   NS_DECL_NSIEXCEPTIONPROVIDER
      62                 : 
      63                 :   nsExceptionProvider();
      64                 : 
      65                 : private:
      66                 :   ~nsExceptionProvider();
      67                 : 
      68                 : protected:
      69                 :   /* additional members */
      70                 : };
      71                 : 
      72                 : /* Implementation file */
      73                 : NS_IMPL_ISUPPORTS1(nsExceptionProvider, nsIExceptionProvider)
      74                 : 
      75                 : nsExceptionProvider::nsExceptionProvider()
      76                 : {
      77                 :   /* member initializers and constructor code */
      78                 : }
      79                 : 
      80                 : nsExceptionProvider::~nsExceptionProvider()
      81                 : {
      82                 :   /* destructor code */
      83                 : }
      84                 : 
      85                 : /* nsIException getException (in nsresult result, in nsIException defaultException); */
      86                 : NS_IMETHODIMP nsExceptionProvider::GetException(nsresult result, nsIException *defaultException, nsIException * *_retval NS_OUTPARAM)
      87                 : {
      88                 :     return NS_ERROR_NOT_IMPLEMENTED;
      89                 : }
      90                 : 
      91                 : /* End of implementation class template. */
      92                 : #endif
      93                 : 
      94                 : 
      95                 : /* starting interface:    nsIExceptionManager */
      96                 : #define NS_IEXCEPTIONMANAGER_IID_STR "efc9d00b-231c-4feb-852c-ac017266a415"
      97                 : 
      98                 : #define NS_IEXCEPTIONMANAGER_IID \
      99                 :   {0xefc9d00b, 0x231c, 0x4feb, \
     100                 :     { 0x85, 0x2c, 0xac, 0x01, 0x72, 0x66, 0xa4, 0x15 }}
     101                 : 
     102            2782 : class NS_NO_VTABLE NS_SCRIPTABLE nsIExceptionManager : public nsISupports {
     103                 :  public: 
     104                 : 
     105                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IEXCEPTIONMANAGER_IID)
     106                 : 
     107                 :   /* void setCurrentException (in nsIException error); */
     108                 :   NS_SCRIPTABLE NS_IMETHOD SetCurrentException(nsIException *error) = 0;
     109                 : 
     110                 :   /* nsIException getCurrentException (); */
     111                 :   NS_SCRIPTABLE NS_IMETHOD GetCurrentException(nsIException * *_retval NS_OUTPARAM) = 0;
     112                 : 
     113                 :   /* nsIException getExceptionFromProvider (in nsresult rc, in nsIException defaultException); */
     114                 :   NS_SCRIPTABLE NS_IMETHOD GetExceptionFromProvider(nsresult rc, nsIException *defaultException, nsIException * *_retval NS_OUTPARAM) = 0;
     115                 : 
     116                 : };
     117                 : 
     118                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIExceptionManager, NS_IEXCEPTIONMANAGER_IID)
     119                 : 
     120                 : /* Use this macro when declaring classes that implement this interface. */
     121                 : #define NS_DECL_NSIEXCEPTIONMANAGER \
     122                 :   NS_SCRIPTABLE NS_IMETHOD SetCurrentException(nsIException *error); \
     123                 :   NS_SCRIPTABLE NS_IMETHOD GetCurrentException(nsIException * *_retval NS_OUTPARAM); \
     124                 :   NS_SCRIPTABLE NS_IMETHOD GetExceptionFromProvider(nsresult rc, nsIException *defaultException, nsIException * *_retval NS_OUTPARAM); 
     125                 : 
     126                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     127                 : #define NS_FORWARD_NSIEXCEPTIONMANAGER(_to) \
     128                 :   NS_SCRIPTABLE NS_IMETHOD SetCurrentException(nsIException *error) { return _to SetCurrentException(error); } \
     129                 :   NS_SCRIPTABLE NS_IMETHOD GetCurrentException(nsIException * *_retval NS_OUTPARAM) { return _to GetCurrentException(_retval); } \
     130                 :   NS_SCRIPTABLE NS_IMETHOD GetExceptionFromProvider(nsresult rc, nsIException *defaultException, nsIException * *_retval NS_OUTPARAM) { return _to GetExceptionFromProvider(rc, defaultException, _retval); } 
     131                 : 
     132                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     133                 : #define NS_FORWARD_SAFE_NSIEXCEPTIONMANAGER(_to) \
     134                 :   NS_SCRIPTABLE NS_IMETHOD SetCurrentException(nsIException *error) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCurrentException(error); } \
     135                 :   NS_SCRIPTABLE NS_IMETHOD GetCurrentException(nsIException * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCurrentException(_retval); } \
     136                 :   NS_SCRIPTABLE NS_IMETHOD GetExceptionFromProvider(nsresult rc, nsIException *defaultException, nsIException * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetExceptionFromProvider(rc, defaultException, _retval); } 
     137                 : 
     138                 : #if 0
     139                 : /* Use the code below as a template for the implementation class for this interface. */
     140                 : 
     141                 : /* Header file */
     142                 : class nsExceptionManager : public nsIExceptionManager
     143                 : {
     144                 : public:
     145                 :   NS_DECL_ISUPPORTS
     146                 :   NS_DECL_NSIEXCEPTIONMANAGER
     147                 : 
     148                 :   nsExceptionManager();
     149                 : 
     150                 : private:
     151                 :   ~nsExceptionManager();
     152                 : 
     153                 : protected:
     154                 :   /* additional members */
     155                 : };
     156                 : 
     157                 : /* Implementation file */
     158                 : NS_IMPL_ISUPPORTS1(nsExceptionManager, nsIExceptionManager)
     159                 : 
     160                 : nsExceptionManager::nsExceptionManager()
     161                 : {
     162                 :   /* member initializers and constructor code */
     163                 : }
     164                 : 
     165                 : nsExceptionManager::~nsExceptionManager()
     166                 : {
     167                 :   /* destructor code */
     168                 : }
     169                 : 
     170                 : /* void setCurrentException (in nsIException error); */
     171                 : NS_IMETHODIMP nsExceptionManager::SetCurrentException(nsIException *error)
     172                 : {
     173                 :     return NS_ERROR_NOT_IMPLEMENTED;
     174                 : }
     175                 : 
     176                 : /* nsIException getCurrentException (); */
     177                 : NS_IMETHODIMP nsExceptionManager::GetCurrentException(nsIException * *_retval NS_OUTPARAM)
     178                 : {
     179                 :     return NS_ERROR_NOT_IMPLEMENTED;
     180                 : }
     181                 : 
     182                 : /* nsIException getExceptionFromProvider (in nsresult rc, in nsIException defaultException); */
     183                 : NS_IMETHODIMP nsExceptionManager::GetExceptionFromProvider(nsresult rc, nsIException *defaultException, nsIException * *_retval NS_OUTPARAM)
     184                 : {
     185                 :     return NS_ERROR_NOT_IMPLEMENTED;
     186                 : }
     187                 : 
     188                 : /* End of implementation class template. */
     189                 : #endif
     190                 : 
     191                 : 
     192                 : /* starting interface:    nsIExceptionService */
     193                 : #define NS_IEXCEPTIONSERVICE_IID_STR "35a88f54-f267-4414-92a7-191f6454ab52"
     194                 : 
     195                 : #define NS_IEXCEPTIONSERVICE_IID \
     196                 :   {0x35a88f54, 0xf267, 0x4414, \
     197                 :     { 0x92, 0xa7, 0x19, 0x1f, 0x64, 0x54, 0xab, 0x52 }}
     198                 : 
     199            1391 : class NS_NO_VTABLE NS_SCRIPTABLE nsIExceptionService : public nsIExceptionManager {
     200                 :  public: 
     201                 : 
     202                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IEXCEPTIONSERVICE_IID)
     203                 : 
     204                 :   /* readonly attribute nsIExceptionManager currentExceptionManager; */
     205                 :   NS_SCRIPTABLE NS_IMETHOD GetCurrentExceptionManager(nsIExceptionManager * *aCurrentExceptionManager) = 0;
     206                 : 
     207                 :   /* void registerExceptionProvider (in nsIExceptionProvider provider, in PRUint32 moduleCode); */
     208                 :   NS_SCRIPTABLE NS_IMETHOD RegisterExceptionProvider(nsIExceptionProvider *provider, PRUint32 moduleCode) = 0;
     209                 : 
     210                 :   /* void unregisterExceptionProvider (in nsIExceptionProvider provider, in PRUint32 moduleCode); */
     211                 :   NS_SCRIPTABLE NS_IMETHOD UnregisterExceptionProvider(nsIExceptionProvider *provider, PRUint32 moduleCode) = 0;
     212                 : 
     213                 : };
     214                 : 
     215                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIExceptionService, NS_IEXCEPTIONSERVICE_IID)
     216                 : 
     217                 : /* Use this macro when declaring classes that implement this interface. */
     218                 : #define NS_DECL_NSIEXCEPTIONSERVICE \
     219                 :   NS_SCRIPTABLE NS_IMETHOD GetCurrentExceptionManager(nsIExceptionManager * *aCurrentExceptionManager); \
     220                 :   NS_SCRIPTABLE NS_IMETHOD RegisterExceptionProvider(nsIExceptionProvider *provider, PRUint32 moduleCode); \
     221                 :   NS_SCRIPTABLE NS_IMETHOD UnregisterExceptionProvider(nsIExceptionProvider *provider, PRUint32 moduleCode); 
     222                 : 
     223                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     224                 : #define NS_FORWARD_NSIEXCEPTIONSERVICE(_to) \
     225                 :   NS_SCRIPTABLE NS_IMETHOD GetCurrentExceptionManager(nsIExceptionManager * *aCurrentExceptionManager) { return _to GetCurrentExceptionManager(aCurrentExceptionManager); } \
     226                 :   NS_SCRIPTABLE NS_IMETHOD RegisterExceptionProvider(nsIExceptionProvider *provider, PRUint32 moduleCode) { return _to RegisterExceptionProvider(provider, moduleCode); } \
     227                 :   NS_SCRIPTABLE NS_IMETHOD UnregisterExceptionProvider(nsIExceptionProvider *provider, PRUint32 moduleCode) { return _to UnregisterExceptionProvider(provider, moduleCode); } 
     228                 : 
     229                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     230                 : #define NS_FORWARD_SAFE_NSIEXCEPTIONSERVICE(_to) \
     231                 :   NS_SCRIPTABLE NS_IMETHOD GetCurrentExceptionManager(nsIExceptionManager * *aCurrentExceptionManager) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCurrentExceptionManager(aCurrentExceptionManager); } \
     232                 :   NS_SCRIPTABLE NS_IMETHOD RegisterExceptionProvider(nsIExceptionProvider *provider, PRUint32 moduleCode) { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterExceptionProvider(provider, moduleCode); } \
     233                 :   NS_SCRIPTABLE NS_IMETHOD UnregisterExceptionProvider(nsIExceptionProvider *provider, PRUint32 moduleCode) { return !_to ? NS_ERROR_NULL_POINTER : _to->UnregisterExceptionProvider(provider, moduleCode); } 
     234                 : 
     235                 : #if 0
     236                 : /* Use the code below as a template for the implementation class for this interface. */
     237                 : 
     238                 : /* Header file */
     239                 : class nsExceptionService : public nsIExceptionService
     240                 : {
     241                 : public:
     242                 :   NS_DECL_ISUPPORTS
     243                 :   NS_DECL_NSIEXCEPTIONSERVICE
     244                 : 
     245                 :   nsExceptionService();
     246                 : 
     247                 : private:
     248                 :   ~nsExceptionService();
     249                 : 
     250                 : protected:
     251                 :   /* additional members */
     252                 : };
     253                 : 
     254                 : /* Implementation file */
     255                 : NS_IMPL_ISUPPORTS1(nsExceptionService, nsIExceptionService)
     256                 : 
     257                 : nsExceptionService::nsExceptionService()
     258                 : {
     259                 :   /* member initializers and constructor code */
     260                 : }
     261                 : 
     262                 : nsExceptionService::~nsExceptionService()
     263                 : {
     264                 :   /* destructor code */
     265                 : }
     266                 : 
     267                 : /* readonly attribute nsIExceptionManager currentExceptionManager; */
     268                 : NS_IMETHODIMP nsExceptionService::GetCurrentExceptionManager(nsIExceptionManager * *aCurrentExceptionManager)
     269                 : {
     270                 :     return NS_ERROR_NOT_IMPLEMENTED;
     271                 : }
     272                 : 
     273                 : /* void registerExceptionProvider (in nsIExceptionProvider provider, in PRUint32 moduleCode); */
     274                 : NS_IMETHODIMP nsExceptionService::RegisterExceptionProvider(nsIExceptionProvider *provider, PRUint32 moduleCode)
     275                 : {
     276                 :     return NS_ERROR_NOT_IMPLEMENTED;
     277                 : }
     278                 : 
     279                 : /* void unregisterExceptionProvider (in nsIExceptionProvider provider, in PRUint32 moduleCode); */
     280                 : NS_IMETHODIMP nsExceptionService::UnregisterExceptionProvider(nsIExceptionProvider *provider, PRUint32 moduleCode)
     281                 : {
     282                 :     return NS_ERROR_NOT_IMPLEMENTED;
     283                 : }
     284                 : 
     285                 : /* End of implementation class template. */
     286                 : #endif
     287                 : 
     288                 : #define NS_EXCEPTIONSERVICE_CLASSNAME "Exception Service"
     289                 : // {35A88F54-F267-4414-92A7-191F6454AB52}
     290                 : #define NS_EXCEPTIONSERVICE_CID \
     291                 : { 0x35a88f54, 0xf267, 0x4414, { 0x92, 0xa7, 0x19, 0x1f, 0x64, 0x54, 0xab, 0x52 } }
     292                 : #define NS_EXCEPTIONSERVICE_CONTRACTID "@mozilla.org/exceptionservice;1"
     293                 : 
     294                 : #endif /* __gen_nsIExceptionService_h__ */

Generated by: LCOV version 1.7