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

#ifndef __gen_nsIXULBrowserWindow_h__
#define __gen_nsIXULBrowserWindow_h__

#include "nsISupports.h"

/**
 * The nsIXULBrowserWindow supplies the methods that may be called from the
 * internals of the browser area to tell the containing xul window to update
 * it's ui. 
 */
class nsIChannel; /* forward declaration */


/* starting interface:    nsIXULBrowserWindow */
#define NS_IXULBROWSERWINDOW_IID_STR "46b4015c-0121-11d4-9877-00c04fa0d27a"

#define NS_IXULBROWSERWINDOW_IID \
  {0x46b4015c, 0x0121, 0x11d4, \
    { 0x98, 0x77, 0x00, 0xc0, 0x4f, 0xa0, 0xd2, 0x7a }}

class NS_NO_VTABLE nsIXULBrowserWindow : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(NS_IXULBROWSERWINDOW_IID)

  /* void setJSStatus (in wstring status); */
  NS_IMETHOD SetJSStatus(const PRUnichar *status) = 0;

  /* void setJSDefaultStatus (in wstring status); */
  NS_IMETHOD SetJSDefaultStatus(const PRUnichar *status) = 0;

  /* void setOverLink (in wstring link); */
  NS_IMETHOD SetOverLink(const PRUnichar *link) = 0;

  /* void setDefaultStatus (in wstring status); */
  NS_IMETHOD SetDefaultStatus(const PRUnichar *status) = 0;

  /* void onStateChange (in nsIChannel aChannel, in unsigned long aProgressStateFlags); */
  NS_IMETHOD OnStateChange(nsIChannel *aChannel, PRUint32 aProgressStateFlags) = 0;

  /* void onLocationChange (in wstring location); */
  NS_IMETHOD OnLocationChange(const PRUnichar *location) = 0;

  /* void onProgress (in nsIChannel aChannel, in long aCurrentProgress, in long aMaxProgress); */
  NS_IMETHOD OnProgress(nsIChannel *aChannel, PRInt32 aCurrentProgress, PRInt32 aMaxProgress) = 0;

  /* void onStatus (in nsIChannel aChannel, in nsresult aStatus, in wstring aMsg); */
  NS_IMETHOD OnStatus(nsIChannel *aChannel, nsresult aStatus, const PRUnichar *aMsg) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIXULBROWSERWINDOW \
  NS_IMETHOD SetJSStatus(const PRUnichar *status); \
  NS_IMETHOD SetJSDefaultStatus(const PRUnichar *status); \
  NS_IMETHOD SetOverLink(const PRUnichar *link); \
  NS_IMETHOD SetDefaultStatus(const PRUnichar *status); \
  NS_IMETHOD OnStateChange(nsIChannel *aChannel, PRUint32 aProgressStateFlags); \
  NS_IMETHOD OnLocationChange(const PRUnichar *location); \
  NS_IMETHOD OnProgress(nsIChannel *aChannel, PRInt32 aCurrentProgress, PRInt32 aMaxProgress); \
  NS_IMETHOD OnStatus(nsIChannel *aChannel, nsresult aStatus, const PRUnichar *aMsg); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIXULBROWSERWINDOW(_to) \
  NS_IMETHOD SetJSStatus(const PRUnichar *status) { return _to ## SetJSStatus(status); } \
  NS_IMETHOD SetJSDefaultStatus(const PRUnichar *status) { return _to ## SetJSDefaultStatus(status); } \
  NS_IMETHOD SetOverLink(const PRUnichar *link) { return _to ## SetOverLink(link); } \
  NS_IMETHOD SetDefaultStatus(const PRUnichar *status) { return _to ## SetDefaultStatus(status); } \
  NS_IMETHOD OnStateChange(nsIChannel *aChannel, PRUint32 aProgressStateFlags) { return _to ## OnStateChange(aChannel, aProgressStateFlags); } \
  NS_IMETHOD OnLocationChange(const PRUnichar *location) { return _to ## OnLocationChange(location); } \
  NS_IMETHOD OnProgress(nsIChannel *aChannel, PRInt32 aCurrentProgress, PRInt32 aMaxProgress) { return _to ## OnProgress(aChannel, aCurrentProgress, aMaxProgress); } \
  NS_IMETHOD OnStatus(nsIChannel *aChannel, nsresult aStatus, const PRUnichar *aMsg) { return _to ## OnStatus(aChannel, aStatus, aMsg); } 

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

/* Header file */
class nsXULBrowserWindow : public nsIXULBrowserWindow
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIXULBROWSERWINDOW

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

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsXULBrowserWindow, nsIXULBrowserWindow)

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

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

/* void setJSStatus (in wstring status); */
NS_IMETHODIMP nsXULBrowserWindow::SetJSStatus(const PRUnichar *status)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void setJSDefaultStatus (in wstring status); */
NS_IMETHODIMP nsXULBrowserWindow::SetJSDefaultStatus(const PRUnichar *status)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void setOverLink (in wstring link); */
NS_IMETHODIMP nsXULBrowserWindow::SetOverLink(const PRUnichar *link)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void setDefaultStatus (in wstring status); */
NS_IMETHODIMP nsXULBrowserWindow::SetDefaultStatus(const PRUnichar *status)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onStateChange (in nsIChannel aChannel, in unsigned long aProgressStateFlags); */
NS_IMETHODIMP nsXULBrowserWindow::OnStateChange(nsIChannel *aChannel, PRUint32 aProgressStateFlags)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onLocationChange (in wstring location); */
NS_IMETHODIMP nsXULBrowserWindow::OnLocationChange(const PRUnichar *location)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onProgress (in nsIChannel aChannel, in long aCurrentProgress, in long aMaxProgress); */
NS_IMETHODIMP nsXULBrowserWindow::OnProgress(nsIChannel *aChannel, PRInt32 aCurrentProgress, PRInt32 aMaxProgress)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onStatus (in nsIChannel aChannel, in nsresult aStatus, in wstring aMsg); */
NS_IMETHODIMP nsXULBrowserWindow::OnStatus(nsIChannel *aChannel, nsresult aStatus, const PRUnichar *aMsg)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIXULBrowserWindow_h__ */
