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

#ifndef __gen_nsIDOMDeviceStorageStat_h__
#define __gen_nsIDOMDeviceStorageStat_h__


#ifndef __gen_domstubs_h__
#include "domstubs.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:    nsIDOMDeviceStorageStat */
#define NS_IDOMDEVICESTORAGESTAT_IID_STR "b951ec07-d5db-42fc-bf4c-4eded202f7f5"

#define NS_IDOMDEVICESTORAGESTAT_IID \
  {0xb951ec07, 0xd5db, 0x42fc, \
    { 0xbf, 0x4c, 0x4e, 0xde, 0xd2, 0x02, 0xf7, 0xf5 }}

class NS_NO_VTABLE nsIDOMDeviceStorageStat : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMDEVICESTORAGESTAT_IID)

  /* readonly attribute PRUint64 totalBytes; */
  NS_IMETHOD GetTotalBytes(PRUint64 *aTotalBytes) = 0;

  /* readonly attribute PRUint64 freeBytes; */
  NS_IMETHOD GetFreeBytes(PRUint64 *aFreeBytes) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMDeviceStorageStat, NS_IDOMDEVICESTORAGESTAT_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIDOMDEVICESTORAGESTAT \
  NS_IMETHOD GetTotalBytes(PRUint64 *aTotalBytes); \
  NS_IMETHOD GetFreeBytes(PRUint64 *aFreeBytes); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIDOMDEVICESTORAGESTAT(_to) \
  NS_IMETHOD GetTotalBytes(PRUint64 *aTotalBytes) { return _to GetTotalBytes(aTotalBytes); } \
  NS_IMETHOD GetFreeBytes(PRUint64 *aFreeBytes) { return _to GetFreeBytes(aFreeBytes); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIDOMDEVICESTORAGESTAT(_to) \
  NS_IMETHOD GetTotalBytes(PRUint64 *aTotalBytes) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTotalBytes(aTotalBytes); } \
  NS_IMETHOD GetFreeBytes(PRUint64 *aFreeBytes) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFreeBytes(aFreeBytes); } 

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

/* Header file */
class nsDOMDeviceStorageStat : public nsIDOMDeviceStorageStat
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIDOMDEVICESTORAGESTAT

  nsDOMDeviceStorageStat();

private:
  ~nsDOMDeviceStorageStat();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsDOMDeviceStorageStat, nsIDOMDeviceStorageStat)

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

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

/* readonly attribute PRUint64 totalBytes; */
NS_IMETHODIMP nsDOMDeviceStorageStat::GetTotalBytes(PRUint64 *aTotalBytes)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute PRUint64 freeBytes; */
NS_IMETHODIMP nsDOMDeviceStorageStat::GetFreeBytes(PRUint64 *aFreeBytes)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIDOMDeviceStorageStat_h__ */
