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

#ifndef __gen_nsIPrintListener_h__
#define __gen_nsIPrintListener_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:    nsIPrintListener */
#define NS_IPRINTLISTENER_IID_STR "db8d9f25-f183-11d3-8f9f-00a024a7d144"

#define NS_IPRINTLISTENER_IID \
  {0xdb8d9f25, 0xf183, 0x11d3, \
    { 0x8f, 0x9f, 0x00, 0xa0, 0x24, 0xa7, 0xd1, 0x44 }}

class NS_NO_VTABLE nsIPrintListener : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(NS_IPRINTLISTENER_IID)

  /* void OnStartPrinting (); */
  NS_IMETHOD OnStartPrinting(void) = 0;

  /* void OnProgressPrinting (in PRUint32 aProgress, in PRUint32 aProgressMax); */
  NS_IMETHOD OnProgressPrinting(PRUint32 aProgress, PRUint32 aProgressMax) = 0;

  /* void OnEndPrinting (in PRUint32 aStatus); */
  NS_IMETHOD OnEndPrinting(PRUint32 aStatus) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIPRINTLISTENER \
  NS_IMETHOD OnStartPrinting(void); \
  NS_IMETHOD OnProgressPrinting(PRUint32 aProgress, PRUint32 aProgressMax); \
  NS_IMETHOD OnEndPrinting(PRUint32 aStatus); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIPRINTLISTENER(_to) \
  NS_IMETHOD OnStartPrinting(void) { return _to OnStartPrinting(); } \
  NS_IMETHOD OnProgressPrinting(PRUint32 aProgress, PRUint32 aProgressMax) { return _to OnProgressPrinting(aProgress, aProgressMax); } \
  NS_IMETHOD OnEndPrinting(PRUint32 aStatus) { return _to OnEndPrinting(aStatus); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIPRINTLISTENER(_to) \
  NS_IMETHOD OnStartPrinting(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnStartPrinting(); } \
  NS_IMETHOD OnProgressPrinting(PRUint32 aProgress, PRUint32 aProgressMax) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnProgressPrinting(aProgress, aProgressMax); } \
  NS_IMETHOD OnEndPrinting(PRUint32 aStatus) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnEndPrinting(aStatus); } 

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

/* Header file */
class nsPrintListener : public nsIPrintListener
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIPRINTLISTENER

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

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsPrintListener, nsIPrintListener)

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

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

/* void OnStartPrinting (); */
NS_IMETHODIMP nsPrintListener::OnStartPrinting()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void OnProgressPrinting (in PRUint32 aProgress, in PRUint32 aProgressMax); */
NS_IMETHODIMP nsPrintListener::OnProgressPrinting(PRUint32 aProgress, PRUint32 aProgressMax)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void OnEndPrinting (in PRUint32 aStatus); */
NS_IMETHODIMP nsPrintListener::OnEndPrinting(PRUint32 aStatus)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIPrintListener_h__ */
