/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM e:/builds/moz2_slave/m-cen-w32-xr/build/dom/power/nsIDOMPowerManager.idl
 */

#ifndef __gen_nsIDOMPowerManager_h__
#define __gen_nsIDOMPowerManager_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:    nsIDOMMozPowerManager */
#define NS_IDOMMOZPOWERMANAGER_IID_STR "6ec16abc-2fe8-4ab3-99b0-0f08405be81b"

#define NS_IDOMMOZPOWERMANAGER_IID \
  {0x6ec16abc, 0x2fe8, 0x4ab3, \
    { 0x99, 0xb0, 0x0f, 0x08, 0x40, 0x5b, 0xe8, 0x1b }}

class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMMozPowerManager : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMMOZPOWERMANAGER_IID)

  /* void powerOff (); */
  NS_SCRIPTABLE NS_IMETHOD PowerOff(void) = 0;

  /* void reboot (); */
  NS_SCRIPTABLE NS_IMETHOD Reboot(void) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMMozPowerManager, NS_IDOMMOZPOWERMANAGER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIDOMMOZPOWERMANAGER \
  NS_SCRIPTABLE NS_IMETHOD PowerOff(void); \
  NS_SCRIPTABLE NS_IMETHOD Reboot(void); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIDOMMOZPOWERMANAGER(_to) \
  NS_SCRIPTABLE NS_IMETHOD PowerOff(void) { return _to PowerOff(); } \
  NS_SCRIPTABLE NS_IMETHOD Reboot(void) { return _to Reboot(); } 

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

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

/* Header file */
class nsDOMMozPowerManager : public nsIDOMMozPowerManager
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIDOMMOZPOWERMANAGER

  nsDOMMozPowerManager();

private:
  ~nsDOMMozPowerManager();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsDOMMozPowerManager, nsIDOMMozPowerManager)

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

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

/* void powerOff (); */
NS_IMETHODIMP nsDOMMozPowerManager::PowerOff()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void reboot (); */
NS_IMETHODIMP nsDOMMozPowerManager::Reboot()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIDOMPowerManager_h__ */
