kexi
mysqlcursor.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef _MYSQLCURSOR_H_
00021 #define _MYSQLCURSOR_H_
00022
00023 #include <kexidb/cursor.h>
00024 #include <kexidb/connection.h>
00025
00026 namespace KexiDB {
00027
00028 class MySqlCursorData;
00029
00030 class MySqlCursor: public Cursor {
00031 public:
00032 MySqlCursor(Connection* conn, const QString& statement = QString::null, uint cursor_options = NoOptions );
00033 MySqlCursor(Connection* conn, QuerySchema& query, uint options = NoOptions );
00034 virtual ~MySqlCursor();
00035 virtual bool drv_open();
00036 virtual bool drv_close();
00037
00038 virtual void drv_getNextRecord();
00039
00040 virtual QVariant value(uint);
00041
00042 virtual void drv_clearServerResult();
00043 virtual void drv_appendCurrentRecordToBuffer();
00044 virtual void drv_bufferMovePointerNext();
00045 virtual void drv_bufferMovePointerPrev();
00046 virtual void drv_bufferMovePointerTo(Q_LLONG to);
00047 virtual const char** rowData() const;
00048 virtual void storeCurrentRow(RowData &data) const;
00049
00050
00051 virtual int serverResult();
00052 virtual QString serverResultName();
00053 virtual QString serverErrorMsg();
00054
00055 protected:
00056 QVariant pValue(uint pos) const;
00057
00058
00059
00060
00061
00062
00063 MySqlCursorData *d;
00064 };
00065
00066 }
00067
00068 #endif
|