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

#ifndef __gen_nsIFTPChannel_h__
#define __gen_nsIFTPChannel_h__

#include "nsIChannel.h"

class nsIEventQueue; /* forward declaration */


/* starting interface:    nsIFTPChannel */
#define NS_IFTPCHANNEL_IID_STR "3476df52-1dd2-11b2-b928-925d89b33bc0"

#define NS_IFTPCHANNEL_IID \
  {0x3476df52, 0x1dd2, 0x11b2, \
    { 0xb9, 0x28, 0x92, 0x5d, 0x89, 0xb3, 0x3b, 0xc0 }}

class NS_NO_VTABLE nsIFTPChannel : public nsIChannel {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(NS_IFTPCHANNEL_IID)

  /* readonly attribute PRBool UsingProxy; */
  NS_IMETHOD GetUsingProxy(PRBool *aUsingProxy) = 0;

  /* readonly attribute PRBool UsingTransparentProxy; */
  NS_IMETHOD GetUsingTransparentProxy(PRBool *aUsingTransparentProxy) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIFTPCHANNEL \
  NS_IMETHOD GetUsingProxy(PRBool *aUsingProxy); \
  NS_IMETHOD GetUsingTransparentProxy(PRBool *aUsingTransparentProxy); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIFTPCHANNEL(_to) \
  NS_IMETHOD GetUsingProxy(PRBool *aUsingProxy) { return _to ## GetUsingProxy(aUsingProxy); } \
  NS_IMETHOD GetUsingTransparentProxy(PRBool *aUsingTransparentProxy) { return _to ## GetUsingTransparentProxy(aUsingTransparentProxy); } 

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

/* Header file */
class nsFTPChannel : public nsIFTPChannel
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIFTPCHANNEL

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

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsFTPChannel, nsIFTPChannel)

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

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

/* readonly attribute PRBool UsingProxy; */
NS_IMETHODIMP nsFTPChannel::GetUsingProxy(PRBool *aUsingProxy)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute PRBool UsingTransparentProxy; */
NS_IMETHODIMP nsFTPChannel::GetUsingTransparentProxy(PRBool *aUsingTransparentProxy)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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

/**
 * Status nsresult codes: used with nsINotification objects 
 */
#define NS_NET_STATUS_BEGIN_FTP_TRANSACTION NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 27)
#define NS_NET_STATUS_END_FTP_TRANSACTION   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 28)

#endif /* __gen_nsIFTPChannel_h__ */
