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

#ifndef __gen_nsPIXPIManagerCallbacks_h__
#define __gen_nsPIXPIManagerCallbacks_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:    nsPIXPIManagerCallbacks */
#define NS_PIXPIMANAGERCALLBACKS_IID_STR "d63ed30a-a858-11d3-a446-0060b0eb5963"

#define NS_PIXPIMANAGERCALLBACKS_IID \
  {0xd63ed30a, 0xa858, 0x11d3, \
    { 0xa4, 0x46, 0x00, 0x60, 0xb0, 0xeb, 0x59, 0x63 }}

/**
 * nsPIXPIManagerCallbacks
 *
 * Private interface to allow the XPInstall XUL progress dialog to talk
 * to the native progress dialog implementation.
 */
class NS_NO_VTABLE nsPIXPIManagerCallbacks : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(NS_PIXPIMANAGERCALLBACKS_IID)

  /* void dialogOpened (in nsISupports aWindow); */
  NS_IMETHOD DialogOpened(nsISupports *aWindow) = 0;

  /* void cancelInstall (); */
  NS_IMETHOD CancelInstall(void) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSPIXPIMANAGERCALLBACKS \
  NS_IMETHOD DialogOpened(nsISupports *aWindow); \
  NS_IMETHOD CancelInstall(void); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSPIXPIMANAGERCALLBACKS(_to) \
  NS_IMETHOD DialogOpened(nsISupports *aWindow) { return _to ## DialogOpened(aWindow); } \
  NS_IMETHOD CancelInstall(void) { return _to ## CancelInstall(); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSPIXPIMANAGERCALLBACKS(_to) \
  NS_IMETHOD DialogOpened(nsISupports *aWindow) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> DialogOpened(aWindow); } \
  NS_IMETHOD CancelInstall(void) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> CancelInstall(); } 

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

/* Header file */
class _MYCLASS_ : public nsPIXPIManagerCallbacks
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSPIXPIMANAGERCALLBACKS

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

/* Implementation file */
NS_IMPL_ISUPPORTS1(_MYCLASS_, nsPIXPIManagerCallbacks)

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

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

/* void dialogOpened (in nsISupports aWindow); */
NS_IMETHODIMP _MYCLASS_::DialogOpened(nsISupports *aWindow)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void cancelInstall (); */
NS_IMETHODIMP _MYCLASS_::CancelInstall()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsPIXPIManagerCallbacks_h__ */
