#ifndef WebIDBIndex_h
#define WebIDBIndex_h
#include "WebExceptionCode.h"
#include "WebIDBKeyPath.h"
#include "WebIDBTransaction.h"
#include "platform/WebString.h"
namespace WebKit {
class WebIDBCallbacks;
class WebIDBKey;
class WebIDBKeyRange;
class WebIDBIndex {
public:
virtual ~WebIDBIndex() { }
virtual WebString name() const
{
WEBKIT_ASSERT_NOT_REACHED();
return WebString();
}
virtual WebString storeName() const
{
WEBKIT_ASSERT_NOT_REACHED();
return WebString();
}
virtual WebIDBKeyPath keyPath() const
{
return WebIDBKeyPath(keyPathString());
}
virtual WebString keyPathString() const
{
WEBKIT_ASSERT_NOT_REACHED();
return WebString();
}
virtual bool unique() const
{
WEBKIT_ASSERT_NOT_REACHED();
return false;
}
virtual bool multiEntry() const
{
WEBKIT_ASSERT_NOT_REACHED();
return false;
}
virtual void openObjectCursor(const WebIDBKeyRange&, unsigned short direction, WebIDBCallbacks*, const WebIDBTransaction&, WebExceptionCode&) { WEBKIT_ASSERT_NOT_REACHED(); }
virtual void openKeyCursor(const WebIDBKeyRange&, unsigned short direction, WebIDBCallbacks*, const WebIDBTransaction&, WebExceptionCode&) { WEBKIT_ASSERT_NOT_REACHED(); }
virtual void count(const WebIDBKeyRange&, WebIDBCallbacks*, const WebIDBTransaction&, WebExceptionCode&) { WEBKIT_ASSERT_NOT_REACHED(); }
virtual void getObject(const WebIDBKeyRange&, WebIDBCallbacks*, const WebIDBTransaction&, WebExceptionCode&) { WEBKIT_ASSERT_NOT_REACHED(); }
virtual void getKey(const WebIDBKeyRange&, WebIDBCallbacks*, const WebIDBTransaction&, WebExceptionCode&) { WEBKIT_ASSERT_NOT_REACHED(); }
protected:
WebIDBIndex() {}
};
}
#endif // WebIDBIndex_h