kexi
sqlitecursor.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef KEXIDB_SQLITECURSOR_H
00021 #define KEXIDB_SQLITECURSOR_H
00022
00023 #include <qstring.h>
00024
00025 #include <kexidb/cursor.h>
00026 #include "connection.h"
00027
00028 namespace KexiDB {
00029
00030 class SQLiteCursorData;
00031
00035 class SQLiteCursor : public Cursor
00036 {
00037 public:
00038 virtual ~SQLiteCursor();
00039 virtual QVariant value(uint i);
00040
00042
00044 virtual const char ** rowData() const;
00045
00046 virtual void storeCurrentRow(RowData &data) const;
00047
00048
00049
00050 virtual int serverResult();
00051 virtual QString serverResultName();
00052 virtual QString serverErrorMsg();
00053
00054 protected:
00056 SQLiteCursor(Connection* conn, const QString& statement, uint options = NoOptions );
00057
00059 SQLiteCursor(Connection* conn, QuerySchema& query,
00060 uint options = NoOptions );
00061
00062 virtual bool drv_open();
00063
00064 virtual bool drv_close();
00065
00066 virtual void drv_getNextRecord();
00067
00068
00069 virtual void drv_appendCurrentRecordToBuffer();
00070 virtual void drv_bufferMovePointerNext();
00071 virtual void drv_bufferMovePointerPrev();
00072 virtual void drv_bufferMovePointerTo(Q_LLONG at);
00073
00074
00075
00076
00079 virtual void drv_clearBuffer();
00080
00081 virtual void drv_clearServerResult();
00082
00083 SQLiteCursorData *d;
00084
00085 friend class SQLiteConnection;
00086 };
00087
00088 }
00089
00090 #endif
00091
00092
|