/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM e:/builds/moz2_slave/m-aurora-w32-xr/build/netwerk/wifi/nsIWifiListener.idl
 */

#ifndef __gen_nsIWifiListener_h__
#define __gen_nsIWifiListener_h__


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

#ifndef __gen_nsIArray_h__
#include "nsIArray.h"
#endif

#ifndef __gen_nsIWifiAccessPoint_h__
#include "nsIWifiAccessPoint.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:    nsIWifiListener */
#define NS_IWIFILISTENER_IID_STR "bcd4bede-f4a5-4a62-9071-d7a60174e376"

#define NS_IWIFILISTENER_IID \
  {0xbcd4bede, 0xf4a5, 0x4a62, \
    { 0x90, 0x71, 0xd7, 0xa6, 0x01, 0x74, 0xe3, 0x76 }}

class NS_NO_VTABLE nsIWifiListener : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IWIFILISTENER_IID)

  /* void onChange ([array, size_is (aLen)] in nsIWifiAccessPoint accessPoints, in unsigned long aLen); */
  NS_IMETHOD OnChange(nsIWifiAccessPoint **accessPoints, uint32_t aLen) = 0;

  /* void onError (in nsresult error); */
  NS_IMETHOD OnError(nsresult error) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIWifiListener, NS_IWIFILISTENER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIWIFILISTENER \
  NS_IMETHOD OnChange(nsIWifiAccessPoint **accessPoints, uint32_t aLen); \
  NS_IMETHOD OnError(nsresult error); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIWIFILISTENER(_to) \
  NS_IMETHOD OnChange(nsIWifiAccessPoint **accessPoints, uint32_t aLen) { return _to OnChange(accessPoints, aLen); } \
  NS_IMETHOD OnError(nsresult error) { return _to OnError(error); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIWIFILISTENER(_to) \
  NS_IMETHOD OnChange(nsIWifiAccessPoint **accessPoints, uint32_t aLen) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnChange(accessPoints, aLen); } \
  NS_IMETHOD OnError(nsresult error) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnError(error); } 

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

/* Header file */
class nsWifiListener : public nsIWifiListener
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIWIFILISTENER

  nsWifiListener();

private:
  ~nsWifiListener();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsWifiListener, nsIWifiListener)

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

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

/* void onChange ([array, size_is (aLen)] in nsIWifiAccessPoint accessPoints, in unsigned long aLen); */
NS_IMETHODIMP nsWifiListener::OnChange(nsIWifiAccessPoint **accessPoints, uint32_t aLen)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onError (in nsresult error); */
NS_IMETHODIMP nsWifiListener::OnError(nsresult error)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIWifiListener_h__ */
