/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIPermission.idl
 */

#ifndef __gen_nsIPermission_h__
#define __gen_nsIPermission_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:    nsIPermission */
#define NS_IPERMISSION_IID_STR "28f16d80-157b-11d5-a542-0010a401eb10"

#define NS_IPERMISSION_IID \
  {0x28f16d80, 0x157b, 0x11d5, \
    { 0xa5, 0x42, 0x00, 0x10, 0xa4, 0x01, 0xeb, 0x10 }}

/**
  This interface represents a "permission" object.
*/
class NS_NO_VTABLE nsIPermission : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(NS_IPERMISSION_IID)

  /* readonly attribute string host; */
  NS_IMETHOD GetHost(char * *aHost) = 0;

  /* readonly attribute PRInt32 type; */
  NS_IMETHOD GetType(PRInt32 *aType) = 0;

  /* readonly attribute boolean capability; */
  NS_IMETHOD GetCapability(PRBool *aCapability) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIPERMISSION \
  NS_IMETHOD GetHost(char * *aHost); \
  NS_IMETHOD GetType(PRInt32 *aType); \
  NS_IMETHOD GetCapability(PRBool *aCapability); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIPERMISSION(_to) \
  NS_IMETHOD GetHost(char * *aHost) { return _to ## GetHost(aHost); } \
  NS_IMETHOD GetType(PRInt32 *aType) { return _to ## GetType(aType); } \
  NS_IMETHOD GetCapability(PRBool *aCapability) { return _to ## GetCapability(aCapability); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIPERMISSION(_to) \
  NS_IMETHOD GetHost(char * *aHost) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->GetHost(aHost); } \
  NS_IMETHOD GetType(PRInt32 *aType) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->GetType(aType); } \
  NS_IMETHOD GetCapability(PRBool *aCapability) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->GetCapability(aCapability); } 

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

/* Header file */
class nsPermission : public nsIPermission
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIPERMISSION

  nsPermission();
  virtual ~nsPermission();
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsPermission, nsIPermission)

nsPermission::nsPermission()
{
  NS_INIT_ISUPPORTS();
  /* member initializers and constructor code */
}

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

/* readonly attribute string host; */
NS_IMETHODIMP nsPermission::GetHost(char * *aHost)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute PRInt32 type; */
NS_IMETHODIMP nsPermission::GetType(PRInt32 *aType)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute boolean capability; */
NS_IMETHODIMP nsPermission::GetCapability(PRBool *aCapability)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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

// {28F16D80-157B-11d5-A542-0010A401EB10}
#define NS_PERMISSION_CID \
{ 0x28f16d80, 0x157b, 0x11d5, { 0xa5, 0x42, 0x0, 0x10, 0xa4, 0x1, 0xeb, 0x10 } }
#define NS_PERMISSION_CONTRACTID "@mozilla.org/permission;1"

#endif /* __gen_nsIPermission_h__ */
