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

#ifndef __gen_nsIIDBCursor_h__
#define __gen_nsIIDBCursor_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

/* starting interface:    nsIIDBCursor */
#define NS_IIDBCURSOR_IID_STR "06b5980f-e5e1-433c-9df4-5ecef0238715"

#define NS_IIDBCURSOR_IID \
  {0x06b5980f, 0xe5e1, 0x433c, \
    { 0x9d, 0xf4, 0x5e, 0xce, 0xf0, 0x23, 0x87, 0x15 }}

/**
 * IDBCursor interface.  See
 * http://dev.w3.org/2006/webapi/WebSimpleDB/#idl-def-IDBCursor for more
 * information.
 */
class NS_NO_VTABLE NS_SCRIPTABLE nsIIDBCursor : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IIDBCURSOR_IID)

  enum { NEXT = 0U };

  enum { NEXT_NO_DUPLICATE = 1U };

  enum { PREV = 2U };

  enum { PREV_NO_DUPLICATE = 3U };

  /* readonly attribute unsigned short direction; */
  NS_SCRIPTABLE NS_IMETHOD GetDirection(PRUint16 *aDirection) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIIDBCursor, NS_IIDBCURSOR_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIIDBCURSOR \
  NS_SCRIPTABLE NS_IMETHOD GetDirection(PRUint16 *aDirection); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIIDBCURSOR(_to) \
  NS_SCRIPTABLE NS_IMETHOD GetDirection(PRUint16 *aDirection) { return _to GetDirection(aDirection); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIIDBCURSOR(_to) \
  NS_SCRIPTABLE NS_IMETHOD GetDirection(PRUint16 *aDirection) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDirection(aDirection); } 

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

/* Header file */
class nsIDBCursor : public nsIIDBCursor
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIIDBCURSOR

  nsIDBCursor();

private:
  ~nsIDBCursor();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsIDBCursor, nsIIDBCursor)

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

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

/* readonly attribute unsigned short direction; */
NS_IMETHODIMP nsIDBCursor::GetDirection(PRUint16 *aDirection)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIIDBCursor_h__ */
