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

#ifndef __gen_nsIStreamIOChannel_h__
#define __gen_nsIStreamIOChannel_h__


#ifndef __gen_nsIChannel_h__
#include "nsIChannel.h"
#endif

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIURI; /* forward declaration */

class nsIStreamIO; /* forward declaration */


/* starting interface:    nsIStreamIOChannel */
#define NS_ISTREAMIOCHANNEL_IID_STR "308362ce-0d06-11d4-986e-00c04fa0cf4a"

#define NS_ISTREAMIOCHANNEL_IID \
  {0x308362ce, 0x0d06, 0x11d4, \
    { 0x98, 0x6e, 0x00, 0xc0, 0x4f, 0xa0, 0xcf, 0x4a }}

/**
 * nsIStreamIOChannel specializes nsIChannel to allow a simple channel to be
 * constructed from an nsIStreamIO object and a URL.
 */
class NS_NO_VTABLE nsIStreamIOChannel : public nsIChannel {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISTREAMIOCHANNEL_IID)

  /* void init (in nsIURI uri, in nsIStreamIO io); */
  NS_IMETHOD Init(nsIURI *uri, nsIStreamIO *io) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSISTREAMIOCHANNEL \
  NS_IMETHOD Init(nsIURI *uri, nsIStreamIO *io); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSISTREAMIOCHANNEL(_to) \
  NS_IMETHOD Init(nsIURI *uri, nsIStreamIO *io) { return _to ## Init(uri, io); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSISTREAMIOCHANNEL(_to) \
  NS_IMETHOD Init(nsIURI *uri, nsIStreamIO *io) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> Init(uri, io); } 

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

/* Header file */
class nsStreamIOChannel : public nsIStreamIOChannel
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSISTREAMIOCHANNEL

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

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsStreamIOChannel, nsIStreamIOChannel)

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

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

/* void init (in nsIURI uri, in nsIStreamIO io); */
NS_IMETHODIMP nsStreamIOChannel::Init(nsIURI *uri, nsIStreamIO *io)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIStreamIOChannel_h__ */
