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

nsICaptivePortalCallback

nsICaptivePortalDetector

Macros

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 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsICaptivePortalDetector.idl
 */

#ifndef __gen_nsICaptivePortalDetector_h__
#define __gen_nsICaptivePortalDetector_h__


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

/* 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 (); */
  NS_IMETHOD Prepare(void) = 0;

  /* void complete (in bool success); */
  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); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsCaptivePortalCallback : public nsICaptivePortalCallback
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSICAPTIVEPORTALCALLBACK

  nsCaptivePortalCallback();

private:
  ~nsCaptivePortalCallback();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsCaptivePortalCallback, nsICaptivePortalCallback)

nsCaptivePortalCallback::nsCaptivePortalCallback()
{
  /* member initializers and constructor code */
}

nsCaptivePortalCallback::~nsCaptivePortalCallback()
{
  /* destructor code */
}

/* void prepare (); */
NS_IMETHODIMP nsCaptivePortalCallback::Prepare()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void complete (in bool success); */
NS_IMETHODIMP nsCaptivePortalCallback::Complete(bool success)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


/* 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); */
  NS_IMETHOD CheckCaptivePortal(const char16_t * ifname, nsICaptivePortalCallback *callback) = 0;

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

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

  /* void finishPreparation (in wstring ifname); */
  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); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsCaptivePortalDetector : public nsICaptivePortalDetector
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSICAPTIVEPORTALDETECTOR

  nsCaptivePortalDetector();

private:
  ~nsCaptivePortalDetector();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsCaptivePortalDetector, nsICaptivePortalDetector)

nsCaptivePortalDetector::nsCaptivePortalDetector()
{
  /* member initializers and constructor code */
}

nsCaptivePortalDetector::~nsCaptivePortalDetector()
{
  /* destructor code */
}

/* void checkCaptivePortal (in wstring ifname, in nsICaptivePortalCallback callback); */
NS_IMETHODIMP nsCaptivePortalDetector::CheckCaptivePortal(const char16_t * ifname, nsICaptivePortalCallback *callback)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void abort (in wstring ifname); */
NS_IMETHODIMP nsCaptivePortalDetector::Abort(const char16_t * ifname)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void cancelLogin (in wstring eventId); */
NS_IMETHODIMP nsCaptivePortalDetector::CancelLogin(const char16_t * eventId)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void finishPreparation (in wstring ifname); */
NS_IMETHODIMP nsCaptivePortalDetector::FinishPreparation(const char16_t * ifname)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


#endif /* __gen_nsICaptivePortalDetector_h__ */