/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIPresentationListener.idl
 */

#ifndef __gen_nsIPresentationListener_h__
#define __gen_nsIPresentationListener_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:    nsIPresentationListener */
#define NS_IPRESENTATIONLISTENER_IID_STR "0105f837-4279-4715-9d5b-2dc3f8b65353"

#define NS_IPRESENTATIONLISTENER_IID \
  {0x0105f837, 0x4279, 0x4715, \
    { 0x9d, 0x5b, 0x2d, 0xc3, 0xf8, 0xb6, 0x53, 0x53 }}

class NS_NO_VTABLE nsIPresentationListener : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPRESENTATIONLISTENER_IID)

  /* void notifyAvailableChange (in bool available); */
  NS_IMETHOD NotifyAvailableChange(bool available) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIPresentationListener, NS_IPRESENTATIONLISTENER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIPRESENTATIONLISTENER \
  NS_IMETHOD NotifyAvailableChange(bool available) 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_NSIPRESENTATIONLISTENER \
  NS_METHOD NotifyAvailableChange(bool available); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIPRESENTATIONLISTENER(_to) \
  NS_IMETHOD NotifyAvailableChange(bool available) override { return _to NotifyAvailableChange(available); } 

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

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

/* Header file */
class nsPresentationListener : public nsIPresentationListener
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIPRESENTATIONLISTENER

  nsPresentationListener();

private:
  ~nsPresentationListener();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsPresentationListener, nsIPresentationListener)

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

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

/* void notifyAvailableChange (in bool available); */
NS_IMETHODIMP nsPresentationListener::NotifyAvailableChange(bool available)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


/* starting interface:    nsIPresentationSessionListener */
#define NS_IPRESENTATIONSESSIONLISTENER_IID_STR "3b9ae71f-2905-4969-9117-101627c1c2ea"

#define NS_IPRESENTATIONSESSIONLISTENER_IID \
  {0x3b9ae71f, 0x2905, 0x4969, \
    { 0x91, 0x17, 0x10, 0x16, 0x27, 0xc1, 0xc2, 0xea }}

class NS_NO_VTABLE nsIPresentationSessionListener : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPRESENTATIONSESSIONLISTENER_IID)

  enum {
    STATE_CONNECTED = 0U,
    STATE_DISCONNECTED = 1U,
    STATE_TERMINATED = 2U
  };

  /* void notifyStateChange (in DOMString sessionId, in unsigned short state); */
  NS_IMETHOD NotifyStateChange(const nsAString & sessionId, uint16_t state) = 0;

  /* void notifyMessage (in DOMString sessionId, in ACString data); */
  NS_IMETHOD NotifyMessage(const nsAString & sessionId, const nsACString & data) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIPresentationSessionListener, NS_IPRESENTATIONSESSIONLISTENER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIPRESENTATIONSESSIONLISTENER \
  NS_IMETHOD NotifyStateChange(const nsAString & sessionId, uint16_t state) override; \
  NS_IMETHOD NotifyMessage(const nsAString & sessionId, const nsACString & data) 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_NSIPRESENTATIONSESSIONLISTENER \
  NS_METHOD NotifyStateChange(const nsAString & sessionId, uint16_t state); \
  NS_METHOD NotifyMessage(const nsAString & sessionId, const nsACString & data); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIPRESENTATIONSESSIONLISTENER(_to) \
  NS_IMETHOD NotifyStateChange(const nsAString & sessionId, uint16_t state) override { return _to NotifyStateChange(sessionId, state); } \
  NS_IMETHOD NotifyMessage(const nsAString & sessionId, const nsACString & data) override { return _to NotifyMessage(sessionId, data); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIPRESENTATIONSESSIONLISTENER(_to) \
  NS_IMETHOD NotifyStateChange(const nsAString & sessionId, uint16_t state) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyStateChange(sessionId, state); } \
  NS_IMETHOD NotifyMessage(const nsAString & sessionId, const nsACString & data) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyMessage(sessionId, data); } 

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

/* Header file */
class nsPresentationSessionListener : public nsIPresentationSessionListener
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIPRESENTATIONSESSIONLISTENER

  nsPresentationSessionListener();

private:
  ~nsPresentationSessionListener();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsPresentationSessionListener, nsIPresentationSessionListener)

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

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

/* void notifyStateChange (in DOMString sessionId, in unsigned short state); */
NS_IMETHODIMP nsPresentationSessionListener::NotifyStateChange(const nsAString & sessionId, uint16_t state)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void notifyMessage (in DOMString sessionId, in ACString data); */
NS_IMETHODIMP nsPresentationSessionListener::NotifyMessage(const nsAString & sessionId, const nsACString & data)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIPresentationListener_h__ */
