LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIStatusReporter.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 2 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 2 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIStatusReporter.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIStatusReporter_h__
       6             : #define __gen_nsIStatusReporter_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             : class nsISimpleEnumerator; /* forward declaration */
      18             : 
      19             : 
      20             : /* starting interface:    nsIStatusReporter */
      21             : #define NS_ISTATUSREPORTER_IID_STR "ffcb716c-deeb-44ea-9d9d-ab25dc6980a8"
      22             : 
      23             : #define NS_ISTATUSREPORTER_IID \
      24             :   {0xffcb716c, 0xdeeb, 0x44ea, \
      25             :     { 0x9d, 0x9d, 0xab, 0x25, 0xdc, 0x69, 0x80, 0xa8 }}
      26             : 
      27           0 : class NS_NO_VTABLE nsIStatusReporter : public nsISupports {
      28             :  public:
      29             : 
      30             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISTATUSREPORTER_IID)
      31             : 
      32             :   /* readonly attribute ACString name; */
      33             :   NS_IMETHOD GetName(nsACString & aName) = 0;
      34             : 
      35             :   /* readonly attribute ACString process; */
      36             :   NS_IMETHOD GetProcess(nsACString & aProcess) = 0;
      37             : 
      38             :   /* readonly attribute AUTF8String description; */
      39             :   NS_IMETHOD GetDescription(nsACString & aDescription) = 0;
      40             : 
      41             : };
      42             : 
      43             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIStatusReporter, NS_ISTATUSREPORTER_IID)
      44             : 
      45             : /* Use this macro when declaring classes that implement this interface. */
      46             : #define NS_DECL_NSISTATUSREPORTER \
      47             :   NS_IMETHOD GetName(nsACString & aName) override; \
      48             :   NS_IMETHOD GetProcess(nsACString & aProcess) override; \
      49             :   NS_IMETHOD GetDescription(nsACString & aDescription) override; 
      50             : 
      51             : /* Use this macro when declaring the members of this interface when the
      52             :    class doesn't implement the interface. This is useful for forwarding. */
      53             : #define NS_DECL_NON_VIRTUAL_NSISTATUSREPORTER \
      54             :   nsresult GetName(nsACString & aName); \
      55             :   nsresult GetProcess(nsACString & aProcess); \
      56             :   nsresult GetDescription(nsACString & aDescription); 
      57             : 
      58             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      59             : #define NS_FORWARD_NSISTATUSREPORTER(_to) \
      60             :   NS_IMETHOD GetName(nsACString & aName) override { return _to GetName(aName); } \
      61             :   NS_IMETHOD GetProcess(nsACString & aProcess) override { return _to GetProcess(aProcess); } \
      62             :   NS_IMETHOD GetDescription(nsACString & aDescription) override { return _to GetDescription(aDescription); } 
      63             : 
      64             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      65             : #define NS_FORWARD_SAFE_NSISTATUSREPORTER(_to) \
      66             :   NS_IMETHOD GetName(nsACString & aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
      67             :   NS_IMETHOD GetProcess(nsACString & aProcess) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProcess(aProcess); } \
      68             :   NS_IMETHOD GetDescription(nsACString & aDescription) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDescription(aDescription); } 
      69             : 
      70             : #if 0
      71             : /* Use the code below as a template for the implementation class for this interface. */
      72             : 
      73             : /* Header file */
      74             : class nsStatusReporter : public nsIStatusReporter
      75             : {
      76             : public:
      77             :   NS_DECL_ISUPPORTS
      78             :   NS_DECL_NSISTATUSREPORTER
      79             : 
      80             :   nsStatusReporter();
      81             : 
      82             : private:
      83             :   ~nsStatusReporter();
      84             : 
      85             : protected:
      86             :   /* additional members */
      87             : };
      88             : 
      89             : /* Implementation file */
      90             : NS_IMPL_ISUPPORTS(nsStatusReporter, nsIStatusReporter)
      91             : 
      92             : nsStatusReporter::nsStatusReporter()
      93             : {
      94             :   /* member initializers and constructor code */
      95             : }
      96             : 
      97             : nsStatusReporter::~nsStatusReporter()
      98             : {
      99             :   /* destructor code */
     100             : }
     101             : 
     102             : /* readonly attribute ACString name; */
     103             : NS_IMETHODIMP nsStatusReporter::GetName(nsACString & aName)
     104             : {
     105             :     return NS_ERROR_NOT_IMPLEMENTED;
     106             : }
     107             : 
     108             : /* readonly attribute ACString process; */
     109             : NS_IMETHODIMP nsStatusReporter::GetProcess(nsACString & aProcess)
     110             : {
     111             :     return NS_ERROR_NOT_IMPLEMENTED;
     112             : }
     113             : 
     114             : /* readonly attribute AUTF8String description; */
     115             : NS_IMETHODIMP nsStatusReporter::GetDescription(nsACString & aDescription)
     116             : {
     117             :     return NS_ERROR_NOT_IMPLEMENTED;
     118             : }
     119             : 
     120             : /* End of implementation class template. */
     121             : #endif
     122             : 
     123             : 
     124             : /* starting interface:    nsIStatusReporterManager */
     125             : #define NS_ISTATUSREPORTERMANAGER_IID_STR "fd531273-3319-4fcd-90f2-9f53876c3828"
     126             : 
     127             : #define NS_ISTATUSREPORTERMANAGER_IID \
     128             :   {0xfd531273, 0x3319, 0x4fcd, \
     129             :     { 0x90, 0xf2, 0x9f, 0x53, 0x87, 0x6c, 0x38, 0x28 }}
     130             : 
     131           0 : class NS_NO_VTABLE nsIStatusReporterManager : public nsISupports {
     132             :  public:
     133             : 
     134             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISTATUSREPORTERMANAGER_IID)
     135             : 
     136             :   /* nsISimpleEnumerator enumerateReporters (); */
     137             :   NS_IMETHOD EnumerateReporters(nsISimpleEnumerator * *_retval) = 0;
     138             : 
     139             :   /* void registerReporter (in nsIStatusReporter reporter); */
     140             :   NS_IMETHOD RegisterReporter(nsIStatusReporter *reporter) = 0;
     141             : 
     142             :   /* void unregisterReporter (in nsIStatusReporter reporter); */
     143             :   NS_IMETHOD UnregisterReporter(nsIStatusReporter *reporter) = 0;
     144             : 
     145             :   /* void init (); */
     146             :   NS_IMETHOD Init(void) = 0;
     147             : 
     148             :   /* void dumpReports (); */
     149             :   NS_IMETHOD DumpReports(void) = 0;
     150             : 
     151             : };
     152             : 
     153             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIStatusReporterManager, NS_ISTATUSREPORTERMANAGER_IID)
     154             : 
     155             : /* Use this macro when declaring classes that implement this interface. */
     156             : #define NS_DECL_NSISTATUSREPORTERMANAGER \
     157             :   NS_IMETHOD EnumerateReporters(nsISimpleEnumerator * *_retval) override; \
     158             :   NS_IMETHOD RegisterReporter(nsIStatusReporter *reporter) override; \
     159             :   NS_IMETHOD UnregisterReporter(nsIStatusReporter *reporter) override; \
     160             :   NS_IMETHOD Init(void) override; \
     161             :   NS_IMETHOD DumpReports(void) override; 
     162             : 
     163             : /* Use this macro when declaring the members of this interface when the
     164             :    class doesn't implement the interface. This is useful for forwarding. */
     165             : #define NS_DECL_NON_VIRTUAL_NSISTATUSREPORTERMANAGER \
     166             :   nsresult EnumerateReporters(nsISimpleEnumerator * *_retval); \
     167             :   nsresult RegisterReporter(nsIStatusReporter *reporter); \
     168             :   nsresult UnregisterReporter(nsIStatusReporter *reporter); \
     169             :   nsresult Init(void); \
     170             :   nsresult DumpReports(void); 
     171             : 
     172             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     173             : #define NS_FORWARD_NSISTATUSREPORTERMANAGER(_to) \
     174             :   NS_IMETHOD EnumerateReporters(nsISimpleEnumerator * *_retval) override { return _to EnumerateReporters(_retval); } \
     175             :   NS_IMETHOD RegisterReporter(nsIStatusReporter *reporter) override { return _to RegisterReporter(reporter); } \
     176             :   NS_IMETHOD UnregisterReporter(nsIStatusReporter *reporter) override { return _to UnregisterReporter(reporter); } \
     177             :   NS_IMETHOD Init(void) override { return _to Init(); } \
     178             :   NS_IMETHOD DumpReports(void) override { return _to DumpReports(); } 
     179             : 
     180             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     181             : #define NS_FORWARD_SAFE_NSISTATUSREPORTERMANAGER(_to) \
     182             :   NS_IMETHOD EnumerateReporters(nsISimpleEnumerator * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->EnumerateReporters(_retval); } \
     183             :   NS_IMETHOD RegisterReporter(nsIStatusReporter *reporter) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterReporter(reporter); } \
     184             :   NS_IMETHOD UnregisterReporter(nsIStatusReporter *reporter) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UnregisterReporter(reporter); } \
     185             :   NS_IMETHOD Init(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(); } \
     186             :   NS_IMETHOD DumpReports(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DumpReports(); } 
     187             : 
     188             : #if 0
     189             : /* Use the code below as a template for the implementation class for this interface. */
     190             : 
     191             : /* Header file */
     192             : class nsStatusReporterManager : public nsIStatusReporterManager
     193             : {
     194             : public:
     195             :   NS_DECL_ISUPPORTS
     196             :   NS_DECL_NSISTATUSREPORTERMANAGER
     197             : 
     198             :   nsStatusReporterManager();
     199             : 
     200             : private:
     201             :   ~nsStatusReporterManager();
     202             : 
     203             : protected:
     204             :   /* additional members */
     205             : };
     206             : 
     207             : /* Implementation file */
     208             : NS_IMPL_ISUPPORTS(nsStatusReporterManager, nsIStatusReporterManager)
     209             : 
     210             : nsStatusReporterManager::nsStatusReporterManager()
     211             : {
     212             :   /* member initializers and constructor code */
     213             : }
     214             : 
     215             : nsStatusReporterManager::~nsStatusReporterManager()
     216             : {
     217             :   /* destructor code */
     218             : }
     219             : 
     220             : /* nsISimpleEnumerator enumerateReporters (); */
     221             : NS_IMETHODIMP nsStatusReporterManager::EnumerateReporters(nsISimpleEnumerator * *_retval)
     222             : {
     223             :     return NS_ERROR_NOT_IMPLEMENTED;
     224             : }
     225             : 
     226             : /* void registerReporter (in nsIStatusReporter reporter); */
     227             : NS_IMETHODIMP nsStatusReporterManager::RegisterReporter(nsIStatusReporter *reporter)
     228             : {
     229             :     return NS_ERROR_NOT_IMPLEMENTED;
     230             : }
     231             : 
     232             : /* void unregisterReporter (in nsIStatusReporter reporter); */
     233             : NS_IMETHODIMP nsStatusReporterManager::UnregisterReporter(nsIStatusReporter *reporter)
     234             : {
     235             :     return NS_ERROR_NOT_IMPLEMENTED;
     236             : }
     237             : 
     238             : /* void init (); */
     239             : NS_IMETHODIMP nsStatusReporterManager::Init()
     240             : {
     241             :     return NS_ERROR_NOT_IMPLEMENTED;
     242             : }
     243             : 
     244             : /* void dumpReports (); */
     245             : NS_IMETHODIMP nsStatusReporterManager::DumpReports()
     246             : {
     247             :     return NS_ERROR_NOT_IMPLEMENTED;
     248             : }
     249             : 
     250             : /* End of implementation class template. */
     251             : #endif
     252             : 
     253             : 
     254             : /*
     255             :  * Note that this defaults 'process' to "", which is usually what's desired.
     256             :  */
     257             : #define NS_STATUS_REPORTER_IMPLEMENT(_classname, _name, _desc_Function)       \
     258             :     class StatusReporter_##_classname final : public nsIStatusReporter {      \
     259             :       ~StatusReporter_##_classname() {}                                       \
     260             :     public:                                                                   \
     261             :       NS_DECL_ISUPPORTS                                                       \
     262             :       NS_IMETHOD GetName(nsACString &name) override                           \
     263             :         { name.AssignLiteral(_name); return NS_OK; }                          \
     264             :       NS_IMETHOD GetProcess(nsACString &process) override                     \
     265             :         { process.Truncate(); return NS_OK; }                                 \
     266             :       NS_IMETHOD GetDescription(nsACString &desc) override                    \
     267             :         { _desc_Function(desc); return NS_OK; }                               \
     268             :     };                                                                        \
     269             :     NS_IMPL_ISUPPORTS(StatusReporter_##_classname, nsIStatusReporter)
     270             : #define NS_STATUS_REPORTER_NAME(_classname)  StatusReporter_##_classname
     271             : nsresult NS_RegisterStatusReporter(nsIStatusReporter *reporter);
     272             : nsresult NS_UnregisterStatusReporter(nsIStatusReporter *reporter);
     273             : nsresult NS_DumpStatusReporter();
     274             : #define NS_STATUS_REPORTER_MANAGER_CID \
     275             : { 0xe8eb4e7e, 0xf2cf, 0x45e5, \
     276             : { 0xb8, 0xa4, 0x6a, 0x0f, 0x50, 0x18, 0x84, 0x63 } }
     277             : 
     278             : #endif /* __gen_nsIStatusReporter_h__ */

Generated by: LCOV version 1.13