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

#ifndef __gen_nsIStreamTransferOperation_h__
#define __gen_nsIStreamTransferOperation_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

#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 nsIObserver; /* forward declaration */

class nsILocalFile; /* forward declaration */


/* starting interface:    nsIStreamTransferOperation */
#define NS_ISTREAMTRANSFEROPERATION_IID_STR "e2200f90-3e23-11d3-806a-00600811a9c3"

#define NS_ISTREAMTRANSFEROPERATION_IID \
  {0xe2200f90, 0x3e23, 0x11d3, \
    { 0x80, 0x6a, 0x00, 0x60, 0x08, 0x11, 0xa9, 0xc3 }}

class NS_NO_VTABLE nsIStreamTransferOperation : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISTREAMTRANSFEROPERATION_IID)

  /* readonly attribute nsIChannel source; */
  NS_IMETHOD GetSource(nsIChannel * *aSource) = 0;

  /* readonly attribute nsILocalFile target; */
  NS_IMETHOD GetTarget(nsILocalFile * *aTarget) = 0;

  /* attribute nsIObserver observer; */
  NS_IMETHOD GetObserver(nsIObserver * *aObserver) = 0;
  NS_IMETHOD SetObserver(nsIObserver * aObserver) = 0;

  /* void Start (); */
  NS_IMETHOD Start(void) = 0;

  /* void Stop (); */
  NS_IMETHOD Stop(void) = 0;

  enum { kOpAsyncWrite = 1U };

  enum { kOpWrite = 2U };

  enum { kOpOpenOutputStream = 3U };

  enum { kOpCreateTransport = 4U };

  enum { kOpGetService = 5U };

  enum { kOpInputCancel = 6U };

  enum { kOpOutputClose = 8U };

  enum { kOpOutputCancel = 9U };

  enum { kOpRead = 10U };

  enum { kOpCreateFile = 11U };

  enum { kOpAsyncRead = 12U };

  enum { kReasonAccessError = 1U };

  enum { kReasonDiskFull = 2U };

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSISTREAMTRANSFEROPERATION \
  NS_IMETHOD GetSource(nsIChannel * *aSource); \
  NS_IMETHOD GetTarget(nsILocalFile * *aTarget); \
  NS_IMETHOD GetObserver(nsIObserver * *aObserver); \
  NS_IMETHOD SetObserver(nsIObserver * aObserver); \
  NS_IMETHOD Start(void); \
  NS_IMETHOD Stop(void); \

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSISTREAMTRANSFEROPERATION(_to) \
  NS_IMETHOD GetSource(nsIChannel * *aSource) { return _to GetSource(aSource); } \
  NS_IMETHOD GetTarget(nsILocalFile * *aTarget) { return _to GetTarget(aTarget); } \
  NS_IMETHOD GetObserver(nsIObserver * *aObserver) { return _to GetObserver(aObserver); } \
  NS_IMETHOD SetObserver(nsIObserver * aObserver) { return _to SetObserver(aObserver); } \
  NS_IMETHOD Start(void) { return _to Start(); } \
  NS_IMETHOD Stop(void) { return _to Stop(); } \

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSISTREAMTRANSFEROPERATION(_to) \
  NS_IMETHOD GetSource(nsIChannel * *aSource) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSource(aSource); } \
  NS_IMETHOD GetTarget(nsILocalFile * *aTarget) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTarget(aTarget); } \
  NS_IMETHOD GetObserver(nsIObserver * *aObserver) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetObserver(aObserver); } \
  NS_IMETHOD SetObserver(nsIObserver * aObserver) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetObserver(aObserver); } \
  NS_IMETHOD Start(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Start(); } \
  NS_IMETHOD Stop(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Stop(); } \

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

/* Header file */
class nsStreamTransferOperation : public nsIStreamTransferOperation
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSISTREAMTRANSFEROPERATION

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

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsStreamTransferOperation, nsIStreamTransferOperation)

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

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

/* readonly attribute nsIChannel source; */
NS_IMETHODIMP nsStreamTransferOperation::GetSource(nsIChannel * *aSource)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsILocalFile target; */
NS_IMETHODIMP nsStreamTransferOperation::GetTarget(nsILocalFile * *aTarget)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute nsIObserver observer; */
NS_IMETHODIMP nsStreamTransferOperation::GetObserver(nsIObserver * *aObserver)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsStreamTransferOperation::SetObserver(nsIObserver * aObserver)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void Start (); */
NS_IMETHODIMP nsStreamTransferOperation::Start()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void Stop (); */
NS_IMETHODIMP nsStreamTransferOperation::Stop()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIStreamTransferOperation_h__ */
