/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM e:/builds/moz2_slave/m-aurora-w32-xr/build/dom/file/nsIDOMLockedFile.idl
 */

#ifndef __gen_nsIDOMLockedFile_h__
#define __gen_nsIDOMLockedFile_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.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
class nsIDOMEventListener; /* forward declaration */

class nsIDOMFileHandle; /* forward declaration */

class nsIDOMFileRequest; /* forward declaration */


/* starting interface:    nsIDOMLockedFile */
#define NS_IDOMLOCKEDFILE_IID_STR "589e0d26-20b5-4355-ac1e-9c6fd0dd83f2"

#define NS_IDOMLOCKEDFILE_IID \
  {0x589e0d26, 0x20b5, 0x4355, \
    { 0xac, 0x1e, 0x9c, 0x6f, 0xd0, 0xdd, 0x83, 0xf2 }}

class NS_NO_VTABLE nsIDOMLockedFile : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMLOCKEDFILE_IID)

  /* readonly attribute nsIDOMFileHandle fileHandle; */
  NS_IMETHOD GetFileHandle(nsIDOMFileHandle * *aFileHandle) = 0;

  /* readonly attribute DOMString mode; */
  NS_IMETHOD GetMode(nsAString & aMode) = 0;

  /* readonly attribute boolean active; */
  NS_IMETHOD GetActive(bool *aActive) = 0;

  /* [implicit_jscontext] attribute jsval location; */
  NS_IMETHOD GetLocation(JSContext* cx, JS::Value *aLocation) = 0;
  NS_IMETHOD SetLocation(JSContext* cx, const JS::Value & aLocation) = 0;

  /* [implicit_jscontext] nsIDOMFileRequest getMetadata ([optional] in jsval parameters); */
  NS_IMETHOD GetMetadata(const JS::Value & parameters, JSContext* cx, nsIDOMFileRequest * *_retval) = 0;

  /* [implicit_jscontext] nsIDOMFileRequest readAsArrayBuffer (in unsigned long long size); */
  NS_IMETHOD ReadAsArrayBuffer(uint64_t size, JSContext* cx, nsIDOMFileRequest * *_retval) = 0;

  /* nsIDOMFileRequest readAsText (in unsigned long long size, [optional] in DOMString encoding); */
  NS_IMETHOD ReadAsText(uint64_t size, const nsAString & encoding, nsIDOMFileRequest * *_retval) = 0;

  /* [implicit_jscontext] nsIDOMFileRequest write (in jsval value); */
  NS_IMETHOD Write(const JS::Value & value, JSContext* cx, nsIDOMFileRequest * *_retval) = 0;

  /* [implicit_jscontext] nsIDOMFileRequest append (in jsval value); */
  NS_IMETHOD Append(const JS::Value & value, JSContext* cx, nsIDOMFileRequest * *_retval) = 0;

  /* [optional_argc] nsIDOMFileRequest truncate ([optional] in unsigned long long size); */
  NS_IMETHOD Truncate(uint64_t size, uint8_t _argc, nsIDOMFileRequest * *_retval) = 0;

  /* nsIDOMFileRequest flush (); */
  NS_IMETHOD Flush(nsIDOMFileRequest * *_retval) = 0;

  /* void abort (); */
  NS_IMETHOD Abort(void) = 0;

  /* [implicit_jscontext] attribute jsval oncomplete; */
  NS_IMETHOD GetOncomplete(JSContext* cx, JS::Value *aOncomplete) = 0;
  NS_IMETHOD SetOncomplete(JSContext* cx, const JS::Value & aOncomplete) = 0;

  /* [implicit_jscontext] attribute jsval onabort; */
  NS_IMETHOD GetOnabort(JSContext* cx, JS::Value *aOnabort) = 0;
  NS_IMETHOD SetOnabort(JSContext* cx, const JS::Value & aOnabort) = 0;

  /* [implicit_jscontext] attribute jsval onerror; */
  NS_IMETHOD GetOnerror(JSContext* cx, JS::Value *aOnerror) = 0;
  NS_IMETHOD SetOnerror(JSContext* cx, const JS::Value & aOnerror) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMLockedFile, NS_IDOMLOCKEDFILE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIDOMLOCKEDFILE \
  NS_IMETHOD GetFileHandle(nsIDOMFileHandle * *aFileHandle); \
  NS_IMETHOD GetMode(nsAString & aMode); \
  NS_IMETHOD GetActive(bool *aActive); \
  NS_IMETHOD GetLocation(JSContext* cx, JS::Value *aLocation); \
  NS_IMETHOD SetLocation(JSContext* cx, const JS::Value & aLocation); \
  NS_IMETHOD GetMetadata(const JS::Value & parameters, JSContext* cx, nsIDOMFileRequest * *_retval); \
  NS_IMETHOD ReadAsArrayBuffer(uint64_t size, JSContext* cx, nsIDOMFileRequest * *_retval); \
  NS_IMETHOD ReadAsText(uint64_t size, const nsAString & encoding, nsIDOMFileRequest * *_retval); \
  NS_IMETHOD Write(const JS::Value & value, JSContext* cx, nsIDOMFileRequest * *_retval); \
  NS_IMETHOD Append(const JS::Value & value, JSContext* cx, nsIDOMFileRequest * *_retval); \
  NS_IMETHOD Truncate(uint64_t size, uint8_t _argc, nsIDOMFileRequest * *_retval); \
  NS_IMETHOD Flush(nsIDOMFileRequest * *_retval); \
  NS_IMETHOD Abort(void); \
  NS_IMETHOD GetOncomplete(JSContext* cx, JS::Value *aOncomplete); \
  NS_IMETHOD SetOncomplete(JSContext* cx, const JS::Value & aOncomplete); \
  NS_IMETHOD GetOnabort(JSContext* cx, JS::Value *aOnabort); \
  NS_IMETHOD SetOnabort(JSContext* cx, const JS::Value & aOnabort); \
  NS_IMETHOD GetOnerror(JSContext* cx, JS::Value *aOnerror); \
  NS_IMETHOD SetOnerror(JSContext* cx, const JS::Value & aOnerror); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIDOMLOCKEDFILE(_to) \
  NS_IMETHOD GetFileHandle(nsIDOMFileHandle * *aFileHandle) { return _to GetFileHandle(aFileHandle); } \
  NS_IMETHOD GetMode(nsAString & aMode) { return _to GetMode(aMode); } \
  NS_IMETHOD GetActive(bool *aActive) { return _to GetActive(aActive); } \
  NS_IMETHOD GetLocation(JSContext* cx, JS::Value *aLocation) { return _to GetLocation(cx, aLocation); } \
  NS_IMETHOD SetLocation(JSContext* cx, const JS::Value & aLocation) { return _to SetLocation(cx, aLocation); } \
  NS_IMETHOD GetMetadata(const JS::Value & parameters, JSContext* cx, nsIDOMFileRequest * *_retval) { return _to GetMetadata(parameters, cx, _retval); } \
  NS_IMETHOD ReadAsArrayBuffer(uint64_t size, JSContext* cx, nsIDOMFileRequest * *_retval) { return _to ReadAsArrayBuffer(size, cx, _retval); } \
  NS_IMETHOD ReadAsText(uint64_t size, const nsAString & encoding, nsIDOMFileRequest * *_retval) { return _to ReadAsText(size, encoding, _retval); } \
  NS_IMETHOD Write(const JS::Value & value, JSContext* cx, nsIDOMFileRequest * *_retval) { return _to Write(value, cx, _retval); } \
  NS_IMETHOD Append(const JS::Value & value, JSContext* cx, nsIDOMFileRequest * *_retval) { return _to Append(value, cx, _retval); } \
  NS_IMETHOD Truncate(uint64_t size, uint8_t _argc, nsIDOMFileRequest * *_retval) { return _to Truncate(size, _argc, _retval); } \
  NS_IMETHOD Flush(nsIDOMFileRequest * *_retval) { return _to Flush(_retval); } \
  NS_IMETHOD Abort(void) { return _to Abort(); } \
  NS_IMETHOD GetOncomplete(JSContext* cx, JS::Value *aOncomplete) { return _to GetOncomplete(cx, aOncomplete); } \
  NS_IMETHOD SetOncomplete(JSContext* cx, const JS::Value & aOncomplete) { return _to SetOncomplete(cx, aOncomplete); } \
  NS_IMETHOD GetOnabort(JSContext* cx, JS::Value *aOnabort) { return _to GetOnabort(cx, aOnabort); } \
  NS_IMETHOD SetOnabort(JSContext* cx, const JS::Value & aOnabort) { return _to SetOnabort(cx, aOnabort); } \
  NS_IMETHOD GetOnerror(JSContext* cx, JS::Value *aOnerror) { return _to GetOnerror(cx, aOnerror); } \
  NS_IMETHOD SetOnerror(JSContext* cx, const JS::Value & aOnerror) { return _to SetOnerror(cx, aOnerror); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIDOMLOCKEDFILE(_to) \
  NS_IMETHOD GetFileHandle(nsIDOMFileHandle * *aFileHandle) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFileHandle(aFileHandle); } \
  NS_IMETHOD GetMode(nsAString & aMode) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMode(aMode); } \
  NS_IMETHOD GetActive(bool *aActive) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetActive(aActive); } \
  NS_IMETHOD GetLocation(JSContext* cx, JS::Value *aLocation) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLocation(cx, aLocation); } \
  NS_IMETHOD SetLocation(JSContext* cx, const JS::Value & aLocation) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLocation(cx, aLocation); } \
  NS_IMETHOD GetMetadata(const JS::Value & parameters, JSContext* cx, nsIDOMFileRequest * *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMetadata(parameters, cx, _retval); } \
  NS_IMETHOD ReadAsArrayBuffer(uint64_t size, JSContext* cx, nsIDOMFileRequest * *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ReadAsArrayBuffer(size, cx, _retval); } \
  NS_IMETHOD ReadAsText(uint64_t size, const nsAString & encoding, nsIDOMFileRequest * *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ReadAsText(size, encoding, _retval); } \
  NS_IMETHOD Write(const JS::Value & value, JSContext* cx, nsIDOMFileRequest * *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Write(value, cx, _retval); } \
  NS_IMETHOD Append(const JS::Value & value, JSContext* cx, nsIDOMFileRequest * *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Append(value, cx, _retval); } \
  NS_IMETHOD Truncate(uint64_t size, uint8_t _argc, nsIDOMFileRequest * *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Truncate(size, _argc, _retval); } \
  NS_IMETHOD Flush(nsIDOMFileRequest * *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Flush(_retval); } \
  NS_IMETHOD Abort(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Abort(); } \
  NS_IMETHOD GetOncomplete(JSContext* cx, JS::Value *aOncomplete) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOncomplete(cx, aOncomplete); } \
  NS_IMETHOD SetOncomplete(JSContext* cx, const JS::Value & aOncomplete) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOncomplete(cx, aOncomplete); } \
  NS_IMETHOD GetOnabort(JSContext* cx, JS::Value *aOnabort) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOnabort(cx, aOnabort); } \
  NS_IMETHOD SetOnabort(JSContext* cx, const JS::Value & aOnabort) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOnabort(cx, aOnabort); } \
  NS_IMETHOD GetOnerror(JSContext* cx, JS::Value *aOnerror) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOnerror(cx, aOnerror); } \
  NS_IMETHOD SetOnerror(JSContext* cx, const JS::Value & aOnerror) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOnerror(cx, aOnerror); } 

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

/* Header file */
class nsDOMLockedFile : public nsIDOMLockedFile
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIDOMLOCKEDFILE

  nsDOMLockedFile();

private:
  ~nsDOMLockedFile();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsDOMLockedFile, nsIDOMLockedFile)

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

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

/* readonly attribute nsIDOMFileHandle fileHandle; */
NS_IMETHODIMP nsDOMLockedFile::GetFileHandle(nsIDOMFileHandle * *aFileHandle)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute DOMString mode; */
NS_IMETHODIMP nsDOMLockedFile::GetMode(nsAString & aMode)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute boolean active; */
NS_IMETHODIMP nsDOMLockedFile::GetActive(bool *aActive)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [implicit_jscontext] attribute jsval location; */
NS_IMETHODIMP nsDOMLockedFile::GetLocation(JSContext* cx, JS::Value *aLocation)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDOMLockedFile::SetLocation(JSContext* cx, const JS::Value & aLocation)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [implicit_jscontext] nsIDOMFileRequest getMetadata ([optional] in jsval parameters); */
NS_IMETHODIMP nsDOMLockedFile::GetMetadata(const JS::Value & parameters, JSContext* cx, nsIDOMFileRequest * *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [implicit_jscontext] nsIDOMFileRequest readAsArrayBuffer (in unsigned long long size); */
NS_IMETHODIMP nsDOMLockedFile::ReadAsArrayBuffer(uint64_t size, JSContext* cx, nsIDOMFileRequest * *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsIDOMFileRequest readAsText (in unsigned long long size, [optional] in DOMString encoding); */
NS_IMETHODIMP nsDOMLockedFile::ReadAsText(uint64_t size, const nsAString & encoding, nsIDOMFileRequest * *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [implicit_jscontext] nsIDOMFileRequest write (in jsval value); */
NS_IMETHODIMP nsDOMLockedFile::Write(const JS::Value & value, JSContext* cx, nsIDOMFileRequest * *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [implicit_jscontext] nsIDOMFileRequest append (in jsval value); */
NS_IMETHODIMP nsDOMLockedFile::Append(const JS::Value & value, JSContext* cx, nsIDOMFileRequest * *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [optional_argc] nsIDOMFileRequest truncate ([optional] in unsigned long long size); */
NS_IMETHODIMP nsDOMLockedFile::Truncate(uint64_t size, uint8_t _argc, nsIDOMFileRequest * *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsIDOMFileRequest flush (); */
NS_IMETHODIMP nsDOMLockedFile::Flush(nsIDOMFileRequest * *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void abort (); */
NS_IMETHODIMP nsDOMLockedFile::Abort()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [implicit_jscontext] attribute jsval oncomplete; */
NS_IMETHODIMP nsDOMLockedFile::GetOncomplete(JSContext* cx, JS::Value *aOncomplete)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDOMLockedFile::SetOncomplete(JSContext* cx, const JS::Value & aOncomplete)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [implicit_jscontext] attribute jsval onabort; */
NS_IMETHODIMP nsDOMLockedFile::GetOnabort(JSContext* cx, JS::Value *aOnabort)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDOMLockedFile::SetOnabort(JSContext* cx, const JS::Value & aOnabort)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [implicit_jscontext] attribute jsval onerror; */
NS_IMETHODIMP nsDOMLockedFile::GetOnerror(JSContext* cx, JS::Value *aOnerror)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDOMLockedFile::SetOnerror(JSContext* cx, const JS::Value & aOnerror)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIDOMLockedFile_h__ */
