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

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsICaptivePortalDetector.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsICaptivePortalDetector_h__
       6             : #define __gen_nsICaptivePortalDetector_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:    nsICaptivePortalCallback */
      19             : #define NS_ICAPTIVEPORTALCALLBACK_IID_STR "593fdeec-6284-4de8-b416-8e63cbdc695e"
      20             : 
      21             : #define NS_ICAPTIVEPORTALCALLBACK_IID \
      22             :   {0x593fdeec, 0x6284, 0x4de8, \
      23             :     { 0xb4, 0x16, 0x8e, 0x63, 0xcb, 0xdc, 0x69, 0x5e }}
      24             : 
      25           3 : class NS_NO_VTABLE nsICaptivePortalCallback : public nsISupports {
      26             :  public:
      27             : 
      28             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICAPTIVEPORTALCALLBACK_IID)
      29             : 
      30             :   /* void prepare (); */
      31             :   NS_IMETHOD Prepare(void) = 0;
      32             : 
      33             :   /* void complete (in bool success); */
      34             :   NS_IMETHOD Complete(bool success) = 0;
      35             : 
      36             : };
      37             : 
      38             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsICaptivePortalCallback, NS_ICAPTIVEPORTALCALLBACK_IID)
      39             : 
      40             : /* Use this macro when declaring classes that implement this interface. */
      41             : #define NS_DECL_NSICAPTIVEPORTALCALLBACK \
      42             :   NS_IMETHOD Prepare(void) override; \
      43             :   NS_IMETHOD Complete(bool success) override; 
      44             : 
      45             : /* Use this macro when declaring the members of this interface when the
      46             :    class doesn't implement the interface. This is useful for forwarding. */
      47             : #define NS_DECL_NON_VIRTUAL_NSICAPTIVEPORTALCALLBACK \
      48             :   nsresult Prepare(void); \
      49             :   nsresult Complete(bool success); 
      50             : 
      51             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      52             : #define NS_FORWARD_NSICAPTIVEPORTALCALLBACK(_to) \
      53             :   NS_IMETHOD Prepare(void) override { return _to Prepare(); } \
      54             :   NS_IMETHOD Complete(bool success) override { return _to Complete(success); } 
      55             : 
      56             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      57             : #define NS_FORWARD_SAFE_NSICAPTIVEPORTALCALLBACK(_to) \
      58             :   NS_IMETHOD Prepare(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Prepare(); } \
      59             :   NS_IMETHOD Complete(bool success) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Complete(success); } 
      60             : 
      61             : #if 0
      62             : /* Use the code below as a template for the implementation class for this interface. */
      63             : 
      64             : /* Header file */
      65             : class nsCaptivePortalCallback : public nsICaptivePortalCallback
      66             : {
      67             : public:
      68             :   NS_DECL_ISUPPORTS
      69             :   NS_DECL_NSICAPTIVEPORTALCALLBACK
      70             : 
      71             :   nsCaptivePortalCallback();
      72             : 
      73             : private:
      74             :   ~nsCaptivePortalCallback();
      75             : 
      76             : protected:
      77             :   /* additional members */
      78             : };
      79             : 
      80             : /* Implementation file */
      81             : NS_IMPL_ISUPPORTS(nsCaptivePortalCallback, nsICaptivePortalCallback)
      82             : 
      83             : nsCaptivePortalCallback::nsCaptivePortalCallback()
      84             : {
      85             :   /* member initializers and constructor code */
      86             : }
      87             : 
      88             : nsCaptivePortalCallback::~nsCaptivePortalCallback()
      89             : {
      90             :   /* destructor code */
      91             : }
      92             : 
      93             : /* void prepare (); */
      94             : NS_IMETHODIMP nsCaptivePortalCallback::Prepare()
      95             : {
      96             :     return NS_ERROR_NOT_IMPLEMENTED;
      97             : }
      98             : 
      99             : /* void complete (in bool success); */
     100             : NS_IMETHODIMP nsCaptivePortalCallback::Complete(bool success)
     101             : {
     102             :     return NS_ERROR_NOT_IMPLEMENTED;
     103             : }
     104             : 
     105             : /* End of implementation class template. */
     106             : #endif
     107             : 
     108             : 
     109             : /* starting interface:    nsICaptivePortalDetector */
     110             : #define NS_ICAPTIVEPORTALDETECTOR_IID_STR "2f827c5a-f551-477f-af09-71adbfbd854a"
     111             : 
     112             : #define NS_ICAPTIVEPORTALDETECTOR_IID \
     113             :   {0x2f827c5a, 0xf551, 0x477f, \
     114             :     { 0xaf, 0x09, 0x71, 0xad, 0xbf, 0xbd, 0x85, 0x4a }}
     115             : 
     116             : class NS_NO_VTABLE nsICaptivePortalDetector : public nsISupports {
     117             :  public:
     118             : 
     119             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICAPTIVEPORTALDETECTOR_IID)
     120             : 
     121             :   /* void checkCaptivePortal (in wstring ifname, in nsICaptivePortalCallback callback); */
     122             :   NS_IMETHOD CheckCaptivePortal(const char16_t * ifname, nsICaptivePortalCallback *callback) = 0;
     123             : 
     124             :   /* void abort (in wstring ifname); */
     125             :   NS_IMETHOD Abort(const char16_t * ifname) = 0;
     126             : 
     127             :   /* void cancelLogin (in wstring eventId); */
     128             :   NS_IMETHOD CancelLogin(const char16_t * eventId) = 0;
     129             : 
     130             :   /* void finishPreparation (in wstring ifname); */
     131             :   NS_IMETHOD FinishPreparation(const char16_t * ifname) = 0;
     132             : 
     133             : };
     134             : 
     135             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsICaptivePortalDetector, NS_ICAPTIVEPORTALDETECTOR_IID)
     136             : 
     137             : /* Use this macro when declaring classes that implement this interface. */
     138             : #define NS_DECL_NSICAPTIVEPORTALDETECTOR \
     139             :   NS_IMETHOD CheckCaptivePortal(const char16_t * ifname, nsICaptivePortalCallback *callback) override; \
     140             :   NS_IMETHOD Abort(const char16_t * ifname) override; \
     141             :   NS_IMETHOD CancelLogin(const char16_t * eventId) override; \
     142             :   NS_IMETHOD FinishPreparation(const char16_t * ifname) override; 
     143             : 
     144             : /* Use this macro when declaring the members of this interface when the
     145             :    class doesn't implement the interface. This is useful for forwarding. */
     146             : #define NS_DECL_NON_VIRTUAL_NSICAPTIVEPORTALDETECTOR \
     147             :   nsresult CheckCaptivePortal(const char16_t * ifname, nsICaptivePortalCallback *callback); \
     148             :   nsresult Abort(const char16_t * ifname); \
     149             :   nsresult CancelLogin(const char16_t * eventId); \
     150             :   nsresult FinishPreparation(const char16_t * ifname); 
     151             : 
     152             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     153             : #define NS_FORWARD_NSICAPTIVEPORTALDETECTOR(_to) \
     154             :   NS_IMETHOD CheckCaptivePortal(const char16_t * ifname, nsICaptivePortalCallback *callback) override { return _to CheckCaptivePortal(ifname, callback); } \
     155             :   NS_IMETHOD Abort(const char16_t * ifname) override { return _to Abort(ifname); } \
     156             :   NS_IMETHOD CancelLogin(const char16_t * eventId) override { return _to CancelLogin(eventId); } \
     157             :   NS_IMETHOD FinishPreparation(const char16_t * ifname) override { return _to FinishPreparation(ifname); } 
     158             : 
     159             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     160             : #define NS_FORWARD_SAFE_NSICAPTIVEPORTALDETECTOR(_to) \
     161             :   NS_IMETHOD CheckCaptivePortal(const char16_t * ifname, nsICaptivePortalCallback *callback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CheckCaptivePortal(ifname, callback); } \
     162             :   NS_IMETHOD Abort(const char16_t * ifname) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Abort(ifname); } \
     163             :   NS_IMETHOD CancelLogin(const char16_t * eventId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CancelLogin(eventId); } \
     164             :   NS_IMETHOD FinishPreparation(const char16_t * ifname) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FinishPreparation(ifname); } 
     165             : 
     166             : #if 0
     167             : /* Use the code below as a template for the implementation class for this interface. */
     168             : 
     169             : /* Header file */
     170             : class nsCaptivePortalDetector : public nsICaptivePortalDetector
     171             : {
     172             : public:
     173             :   NS_DECL_ISUPPORTS
     174             :   NS_DECL_NSICAPTIVEPORTALDETECTOR
     175             : 
     176             :   nsCaptivePortalDetector();
     177             : 
     178             : private:
     179             :   ~nsCaptivePortalDetector();
     180             : 
     181             : protected:
     182             :   /* additional members */
     183             : };
     184             : 
     185             : /* Implementation file */
     186             : NS_IMPL_ISUPPORTS(nsCaptivePortalDetector, nsICaptivePortalDetector)
     187             : 
     188             : nsCaptivePortalDetector::nsCaptivePortalDetector()
     189             : {
     190             :   /* member initializers and constructor code */
     191             : }
     192             : 
     193             : nsCaptivePortalDetector::~nsCaptivePortalDetector()
     194             : {
     195             :   /* destructor code */
     196             : }
     197             : 
     198             : /* void checkCaptivePortal (in wstring ifname, in nsICaptivePortalCallback callback); */
     199             : NS_IMETHODIMP nsCaptivePortalDetector::CheckCaptivePortal(const char16_t * ifname, nsICaptivePortalCallback *callback)
     200             : {
     201             :     return NS_ERROR_NOT_IMPLEMENTED;
     202             : }
     203             : 
     204             : /* void abort (in wstring ifname); */
     205             : NS_IMETHODIMP nsCaptivePortalDetector::Abort(const char16_t * ifname)
     206             : {
     207             :     return NS_ERROR_NOT_IMPLEMENTED;
     208             : }
     209             : 
     210             : /* void cancelLogin (in wstring eventId); */
     211             : NS_IMETHODIMP nsCaptivePortalDetector::CancelLogin(const char16_t * eventId)
     212             : {
     213             :     return NS_ERROR_NOT_IMPLEMENTED;
     214             : }
     215             : 
     216             : /* void finishPreparation (in wstring ifname); */
     217             : NS_IMETHODIMP nsCaptivePortalDetector::FinishPreparation(const char16_t * ifname)
     218             : {
     219             :     return NS_ERROR_NOT_IMPLEMENTED;
     220             : }
     221             : 
     222             : /* End of implementation class template. */
     223             : #endif
     224             : 
     225             : 
     226             : #endif /* __gen_nsICaptivePortalDetector_h__ */

Generated by: LCOV version 1.13