/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /work/a/ports/www/firefox/work/mozilla-esr10/dom/interfaces/events/nsIDOMNotifyAudioAvailableEvent.idl
 */

#ifndef __gen_nsIDOMNotifyAudioAvailableEvent_h__
#define __gen_nsIDOMNotifyAudioAvailableEvent_h__


#ifndef __gen_nsIDOMEvent_h__
#include "nsIDOMEvent.h"
#endif

#ifndef __gen_nsIVariant_h__
#include "nsIVariant.h"
#endif

#include "jspubtd.h"

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif

/* starting interface:    nsIDOMNotifyAudioAvailableEvent */
#define NS_IDOMNOTIFYAUDIOAVAILABLEEVENT_IID_STR "cd362d2f-a9a1-4127-940d-477ba0e82bd6"

#define NS_IDOMNOTIFYAUDIOAVAILABLEEVENT_IID \
  {0xcd362d2f, 0xa9a1, 0x4127, \
    { 0x94, 0x0d, 0x47, 0x7b, 0xa0, 0xe8, 0x2b, 0xd6 }}

class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMNotifyAudioAvailableEvent : public nsIDOMEvent {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMNOTIFYAUDIOAVAILABLEEVENT_IID)

  /* [implicit_jscontext] readonly attribute jsval frameBuffer; */
  NS_SCRIPTABLE NS_IMETHOD GetFrameBuffer(JSContext* cx, JS::Value *aFrameBuffer) = 0;

  /* readonly attribute float time; */
  NS_SCRIPTABLE NS_IMETHOD GetTime(float *aTime) = 0;

  /* void initAudioAvailableEvent (in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, [array, size_is (frameBufferLength)] in float frameBufferPtr, in unsigned long frameBufferLength, in float time, in boolean allowAudioData); */
  NS_SCRIPTABLE NS_IMETHOD InitAudioAvailableEvent(const nsAString & typeArg, bool canBubbleArg, bool cancelableArg, float *frameBufferPtr, PRUint32 frameBufferLength, float time, bool allowAudioData) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMNotifyAudioAvailableEvent, NS_IDOMNOTIFYAUDIOAVAILABLEEVENT_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIDOMNOTIFYAUDIOAVAILABLEEVENT \
  NS_SCRIPTABLE NS_IMETHOD GetFrameBuffer(JSContext* cx, JS::Value *aFrameBuffer); \
  NS_SCRIPTABLE NS_IMETHOD GetTime(float *aTime); \
  NS_SCRIPTABLE NS_IMETHOD InitAudioAvailableEvent(const nsAString & typeArg, bool canBubbleArg, bool cancelableArg, float *frameBufferPtr, PRUint32 frameBufferLength, float time, bool allowAudioData); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIDOMNOTIFYAUDIOAVAILABLEEVENT(_to) \
  NS_SCRIPTABLE NS_IMETHOD GetFrameBuffer(JSContext* cx, JS::Value *aFrameBuffer) { return _to GetFrameBuffer(cx, aFrameBuffer); } \
  NS_SCRIPTABLE NS_IMETHOD GetTime(float *aTime) { return _to GetTime(aTime); } \
  NS_SCRIPTABLE NS_IMETHOD InitAudioAvailableEvent(const nsAString & typeArg, bool canBubbleArg, bool cancelableArg, float *frameBufferPtr, PRUint32 frameBufferLength, float time, bool allowAudioData) { return _to InitAudioAvailableEvent(typeArg, canBubbleArg, cancelableArg, frameBufferPtr, frameBufferLength, time, allowAudioData); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIDOMNOTIFYAUDIOAVAILABLEEVENT(_to) \
  NS_SCRIPTABLE NS_IMETHOD GetFrameBuffer(JSContext* cx, JS::Value *aFrameBuffer) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFrameBuffer(cx, aFrameBuffer); } \
  NS_SCRIPTABLE NS_IMETHOD GetTime(float *aTime) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTime(aTime); } \
  NS_SCRIPTABLE NS_IMETHOD InitAudioAvailableEvent(const nsAString & typeArg, bool canBubbleArg, bool cancelableArg, float *frameBufferPtr, PRUint32 frameBufferLength, float time, bool allowAudioData) { return !_to ? NS_ERROR_NULL_POINTER : _to->InitAudioAvailableEvent(typeArg, canBubbleArg, cancelableArg, frameBufferPtr, frameBufferLength, time, allowAudioData); } 

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

/* Header file */
class nsDOMNotifyAudioAvailableEvent : public nsIDOMNotifyAudioAvailableEvent
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIDOMNOTIFYAUDIOAVAILABLEEVENT

  nsDOMNotifyAudioAvailableEvent();

private:
  ~nsDOMNotifyAudioAvailableEvent();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsDOMNotifyAudioAvailableEvent, nsIDOMNotifyAudioAvailableEvent)

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

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

/* [implicit_jscontext] readonly attribute jsval frameBuffer; */
NS_IMETHODIMP nsDOMNotifyAudioAvailableEvent::GetFrameBuffer(JSContext* cx, JS::Value *aFrameBuffer)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute float time; */
NS_IMETHODIMP nsDOMNotifyAudioAvailableEvent::GetTime(float *aTime)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void initAudioAvailableEvent (in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, [array, size_is (frameBufferLength)] in float frameBufferPtr, in unsigned long frameBufferLength, in float time, in boolean allowAudioData); */
NS_IMETHODIMP nsDOMNotifyAudioAvailableEvent::InitAudioAvailableEvent(const nsAString & typeArg, bool canBubbleArg, bool cancelableArg, float *frameBufferPtr, PRUint32 frameBufferLength, float time, bool allowAudioData)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIDOMNotifyAudioAvailableEvent_h__ */
