/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM e:/builds/moz2_slave/mozilla-central-win32-xulrunner/build/dom/indexedDB/nsIIndexedDatabaseRequest.idl
 */

#ifndef __gen_nsIIndexedDatabaseRequest_h__
#define __gen_nsIIndexedDatabaseRequest_h__


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

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

class nsIIDBRequest; /* forward declaration */

class nsIVariant; /* forward declaration */


/* starting interface:    nsIIndexedDatabaseRequest */
#define NS_IINDEXEDDATABASEREQUEST_IID_STR "043161e0-93b8-43b4-94d8-f34046d679b4"

#define NS_IINDEXEDDATABASEREQUEST_IID \
  {0x043161e0, 0x93b8, 0x43b4, \
    { 0x94, 0xd8, 0xf3, 0x40, 0x46, 0xd6, 0x79, 0xb4 }}

/**
 * Interface that defines the indexedDB property on a window.  See
 * http://dev.w3.org/2006/webapi/WebSimpleDB/#idl-def-IndexedDatabaseRequest
 * for more information.
 */
class NS_NO_VTABLE NS_SCRIPTABLE nsIIndexedDatabaseRequest : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IINDEXEDDATABASEREQUEST_IID)

  /* nsIIDBRequest open (in AString name, in AString description); */
  NS_SCRIPTABLE NS_IMETHOD Open(const nsAString & name, const nsAString & description, nsIIDBRequest **_retval NS_OUTPARAM) = 0;

  /* nsIIDBKeyRange makeSingleKeyRange (in nsIVariant value); */
  NS_SCRIPTABLE NS_IMETHOD MakeSingleKeyRange(nsIVariant *value, nsIIDBKeyRange **_retval NS_OUTPARAM) = 0;

  /* nsIIDBKeyRange makeLeftBoundKeyRange (in nsIVariant bound, [optional] in boolean open); */
  NS_SCRIPTABLE NS_IMETHOD MakeLeftBoundKeyRange(nsIVariant *bound, PRBool open, nsIIDBKeyRange **_retval NS_OUTPARAM) = 0;

  /* nsIIDBKeyRange makeRightBoundKeyRange (in nsIVariant bound, [optional] in boolean open); */
  NS_SCRIPTABLE NS_IMETHOD MakeRightBoundKeyRange(nsIVariant *bound, PRBool open, nsIIDBKeyRange **_retval NS_OUTPARAM) = 0;

  /* nsIIDBKeyRange makeBoundKeyRange (in nsIVariant left, in nsIVariant right, [optional] in boolean openLeft, [optional] in boolean openRight); */
  NS_SCRIPTABLE NS_IMETHOD MakeBoundKeyRange(nsIVariant *left, nsIVariant *right, PRBool openLeft, PRBool openRight, nsIIDBKeyRange **_retval NS_OUTPARAM) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIIndexedDatabaseRequest, NS_IINDEXEDDATABASEREQUEST_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIINDEXEDDATABASEREQUEST \
  NS_SCRIPTABLE NS_IMETHOD Open(const nsAString & name, const nsAString & description, nsIIDBRequest **_retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD MakeSingleKeyRange(nsIVariant *value, nsIIDBKeyRange **_retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD MakeLeftBoundKeyRange(nsIVariant *bound, PRBool open, nsIIDBKeyRange **_retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD MakeRightBoundKeyRange(nsIVariant *bound, PRBool open, nsIIDBKeyRange **_retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD MakeBoundKeyRange(nsIVariant *left, nsIVariant *right, PRBool openLeft, PRBool openRight, nsIIDBKeyRange **_retval NS_OUTPARAM); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIINDEXEDDATABASEREQUEST(_to) \
  NS_SCRIPTABLE NS_IMETHOD Open(const nsAString & name, const nsAString & description, nsIIDBRequest **_retval NS_OUTPARAM) { return _to Open(name, description, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD MakeSingleKeyRange(nsIVariant *value, nsIIDBKeyRange **_retval NS_OUTPARAM) { return _to MakeSingleKeyRange(value, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD MakeLeftBoundKeyRange(nsIVariant *bound, PRBool open, nsIIDBKeyRange **_retval NS_OUTPARAM) { return _to MakeLeftBoundKeyRange(bound, open, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD MakeRightBoundKeyRange(nsIVariant *bound, PRBool open, nsIIDBKeyRange **_retval NS_OUTPARAM) { return _to MakeRightBoundKeyRange(bound, open, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD MakeBoundKeyRange(nsIVariant *left, nsIVariant *right, PRBool openLeft, PRBool openRight, nsIIDBKeyRange **_retval NS_OUTPARAM) { return _to MakeBoundKeyRange(left, right, openLeft, openRight, _retval); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIINDEXEDDATABASEREQUEST(_to) \
  NS_SCRIPTABLE NS_IMETHOD Open(const nsAString & name, const nsAString & description, nsIIDBRequest **_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Open(name, description, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD MakeSingleKeyRange(nsIVariant *value, nsIIDBKeyRange **_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->MakeSingleKeyRange(value, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD MakeLeftBoundKeyRange(nsIVariant *bound, PRBool open, nsIIDBKeyRange **_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->MakeLeftBoundKeyRange(bound, open, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD MakeRightBoundKeyRange(nsIVariant *bound, PRBool open, nsIIDBKeyRange **_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->MakeRightBoundKeyRange(bound, open, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD MakeBoundKeyRange(nsIVariant *left, nsIVariant *right, PRBool openLeft, PRBool openRight, nsIIDBKeyRange **_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->MakeBoundKeyRange(left, right, openLeft, openRight, _retval); } 

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

/* Header file */
class nsIndexedDatabaseRequest : public nsIIndexedDatabaseRequest
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIINDEXEDDATABASEREQUEST

  nsIndexedDatabaseRequest();

private:
  ~nsIndexedDatabaseRequest();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsIndexedDatabaseRequest, nsIIndexedDatabaseRequest)

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

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

/* nsIIDBRequest open (in AString name, in AString description); */
NS_IMETHODIMP nsIndexedDatabaseRequest::Open(const nsAString & name, const nsAString & description, nsIIDBRequest **_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsIIDBKeyRange makeSingleKeyRange (in nsIVariant value); */
NS_IMETHODIMP nsIndexedDatabaseRequest::MakeSingleKeyRange(nsIVariant *value, nsIIDBKeyRange **_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsIIDBKeyRange makeLeftBoundKeyRange (in nsIVariant bound, [optional] in boolean open); */
NS_IMETHODIMP nsIndexedDatabaseRequest::MakeLeftBoundKeyRange(nsIVariant *bound, PRBool open, nsIIDBKeyRange **_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsIIDBKeyRange makeRightBoundKeyRange (in nsIVariant bound, [optional] in boolean open); */
NS_IMETHODIMP nsIndexedDatabaseRequest::MakeRightBoundKeyRange(nsIVariant *bound, PRBool open, nsIIDBKeyRange **_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsIIDBKeyRange makeBoundKeyRange (in nsIVariant left, in nsIVariant right, [optional] in boolean openLeft, [optional] in boolean openRight); */
NS_IMETHODIMP nsIndexedDatabaseRequest::MakeBoundKeyRange(nsIVariant *left, nsIVariant *right, PRBool openLeft, PRBool openRight, nsIIDBKeyRange **_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIIndexedDatabaseRequest_h__ */
