20#ifndef _SERIALLETTER_QtSql_SQLCURSOR_H_
21#define _SERIALLETTER_QtSql_SQLCURSOR_H_
24#include <tqsqlcursor.h>
25#include <tqsqldriver.h>
37class KWMySqlCursor: public TQSqlCursor
40 KWMySqlCursor( const TQString & query = TQString(), bool autopopulate =
41true, TQSqlDatabase* db = 0 ): TQSqlCursor( TQString(), autopopulate, db )
45 *(TQSqlRecord*) this = ((TQSqlQuery*) this)->driver()->record(
47 setMode( TQSqlCursor::ReadOnly );
49 KWMySqlCursor( const KWMySqlCursor & other ): TQSqlCursor( other ) {}
50 KWMySqlCursor( const TQSqlQuery & query, bool autopopulate = true ):
51TQSqlCursor( TQString(), autopopulate )
53 *(TQSqlQuery*) this = query;
55 *(TQSqlRecord*) this = query.driver()->record( query );
56 setMode( TQSqlCursor::ReadOnly );
58 bool select( const TQString & , const TQSqlIndex & =
59TQSqlIndex() ) { return exec( lastQuery() ); }
60 TQSqlIndex primaryIndex( bool = true ) const { return
62 int insert( bool = true ) { return false; }
63 int update( bool = true ) { return false; }
64 int del( bool = true ) { return false; }
65 void setName( const TQString& , bool = true ) {}
|