/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM e:/builds/moz2_slave/m-cen-w32-xr/build/image/public/imgIDecoderObserver.idl
 */

#ifndef __gen_imgIDecoderObserver_h__
#define __gen_imgIDecoderObserver_h__


#ifndef __gen_imgIContainerObserver_h__
#include "imgIContainerObserver.h"
#endif

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

class imgIContainer; /* forward declaration */

#include "nsRect.h"

/* starting interface:    imgIDecoderObserver */
#define IMGIDECODEROBSERVER_IID_STR "0089cf0c-210c-4b44-9ab0-8099b32bcf64"

#define IMGIDECODEROBSERVER_IID \
  {0x0089cf0c, 0x210c, 0x4b44, \
    { 0x9a, 0xb0, 0x80, 0x99, 0xb3, 0x2b, 0xcf, 0x64 }}

class NS_NO_VTABLE imgIDecoderObserver : public imgIContainerObserver {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(IMGIDECODEROBSERVER_IID)

  /* void onStartRequest (); */
  NS_IMETHOD OnStartRequest(void) = 0;

  /* void onStartDecode (); */
  NS_IMETHOD OnStartDecode(void) = 0;

  /* void onStartContainer (); */
  NS_IMETHOD OnStartContainer(void) = 0;

  /* [noscript] void onDataAvailable ([const] in nsIntRect aRect); */
  NS_IMETHOD OnDataAvailable(const nsIntRect *aRect) = 0;

  /* void onStopFrame (); */
  NS_IMETHOD OnStopFrame(void) = 0;

  /* void onImageIsAnimated (); */
  NS_IMETHOD OnImageIsAnimated(void) = 0;

  /* void onStopDecode (in nsresult status); */
  NS_IMETHOD OnStopDecode(nsresult status) = 0;

  /* void onStopRequest (in boolean aIsLastPart); */
  NS_IMETHOD OnStopRequest(bool aIsLastPart) = 0;

  /* void onDiscard (); */
  NS_IMETHOD OnDiscard(void) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(imgIDecoderObserver, IMGIDECODEROBSERVER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_IMGIDECODEROBSERVER \
  NS_IMETHOD OnStartRequest(void); \
  NS_IMETHOD OnStartDecode(void); \
  NS_IMETHOD OnStartContainer(void); \
  NS_IMETHOD OnDataAvailable(const nsIntRect *aRect); \
  NS_IMETHOD OnStopFrame(void); \
  NS_IMETHOD OnImageIsAnimated(void); \
  NS_IMETHOD OnStopDecode(nsresult status); \
  NS_IMETHOD OnStopRequest(bool aIsLastPart); \
  NS_IMETHOD OnDiscard(void); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_IMGIDECODEROBSERVER(_to) \
  NS_IMETHOD OnStartRequest(void) { return _to OnStartRequest(); } \
  NS_IMETHOD OnStartDecode(void) { return _to OnStartDecode(); } \
  NS_IMETHOD OnStartContainer(void) { return _to OnStartContainer(); } \
  NS_IMETHOD OnDataAvailable(const nsIntRect *aRect) { return _to OnDataAvailable(aRect); } \
  NS_IMETHOD OnStopFrame(void) { return _to OnStopFrame(); } \
  NS_IMETHOD OnImageIsAnimated(void) { return _to OnImageIsAnimated(); } \
  NS_IMETHOD OnStopDecode(nsresult status) { return _to OnStopDecode(status); } \
  NS_IMETHOD OnStopRequest(bool aIsLastPart) { return _to OnStopRequest(aIsLastPart); } \
  NS_IMETHOD OnDiscard(void) { return _to OnDiscard(); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_IMGIDECODEROBSERVER(_to) \
  NS_IMETHOD OnStartRequest(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnStartRequest(); } \
  NS_IMETHOD OnStartDecode(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnStartDecode(); } \
  NS_IMETHOD OnStartContainer(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnStartContainer(); } \
  NS_IMETHOD OnDataAvailable(const nsIntRect *aRect) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnDataAvailable(aRect); } \
  NS_IMETHOD OnStopFrame(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnStopFrame(); } \
  NS_IMETHOD OnImageIsAnimated(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnImageIsAnimated(); } \
  NS_IMETHOD OnStopDecode(nsresult status) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnStopDecode(status); } \
  NS_IMETHOD OnStopRequest(bool aIsLastPart) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnStopRequest(aIsLastPart); } \
  NS_IMETHOD OnDiscard(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnDiscard(); } 

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

/* Header file */
class _MYCLASS_ : public imgIDecoderObserver
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_IMGIDECODEROBSERVER

  _MYCLASS_();

private:
  ~_MYCLASS_();

protected:
  /* additional members */
};

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

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

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

/* void onStartRequest (); */
NS_IMETHODIMP _MYCLASS_::OnStartRequest()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onStartDecode (); */
NS_IMETHODIMP _MYCLASS_::OnStartDecode()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onStartContainer (); */
NS_IMETHODIMP _MYCLASS_::OnStartContainer()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [noscript] void onDataAvailable ([const] in nsIntRect aRect); */
NS_IMETHODIMP _MYCLASS_::OnDataAvailable(const nsIntRect *aRect)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onStopFrame (); */
NS_IMETHODIMP _MYCLASS_::OnStopFrame()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onImageIsAnimated (); */
NS_IMETHODIMP _MYCLASS_::OnImageIsAnimated()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onStopDecode (in nsresult status); */
NS_IMETHODIMP _MYCLASS_::OnStopDecode(nsresult status)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onStopRequest (in boolean aIsLastPart); */
NS_IMETHODIMP _MYCLASS_::OnStopRequest(bool aIsLastPart)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onDiscard (); */
NS_IMETHODIMP _MYCLASS_::OnDiscard()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_imgIDecoderObserver_h__ */
