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

#ifndef __gen_nsIHTTPIndex_h__
#define __gen_nsIHTTPIndex_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:    nsIHTTPIndex */
#define NS_IHTTPINDEX_IID_STR "6f2bdbd0-58c3-11d3-be36-00104bde6048"

#define NS_IHTTPINDEX_IID \
  {0x6f2bdbd0, 0x58c3, 0x11d3, \
    { 0xbe, 0x36, 0x00, 0x10, 0x4b, 0xde, 0x60, 0x48 }}

class NS_NO_VTABLE nsIHTTPIndex : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(NS_IHTTPINDEX_IID)

  /**
     * The charset to use for decoding FTP filenames
     */
  /* attribute ACString encoding; */
  NS_IMETHOD GetEncoding(nsACString & aEncoding) = 0;
  NS_IMETHOD SetEncoding(const nsACString & aEncoding) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIHTTPINDEX \
  NS_IMETHOD GetEncoding(nsACString & aEncoding); \
  NS_IMETHOD SetEncoding(const nsACString & aEncoding); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIHTTPINDEX(_to) \
  NS_IMETHOD GetEncoding(nsACString & aEncoding) { return _to GetEncoding(aEncoding); } \
  NS_IMETHOD SetEncoding(const nsACString & aEncoding) { return _to SetEncoding(aEncoding); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIHTTPINDEX(_to) \
  NS_IMETHOD GetEncoding(nsACString & aEncoding) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEncoding(aEncoding); } \
  NS_IMETHOD SetEncoding(const nsACString & aEncoding) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEncoding(aEncoding); } 

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

/* Header file */
class nsHTTPIndex : public nsIHTTPIndex
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIHTTPINDEX

  nsHTTPIndex();

private:
  ~nsHTTPIndex();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsHTTPIndex, nsIHTTPIndex)

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

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

/* attribute ACString encoding; */
NS_IMETHODIMP nsHTTPIndex::GetEncoding(nsACString & aEncoding)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsHTTPIndex::SetEncoding(const nsACString & aEncoding)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIHTTPIndex_h__ */
