/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM e:/builds/moz2_slave/m-aurora-w32-xr/build/dom/interfaces/permission/nsIDOMPermissionSettings.idl
 */

#ifndef __gen_nsIDOMPermissionSettings_h__
#define __gen_nsIDOMPermissionSettings_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
class nsIDOMDOMRequest; /* forward declaration */


/* starting interface:    nsIDOMPermissionSettings */
#define NS_IDOMPERMISSIONSETTINGS_IID_STR "b3e3894e-b24e-4174-9c80-08115709615b"

#define NS_IDOMPERMISSIONSETTINGS_IID \
  {0xb3e3894e, 0xb24e, 0x4174, \
    { 0x9c, 0x80, 0x08, 0x11, 0x57, 0x09, 0x61, 0x5b }}

class NS_NO_VTABLE nsIDOMPermissionSettings : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMPERMISSIONSETTINGS_IID)

  /* DOMString get (in DOMString permission, in DOMString manifestURI, in DOMString origin, in bool browserFlag); */
  NS_IMETHOD Get(const nsAString & permission, const nsAString & manifestURI, const nsAString & origin, bool browserFlag, nsAString & _retval) = 0;

  /* void set (in DOMString permission, in DOMString value, in DOMString manifestURI, in DOMString origin, in bool browserFlag); */
  NS_IMETHOD Set(const nsAString & permission, const nsAString & value, const nsAString & manifestURI, const nsAString & origin, bool browserFlag) = 0;

  /* bool isExplicit (in DOMString permission, in DOMString manifestURI, in DOMString origin, in bool browserFlag); */
  NS_IMETHOD IsExplicit(const nsAString & permission, const nsAString & manifestURI, const nsAString & origin, bool browserFlag, bool *_retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMPermissionSettings, NS_IDOMPERMISSIONSETTINGS_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIDOMPERMISSIONSETTINGS \
  NS_IMETHOD Get(const nsAString & permission, const nsAString & manifestURI, const nsAString & origin, bool browserFlag, nsAString & _retval); \
  NS_IMETHOD Set(const nsAString & permission, const nsAString & value, const nsAString & manifestURI, const nsAString & origin, bool browserFlag); \
  NS_IMETHOD IsExplicit(const nsAString & permission, const nsAString & manifestURI, const nsAString & origin, bool browserFlag, bool *_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIDOMPERMISSIONSETTINGS(_to) \
  NS_IMETHOD Get(const nsAString & permission, const nsAString & manifestURI, const nsAString & origin, bool browserFlag, nsAString & _retval) { return _to Get(permission, manifestURI, origin, browserFlag, _retval); } \
  NS_IMETHOD Set(const nsAString & permission, const nsAString & value, const nsAString & manifestURI, const nsAString & origin, bool browserFlag) { return _to Set(permission, value, manifestURI, origin, browserFlag); } \
  NS_IMETHOD IsExplicit(const nsAString & permission, const nsAString & manifestURI, const nsAString & origin, bool browserFlag, bool *_retval) { return _to IsExplicit(permission, manifestURI, origin, browserFlag, _retval); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIDOMPERMISSIONSETTINGS(_to) \
  NS_IMETHOD Get(const nsAString & permission, const nsAString & manifestURI, const nsAString & origin, bool browserFlag, nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Get(permission, manifestURI, origin, browserFlag, _retval); } \
  NS_IMETHOD Set(const nsAString & permission, const nsAString & value, const nsAString & manifestURI, const nsAString & origin, bool browserFlag) { return !_to ? NS_ERROR_NULL_POINTER : _to->Set(permission, value, manifestURI, origin, browserFlag); } \
  NS_IMETHOD IsExplicit(const nsAString & permission, const nsAString & manifestURI, const nsAString & origin, bool browserFlag, bool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsExplicit(permission, manifestURI, origin, browserFlag, _retval); } 

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

/* Header file */
class nsDOMPermissionSettings : public nsIDOMPermissionSettings
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIDOMPERMISSIONSETTINGS

  nsDOMPermissionSettings();

private:
  ~nsDOMPermissionSettings();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsDOMPermissionSettings, nsIDOMPermissionSettings)

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

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

/* DOMString get (in DOMString permission, in DOMString manifestURI, in DOMString origin, in bool browserFlag); */
NS_IMETHODIMP nsDOMPermissionSettings::Get(const nsAString & permission, const nsAString & manifestURI, const nsAString & origin, bool browserFlag, nsAString & _retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void set (in DOMString permission, in DOMString value, in DOMString manifestURI, in DOMString origin, in bool browserFlag); */
NS_IMETHODIMP nsDOMPermissionSettings::Set(const nsAString & permission, const nsAString & value, const nsAString & manifestURI, const nsAString & origin, bool browserFlag)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* bool isExplicit (in DOMString permission, in DOMString manifestURI, in DOMString origin, in bool browserFlag); */
NS_IMETHODIMP nsDOMPermissionSettings::IsExplicit(const nsAString & permission, const nsAString & manifestURI, const nsAString & origin, bool browserFlag, bool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIDOMPermissionSettings_h__ */
