/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl\nsIQuotaManager.idl
 */

#ifndef __gen_nsIQuotaManager_h__
#define __gen_nsIQuotaManager_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
class nsIQuotaRequest; /* forward declaration */

class nsIPrincipal; /* forward declaration */

class nsIUsageCallback; /* forward declaration */


/* starting interface:    nsIQuotaManager */
#define NS_IQUOTAMANAGER_IID_STR "101cf53c-e7f3-4723-9f43-a23a85c8eda0"

#define NS_IQUOTAMANAGER_IID \
  {0x101cf53c, 0xe7f3, 0x4723, \
    { 0x9f, 0x43, 0xa2, 0x3a, 0x85, 0xc8, 0xed, 0xa0 }}

class NS_NO_VTABLE nsIQuotaManager : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IQUOTAMANAGER_IID)

  /* nsIQuotaRequest getUsageForPrincipal (in nsIPrincipal aPrincipal, in nsIUsageCallback aCallback); */
  NS_IMETHOD GetUsageForPrincipal(nsIPrincipal *aPrincipal, nsIUsageCallback *aCallback, nsIQuotaRequest * *_retval) = 0;

  /* void clear (); */
  NS_IMETHOD Clear(void) = 0;

  /* void clearStoragesForPrincipal (in nsIPrincipal aPrincipal, [optional] in ACString aPersistenceType); */
  NS_IMETHOD ClearStoragesForPrincipal(nsIPrincipal *aPrincipal, const nsACString & aPersistenceType) = 0;

  /* void reset (); */
  NS_IMETHOD Reset(void) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIQuotaManager, NS_IQUOTAMANAGER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIQUOTAMANAGER \
  NS_IMETHOD GetUsageForPrincipal(nsIPrincipal *aPrincipal, nsIUsageCallback *aCallback, nsIQuotaRequest * *_retval) override; \
  NS_IMETHOD Clear(void) override; \
  NS_IMETHOD ClearStoragesForPrincipal(nsIPrincipal *aPrincipal, const nsACString & aPersistenceType) override; \
  NS_IMETHOD Reset(void) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSIQUOTAMANAGER \
  NS_METHOD GetUsageForPrincipal(nsIPrincipal *aPrincipal, nsIUsageCallback *aCallback, nsIQuotaRequest * *_retval); \
  NS_METHOD Clear(void); \
  NS_METHOD ClearStoragesForPrincipal(nsIPrincipal *aPrincipal, const nsACString & aPersistenceType); \
  NS_METHOD Reset(void); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIQUOTAMANAGER(_to) \
  NS_IMETHOD GetUsageForPrincipal(nsIPrincipal *aPrincipal, nsIUsageCallback *aCallback, nsIQuotaRequest * *_retval) override { return _to GetUsageForPrincipal(aPrincipal, aCallback, _retval); } \
  NS_IMETHOD Clear(void) override { return _to Clear(); } \
  NS_IMETHOD ClearStoragesForPrincipal(nsIPrincipal *aPrincipal, const nsACString & aPersistenceType) override { return _to ClearStoragesForPrincipal(aPrincipal, aPersistenceType); } \
  NS_IMETHOD Reset(void) override { return _to Reset(); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIQUOTAMANAGER(_to) \
  NS_IMETHOD GetUsageForPrincipal(nsIPrincipal *aPrincipal, nsIUsageCallback *aCallback, nsIQuotaRequest * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUsageForPrincipal(aPrincipal, aCallback, _retval); } \
  NS_IMETHOD Clear(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Clear(); } \
  NS_IMETHOD ClearStoragesForPrincipal(nsIPrincipal *aPrincipal, const nsACString & aPersistenceType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ClearStoragesForPrincipal(aPrincipal, aPersistenceType); } \
  NS_IMETHOD Reset(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Reset(); } 

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

/* Header file */
class nsQuotaManager : public nsIQuotaManager
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIQUOTAMANAGER

  nsQuotaManager();

private:
  ~nsQuotaManager();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsQuotaManager, nsIQuotaManager)

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

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

/* nsIQuotaRequest getUsageForPrincipal (in nsIPrincipal aPrincipal, in nsIUsageCallback aCallback); */
NS_IMETHODIMP nsQuotaManager::GetUsageForPrincipal(nsIPrincipal *aPrincipal, nsIUsageCallback *aCallback, nsIQuotaRequest * *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void clear (); */
NS_IMETHODIMP nsQuotaManager::Clear()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void clearStoragesForPrincipal (in nsIPrincipal aPrincipal, [optional] in ACString aPersistenceType); */
NS_IMETHODIMP nsQuotaManager::ClearStoragesForPrincipal(nsIPrincipal *aPrincipal, const nsACString & aPersistenceType)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void reset (); */
NS_IMETHODIMP nsQuotaManager::Reset()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIQuotaManager_h__ */
