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

#ifndef __gen_flockIFeedChannel_h__
#define __gen_flockIFeedChannel_h__


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

#ifndef __gen_nsIInputStream_h__
#include "nsIInputStream.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:    flockIFeedChannel */
#define FLOCKIFEEDCHANNEL_IID_STR "7b0a2ffc-189c-420d-8029-668b19ab7276"

#define FLOCKIFEEDCHANNEL_IID \
  {0x7b0a2ffc, 0x189c, 0x420d, \
    { 0x80, 0x29, 0x66, 0x8b, 0x19, 0xab, 0x72, 0x76 }}

class NS_NO_VTABLE flockIFeedChannel : public nsIChannel {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(FLOCKIFEEDCHANNEL_IID)

  /* void sendStream (in nsIInputStream stream, in unsigned long offset, in unsigned long count); */
  NS_IMETHOD SendStream(nsIInputStream *stream, PRUint32 offset, PRUint32 count) = 0;

  /* void finish (); */
  NS_IMETHOD Finish(void) = 0;

  /* attribute boolean bypassCache; */
  NS_IMETHOD GetBypassCache(PRBool *aBypassCache) = 0;
  NS_IMETHOD SetBypassCache(PRBool aBypassCache) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_FLOCKIFEEDCHANNEL \
  NS_IMETHOD SendStream(nsIInputStream *stream, PRUint32 offset, PRUint32 count); \
  NS_IMETHOD Finish(void); \
  NS_IMETHOD GetBypassCache(PRBool *aBypassCache); \
  NS_IMETHOD SetBypassCache(PRBool aBypassCache); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_FLOCKIFEEDCHANNEL(_to) \
  NS_IMETHOD SendStream(nsIInputStream *stream, PRUint32 offset, PRUint32 count) { return _to SendStream(stream, offset, count); } \
  NS_IMETHOD Finish(void) { return _to Finish(); } \
  NS_IMETHOD GetBypassCache(PRBool *aBypassCache) { return _to GetBypassCache(aBypassCache); } \
  NS_IMETHOD SetBypassCache(PRBool aBypassCache) { return _to SetBypassCache(aBypassCache); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_FLOCKIFEEDCHANNEL(_to) \
  NS_IMETHOD SendStream(nsIInputStream *stream, PRUint32 offset, PRUint32 count) { return !_to ? NS_ERROR_NULL_POINTER : _to->SendStream(stream, offset, count); } \
  NS_IMETHOD Finish(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Finish(); } \
  NS_IMETHOD GetBypassCache(PRBool *aBypassCache) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBypassCache(aBypassCache); } \
  NS_IMETHOD SetBypassCache(PRBool aBypassCache) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBypassCache(aBypassCache); } 

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

/* Header file */
class _MYCLASS_ : public flockIFeedChannel
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_FLOCKIFEEDCHANNEL

  _MYCLASS_();

private:
  ~_MYCLASS_();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(_MYCLASS_, flockIFeedChannel)

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

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

/* void sendStream (in nsIInputStream stream, in unsigned long offset, in unsigned long count); */
NS_IMETHODIMP _MYCLASS_::SendStream(nsIInputStream *stream, PRUint32 offset, PRUint32 count)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void finish (); */
NS_IMETHODIMP _MYCLASS_::Finish()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute boolean bypassCache; */
NS_IMETHODIMP _MYCLASS_::GetBypassCache(PRBool *aBypassCache)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP _MYCLASS_::SetBypassCache(PRBool aBypassCache)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_flockIFeedChannel_h__ */
