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

#ifndef __gen_nsIUnkContentTypeHandler_h__
#define __gen_nsIUnkContentTypeHandler_h__

#include "nsIAppShellComponent.h"
#include "domstubs.h"
#include "nsIChannel.h"


/* starting interface:    nsIUnknownContentTypeHandler */
#define NS_IUNKNOWNCONTENTTYPEHANDLER_IID_STR "a6cf90ef-15b3-11d2-932e-00805f8add32"

#define NS_IUNKNOWNCONTENTTYPEHANDLER_IID \
  {0xa6cf90ef, 0x15b3, 0x11d2, \
    { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}

class NS_NO_VTABLE nsIUnknownContentTypeHandler : public nsIAppShellComponent {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(NS_IUNKNOWNCONTENTTYPEHANDLER_IID)

  /* void HandleUnknownContentType (in nsIChannel aURL, in string aContentType, in nsIDOMWindowInternal aWindow); */
  NS_IMETHOD HandleUnknownContentType(nsIChannel *aURL, const char *aContentType, nsIDOMWindowInternal *aWindow) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIUNKNOWNCONTENTTYPEHANDLER \
  NS_IMETHOD HandleUnknownContentType(nsIChannel *aURL, const char *aContentType, nsIDOMWindowInternal *aWindow); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIUNKNOWNCONTENTTYPEHANDLER(_to) \
  NS_IMETHOD HandleUnknownContentType(nsIChannel *aURL, const char *aContentType, nsIDOMWindowInternal *aWindow) { return _to ## HandleUnknownContentType(aURL, aContentType, aWindow); } 

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

/* Header file */
class nsUnknownContentTypeHandler : public nsIUnknownContentTypeHandler
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIUNKNOWNCONTENTTYPEHANDLER

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

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsUnknownContentTypeHandler, nsIUnknownContentTypeHandler)

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

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

/* void HandleUnknownContentType (in nsIChannel aURL, in string aContentType, in nsIDOMWindowInternal aWindow); */
NS_IMETHODIMP nsUnknownContentTypeHandler::HandleUnknownContentType(nsIChannel *aURL, const char *aContentType, nsIDOMWindowInternal *aWindow)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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

#define NS_IUNKNOWNCONTENTTYPEHANDLER_CONTRACTID NS_IAPPSHELLCOMPONENT_CONTRACTID "/unknownContentType;1"
#define NS_IUNKNOWNCONTENTTYPEHANDLER_CLASSNAME "Mozilla Unknown Content-Type Handler Component"

#endif /* __gen_nsIUnkContentTypeHandler_h__ */
