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

#ifndef __gen_nsIImgManager_h__
#define __gen_nsIImgManager_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:    nsIImgManager */
#define NS_IIMGMANAGER_IID_STR "d60b3710-166d-11d5-a542-0010a401eb10"

#define NS_IIMGMANAGER_IID \
  {0xd60b3710, 0x166d, 0x11d5, \
    { 0xa5, 0x42, 0x00, 0x10, 0xa4, 0x01, 0xeb, 0x10 }}

class NS_NO_VTABLE nsIImgManager : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(NS_IIMGMANAGER_IID)

  /* void block (in string imageURL); */
  NS_IMETHOD Block(const char *imageURL) = 0;

  /* boolean checkForPermission (in string hostname, in string firstHostname); */
  NS_IMETHOD CheckForPermission(const char *hostname, const char *firstHostname, PRBool *_retval) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIIMGMANAGER \
  NS_IMETHOD Block(const char *imageURL); \
  NS_IMETHOD CheckForPermission(const char *hostname, const char *firstHostname, PRBool *_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIIMGMANAGER(_to) \
  NS_IMETHOD Block(const char *imageURL) { return _to ## Block(imageURL); } \
  NS_IMETHOD CheckForPermission(const char *hostname, const char *firstHostname, PRBool *_retval) { return _to ## CheckForPermission(hostname, firstHostname, _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_NSIIMGMANAGER(_to) \
  NS_IMETHOD Block(const char *imageURL) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> Block(imageURL); } \
  NS_IMETHOD CheckForPermission(const char *hostname, const char *firstHostname, PRBool *_retval) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> CheckForPermission(hostname, firstHostname, _retval); } 

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

/* Header file */
class nsImgManager : public nsIImgManager
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIIMGMANAGER

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

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsImgManager, nsIImgManager)

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

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

/* void block (in string imageURL); */
NS_IMETHODIMP nsImgManager::Block(const char *imageURL)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean checkForPermission (in string hostname, in string firstHostname); */
NS_IMETHODIMP nsImgManager::CheckForPermission(const char *hostname, const char *firstHostname, PRBool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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

// {D60B3710-166D-11d5-A542-0010A401EB10}
#define NS_IMGMANAGER_CID \
{ 0xd60b3710, 0x166d, 0x11d5, { 0xa5, 0x42, 0x0, 0x10, 0xa4, 0x1, 0xeb, 0x10 } }
#define NS_IMGMANAGER_CONTRACTID "@mozilla.org/imgmanager;1"

#endif /* __gen_nsIImgManager_h__ */
