AutofillBackingStore.h [plain text]
#ifndef AutofillBackingStore_h
#define AutofillBackingStore_h
#include "SQLiteDatabase.h"
#include <BlackBerryPlatformMisc.h>
namespace WebCore {
class AutofillBackingStore {
public:
friend AutofillBackingStore& autofillBackingStore();
~AutofillBackingStore();
bool open(const String& dbPath);
bool add(const String& name, const String& value);
Vector<String> get(const String& name, const String& valueHint);
bool clear();
private:
AutofillBackingStore();
bool update(const String& name, const String& value);
bool contains(const String& name, const String& value) const;
SQLiteDatabase m_database;
SQLiteStatement* m_addStatement;
SQLiteStatement* m_updateStatement;
SQLiteStatement* m_containsStatement;
SQLiteStatement* m_getStatement;
DISABLE_COPY(AutofillBackingStore)
};
AutofillBackingStore& autofillBackingStore();
}
#endif // AutofillBackingStore_h