/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM f:/mozilla/xulrunner-1.9.2.15/mozilla-1.9.2/widget/public/nsITaskbarProgress.idl
 */

#ifndef __gen_nsITaskbarProgress_h__
#define __gen_nsITaskbarProgress_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

#ifndef __gen_nsIBaseWindow_h__
#include "nsIBaseWindow.h"
#endif

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
typedef PRInt32 nsTaskbarProgressState;


/* starting interface:    nsITaskbarProgress */
#define NS_ITASKBARPROGRESS_IID_STR "23ac257d-ef3c-4033-b424-be7fef91a86c"

#define NS_ITASKBARPROGRESS_IID \
  {0x23ac257d, 0xef3c, 0x4033, \
    { 0xb4, 0x24, 0xbe, 0x7f, 0xef, 0x91, 0xa8, 0x6c }}

/**
 * Starting in Windows 7, applications can display a progress notification in
 * the taskbar. This class wraps around the native functionality to do this.
 */
class NS_NO_VTABLE NS_SCRIPTABLE nsITaskbarProgress : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITASKBARPROGRESS_IID)

  /**
   * Stop displaying progress on the taskbar button. This should be used when
   * the operation is complete or cancelled.
   */
  enum { STATE_NO_PROGRESS = 0 };

  /**
   * Display a cycling, indeterminate progress bar.
   */
  enum { STATE_INDETERMINATE = 1 };

  /**
   * Display a determinate, normal progress bar.
   */
  enum { STATE_NORMAL = 2 };

  /**
   * Display a determinate, error progress bar.
   */
  enum { STATE_ERROR = 3 };

  /**
   * Display a determinate progress bar indicating that the operation has
   * paused.
   */
  enum { STATE_PAUSED = 4 };

  /**
   * Sets the taskbar progress state and value for this window. The currentValue
   * and maxValue parameters are optional and should be supplied when |state|
   * is one of STATE_NORMAL, STATE_ERROR or STATE_PAUSED.
   *
   * @throws NS_ERROR_INVALID_ARG if state is STATE_NO_PROGRESS or
   *         STATE_INDETERMINATE, and either currentValue or maxValue is not 0.
   * @throws NS_ERROR_ILLEGAL_VALUE if currentValue is greater than maxValue.
   */
  /* void setProgressState (in nsTaskbarProgressState state, [optional] in unsigned long long currentValue, [optional] in unsigned long long maxValue); */
  NS_SCRIPTABLE NS_IMETHOD SetProgressState(nsTaskbarProgressState state, PRUint64 currentValue, PRUint64 maxValue) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsITaskbarProgress, NS_ITASKBARPROGRESS_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSITASKBARPROGRESS \
  NS_SCRIPTABLE NS_IMETHOD SetProgressState(nsTaskbarProgressState state, PRUint64 currentValue, PRUint64 maxValue); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSITASKBARPROGRESS(_to) \
  NS_SCRIPTABLE NS_IMETHOD SetProgressState(nsTaskbarProgressState state, PRUint64 currentValue, PRUint64 maxValue) { return _to SetProgressState(state, currentValue, maxValue); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSITASKBARPROGRESS(_to) \
  NS_SCRIPTABLE NS_IMETHOD SetProgressState(nsTaskbarProgressState state, PRUint64 currentValue, PRUint64 maxValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetProgressState(state, currentValue, maxValue); } 

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

/* Header file */
class nsTaskbarProgress : public nsITaskbarProgress
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSITASKBARPROGRESS

  nsTaskbarProgress();

private:
  ~nsTaskbarProgress();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsTaskbarProgress, nsITaskbarProgress)

nsTaskbarProgress::nsTaskbarProgress()
{
  /* member initializers and constructor code */
}

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

/* void setProgressState (in nsTaskbarProgressState state, [optional] in unsigned long long currentValue, [optional] in unsigned long long maxValue); */
NS_IMETHODIMP nsTaskbarProgress::SetProgressState(nsTaskbarProgressState state, PRUint64 currentValue, PRUint64 maxValue)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsITaskbarProgress_h__ */
