DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Untracked file

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mozilla/toolkit/components/captivedetect/nsICaptivePortalDetector.idl
 */

#ifndef __gen_nsICaptivePortalDetector_h__
#define __gen_nsICaptivePortalDetector_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

#include "js/GCAnnotations.h"

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif

/* starting interface:    nsICaptivePortalCallback */
#define NS_ICAPTIVEPORTALCALLBACK_IID_STR "593fdeec-6284-4de8-b416-8e63cbdc695e"

#define NS_ICAPTIVEPORTALCALLBACK_IID \
  {0x593fdeec, 0x6284, 0x4de8, \
    { 0xb4, 0x16, 0x8e, 0x63, 0xcb, 0xdc, 0x69, 0x5e }}

class NS_NO_VTABLE nsICaptivePortalCallback : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICAPTIVEPORTALCALLBACK_IID)

  /* void prepare (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Prepare(void) = 0;

  /* void complete (in bool success); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Complete(bool success) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsICaptivePortalCallback, NS_ICAPTIVEPORTALCALLBACK_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICAPTIVEPORTALCALLBACK \
  NS_IMETHOD Prepare(void) override; \
  NS_IMETHOD Complete(bool success) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSICAPTIVEPORTALCALLBACK \
  nsresult Prepare(void); \
  nsresult Complete(bool success); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICAPTIVEPORTALCALLBACK(_to) \
  NS_IMETHOD Prepare(void) override { return _to Prepare(); } \
  NS_IMETHOD Complete(bool success) override { return _to Complete(success); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICAPTIVEPORTALCALLBACK(_to) \
  NS_IMETHOD Prepare(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Prepare(); } \
  NS_IMETHOD Complete(bool success) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Complete(success); } 


/* starting interface:    nsICaptivePortalDetector */
#define NS_ICAPTIVEPORTALDETECTOR_IID_STR "2f827c5a-f551-477f-af09-71adbfbd854a"

#define NS_ICAPTIVEPORTALDETECTOR_IID \
  {0x2f827c5a, 0xf551, 0x477f, \
    { 0xaf, 0x09, 0x71, 0xad, 0xbf, 0xbd, 0x85, 0x4a }}

class NS_NO_VTABLE nsICaptivePortalDetector : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICAPTIVEPORTALDETECTOR_IID)

  /* void checkCaptivePortal (in wstring ifname, in nsICaptivePortalCallback callback); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CheckCaptivePortal(const char16_t * ifname, nsICaptivePortalCallback *callback) = 0;

  /* void abort (in wstring ifname); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Abort(const char16_t * ifname) = 0;

  /* void cancelLogin (in wstring eventId); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CancelLogin(const char16_t * eventId) = 0;

  /* void finishPreparation (in wstring ifname); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD FinishPreparation(const char16_t * ifname) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsICaptivePortalDetector, NS_ICAPTIVEPORTALDETECTOR_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICAPTIVEPORTALDETECTOR \
  NS_IMETHOD CheckCaptivePortal(const char16_t * ifname, nsICaptivePortalCallback *callback) override; \
  NS_IMETHOD Abort(const char16_t * ifname) override; \
  NS_IMETHOD CancelLogin(const char16_t * eventId) override; \
  NS_IMETHOD FinishPreparation(const char16_t * ifname) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSICAPTIVEPORTALDETECTOR \
  nsresult CheckCaptivePortal(const char16_t * ifname, nsICaptivePortalCallback *callback); \
  nsresult Abort(const char16_t * ifname); \
  nsresult CancelLogin(const char16_t * eventId); \
  nsresult FinishPreparation(const char16_t * ifname); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICAPTIVEPORTALDETECTOR(_to) \
  NS_IMETHOD CheckCaptivePortal(const char16_t * ifname, nsICaptivePortalCallback *callback) override { return _to CheckCaptivePortal(ifname, callback); } \
  NS_IMETHOD Abort(const char16_t * ifname) override { return _to Abort(ifname); } \
  NS_IMETHOD CancelLogin(const char16_t * eventId) override { return _to CancelLogin(eventId); } \
  NS_IMETHOD FinishPreparation(const char16_t * ifname) override { return _to FinishPreparation(ifname); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICAPTIVEPORTALDETECTOR(_to) \
  NS_IMETHOD CheckCaptivePortal(const char16_t * ifname, nsICaptivePortalCallback *callback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CheckCaptivePortal(ifname, callback); } \
  NS_IMETHOD Abort(const char16_t * ifname) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Abort(ifname); } \
  NS_IMETHOD CancelLogin(const char16_t * eventId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CancelLogin(eventId); } \
  NS_IMETHOD FinishPreparation(const char16_t * ifname) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FinishPreparation(ifname); } 


#endif /* __gen_nsICaptivePortalDetector_h__ */