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

#ifndef __gen_nsIAlertsService_h__
#define __gen_nsIAlertsService_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:    nsIAlertListener */
#define NS_IALERTLISTENER_IID_STR "a840623b-5b87-4e99-a74a-9ef0886c11dd"

#define NS_IALERTLISTENER_IID \
  {0xa840623b, 0x5b87, 0x4e99, \
    { 0xa7, 0x4a, 0x9e, 0xf0, 0x88, 0x6c, 0x11, 0xdd }}

class NS_NO_VTABLE nsIAlertListener : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(NS_IALERTLISTENER_IID)

  /* void onAlertFinished (in wstring aAlertCookie); */
  NS_IMETHOD OnAlertFinished(const PRUnichar *aAlertCookie) = 0;

  /* void onAlertClickCallback (in wstring aAlertCookie); */
  NS_IMETHOD OnAlertClickCallback(const PRUnichar *aAlertCookie) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIALERTLISTENER \
  NS_IMETHOD OnAlertFinished(const PRUnichar *aAlertCookie); \
  NS_IMETHOD OnAlertClickCallback(const PRUnichar *aAlertCookie); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIALERTLISTENER(_to) \
  NS_IMETHOD OnAlertFinished(const PRUnichar *aAlertCookie) { return _to OnAlertFinished(aAlertCookie); } \
  NS_IMETHOD OnAlertClickCallback(const PRUnichar *aAlertCookie) { return _to OnAlertClickCallback(aAlertCookie); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIALERTLISTENER(_to) \
  NS_IMETHOD OnAlertFinished(const PRUnichar *aAlertCookie) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnAlertFinished(aAlertCookie); } \
  NS_IMETHOD OnAlertClickCallback(const PRUnichar *aAlertCookie) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnAlertClickCallback(aAlertCookie); } 

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

/* Header file */
class nsAlertListener : public nsIAlertListener
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIALERTLISTENER

  nsAlertListener();
  virtual ~nsAlertListener();
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsAlertListener, nsIAlertListener)

nsAlertListener::nsAlertListener()
{
  NS_INIT_ISUPPORTS();
  /* member initializers and constructor code */
}

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

/* void onAlertFinished (in wstring aAlertCookie); */
NS_IMETHODIMP nsAlertListener::OnAlertFinished(const PRUnichar *aAlertCookie)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onAlertClickCallback (in wstring aAlertCookie); */
NS_IMETHODIMP nsAlertListener::OnAlertClickCallback(const PRUnichar *aAlertCookie)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


/* starting interface:    nsIAlertsService */
#define NS_IALERTSSERVICE_IID_STR "7e8b76c6-a70c-4075-81aa-d48b6152e1b4"

#define NS_IALERTSSERVICE_IID \
  {0x7e8b76c6, 0xa70c, 0x4075, \
    { 0x81, 0xaa, 0xd4, 0x8b, 0x61, 0x52, 0xe1, 0xb4 }}

class NS_NO_VTABLE nsIAlertsService : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(NS_IALERTSSERVICE_IID)

  /* void showAlertNotification (in string aImageUrl, in wstring aAlertTitle, in wstring aAlertText, in boolean alertTextClickable, in wstring aAlertCookie, in nsIAlertListener aAlertListener); */
  NS_IMETHOD ShowAlertNotification(const char *aImageUrl, const PRUnichar *aAlertTitle, const PRUnichar *aAlertText, PRBool alertTextClickable, const PRUnichar *aAlertCookie, nsIAlertListener *aAlertListener) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIALERTSSERVICE \
  NS_IMETHOD ShowAlertNotification(const char *aImageUrl, const PRUnichar *aAlertTitle, const PRUnichar *aAlertText, PRBool alertTextClickable, const PRUnichar *aAlertCookie, nsIAlertListener *aAlertListener); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIALERTSSERVICE(_to) \
  NS_IMETHOD ShowAlertNotification(const char *aImageUrl, const PRUnichar *aAlertTitle, const PRUnichar *aAlertText, PRBool alertTextClickable, const PRUnichar *aAlertCookie, nsIAlertListener *aAlertListener) { return _to ShowAlertNotification(aImageUrl, aAlertTitle, aAlertText, alertTextClickable, aAlertCookie, aAlertListener); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIALERTSSERVICE(_to) \
  NS_IMETHOD ShowAlertNotification(const char *aImageUrl, const PRUnichar *aAlertTitle, const PRUnichar *aAlertText, PRBool alertTextClickable, const PRUnichar *aAlertCookie, nsIAlertListener *aAlertListener) { return !_to ? NS_ERROR_NULL_POINTER : _to->ShowAlertNotification(aImageUrl, aAlertTitle, aAlertText, alertTextClickable, aAlertCookie, aAlertListener); } 

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

/* Header file */
class nsAlertsService : public nsIAlertsService
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIALERTSSERVICE

  nsAlertsService();
  virtual ~nsAlertsService();
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsAlertsService, nsIAlertsService)

nsAlertsService::nsAlertsService()
{
  NS_INIT_ISUPPORTS();
  /* member initializers and constructor code */
}

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

/* void showAlertNotification (in string aImageUrl, in wstring aAlertTitle, in wstring aAlertText, in boolean alertTextClickable, in wstring aAlertCookie, in nsIAlertListener aAlertListener); */
NS_IMETHODIMP nsAlertsService::ShowAlertNotification(const char *aImageUrl, const PRUnichar *aAlertTitle, const PRUnichar *aAlertText, PRBool alertTextClickable, const PRUnichar *aAlertCookie, nsIAlertListener *aAlertListener)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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

#define NS_ALERTSERVICE_CONTRACTID "@mozilla.org/alerts-service;1"

#endif /* __gen_nsIAlertsService_h__ */
