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

#ifndef __gen_nsIXPINotifier_h__
#define __gen_nsIXPINotifier_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:    nsIXPIListener */
#define NS_IXPILISTENER_IID_STR "eea90d40-b059-11d2-915e-c12b696c9333"

#define NS_IXPILISTENER_IID \
  {0xeea90d40, 0xb059, 0x11d2, \
    { 0x91, 0x5e, 0xc1, 0x2b, 0x69, 0x6c, 0x93, 0x33 }}

class NS_NO_VTABLE nsIXPIListener : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(NS_IXPILISTENER_IID)

  /* void BeforeJavascriptEvaluation (in wstring URL); */
  NS_IMETHOD BeforeJavascriptEvaluation(const PRUnichar *URL) = 0;

  /* void AfterJavascriptEvaluation (in wstring URL); */
  NS_IMETHOD AfterJavascriptEvaluation(const PRUnichar *URL) = 0;

  /* void InstallStarted (in wstring URL, in wstring UIPackageName); */
  NS_IMETHOD InstallStarted(const PRUnichar *URL, const PRUnichar *UIPackageName) = 0;

  /* void ItemScheduled (in wstring message); */
  NS_IMETHOD ItemScheduled(const PRUnichar *message) = 0;

  /* void FinalizeProgress (in wstring message, in long itemNum, in long totNum); */
  NS_IMETHOD FinalizeProgress(const PRUnichar *message, PRInt32 itemNum, PRInt32 totNum) = 0;

  /* void FinalStatus (in wstring URL, in long status); */
  NS_IMETHOD FinalStatus(const PRUnichar *URL, PRInt32 status) = 0;

  /* void LogComment (in wstring comment); */
  NS_IMETHOD LogComment(const PRUnichar *comment) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIXPILISTENER \
  NS_IMETHOD BeforeJavascriptEvaluation(const PRUnichar *URL); \
  NS_IMETHOD AfterJavascriptEvaluation(const PRUnichar *URL); \
  NS_IMETHOD InstallStarted(const PRUnichar *URL, const PRUnichar *UIPackageName); \
  NS_IMETHOD ItemScheduled(const PRUnichar *message); \
  NS_IMETHOD FinalizeProgress(const PRUnichar *message, PRInt32 itemNum, PRInt32 totNum); \
  NS_IMETHOD FinalStatus(const PRUnichar *URL, PRInt32 status); \
  NS_IMETHOD LogComment(const PRUnichar *comment); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIXPILISTENER(_to) \
  NS_IMETHOD BeforeJavascriptEvaluation(const PRUnichar *URL) { return _to BeforeJavascriptEvaluation(URL); } \
  NS_IMETHOD AfterJavascriptEvaluation(const PRUnichar *URL) { return _to AfterJavascriptEvaluation(URL); } \
  NS_IMETHOD InstallStarted(const PRUnichar *URL, const PRUnichar *UIPackageName) { return _to InstallStarted(URL, UIPackageName); } \
  NS_IMETHOD ItemScheduled(const PRUnichar *message) { return _to ItemScheduled(message); } \
  NS_IMETHOD FinalizeProgress(const PRUnichar *message, PRInt32 itemNum, PRInt32 totNum) { return _to FinalizeProgress(message, itemNum, totNum); } \
  NS_IMETHOD FinalStatus(const PRUnichar *URL, PRInt32 status) { return _to FinalStatus(URL, status); } \
  NS_IMETHOD LogComment(const PRUnichar *comment) { return _to LogComment(comment); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIXPILISTENER(_to) \
  NS_IMETHOD BeforeJavascriptEvaluation(const PRUnichar *URL) { return !_to ? NS_ERROR_NULL_POINTER : _to->BeforeJavascriptEvaluation(URL); } \
  NS_IMETHOD AfterJavascriptEvaluation(const PRUnichar *URL) { return !_to ? NS_ERROR_NULL_POINTER : _to->AfterJavascriptEvaluation(URL); } \
  NS_IMETHOD InstallStarted(const PRUnichar *URL, const PRUnichar *UIPackageName) { return !_to ? NS_ERROR_NULL_POINTER : _to->InstallStarted(URL, UIPackageName); } \
  NS_IMETHOD ItemScheduled(const PRUnichar *message) { return !_to ? NS_ERROR_NULL_POINTER : _to->ItemScheduled(message); } \
  NS_IMETHOD FinalizeProgress(const PRUnichar *message, PRInt32 itemNum, PRInt32 totNum) { return !_to ? NS_ERROR_NULL_POINTER : _to->FinalizeProgress(message, itemNum, totNum); } \
  NS_IMETHOD FinalStatus(const PRUnichar *URL, PRInt32 status) { return !_to ? NS_ERROR_NULL_POINTER : _to->FinalStatus(URL, status); } \
  NS_IMETHOD LogComment(const PRUnichar *comment) { return !_to ? NS_ERROR_NULL_POINTER : _to->LogComment(comment); } 

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

/* Header file */
class nsXPIListener : public nsIXPIListener
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIXPILISTENER

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

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsXPIListener, nsIXPIListener)

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

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

/* void BeforeJavascriptEvaluation (in wstring URL); */
NS_IMETHODIMP nsXPIListener::BeforeJavascriptEvaluation(const PRUnichar *URL)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void AfterJavascriptEvaluation (in wstring URL); */
NS_IMETHODIMP nsXPIListener::AfterJavascriptEvaluation(const PRUnichar *URL)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void InstallStarted (in wstring URL, in wstring UIPackageName); */
NS_IMETHODIMP nsXPIListener::InstallStarted(const PRUnichar *URL, const PRUnichar *UIPackageName)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void ItemScheduled (in wstring message); */
NS_IMETHODIMP nsXPIListener::ItemScheduled(const PRUnichar *message)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void FinalizeProgress (in wstring message, in long itemNum, in long totNum); */
NS_IMETHODIMP nsXPIListener::FinalizeProgress(const PRUnichar *message, PRInt32 itemNum, PRInt32 totNum)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void FinalStatus (in wstring URL, in long status); */
NS_IMETHODIMP nsXPIListener::FinalStatus(const PRUnichar *URL, PRInt32 status)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void LogComment (in wstring comment); */
NS_IMETHODIMP nsXPIListener::LogComment(const PRUnichar *comment)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIXPINotifier_h__ */
