From 16434e5519f6224e231bc5f7202f0e495eda7bb7 Mon Sep 17 00:00:00 2001 From: Slávek Banko Date: Tue, 3 Jan 2023 00:52:18 +0100 Subject: Do rename qt=>tqt on source files, directories and libraries. Rename pyuic=>pytquic, pylupdate=>pytqlupdate. Do rename qt=>tqt on constants and variables. Do rename QT=>TQT on constants. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- sip/tqtsql/tqsqlselectcursor.sip | 88 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 sip/tqtsql/tqsqlselectcursor.sip (limited to 'sip/tqtsql/tqsqlselectcursor.sip') diff --git a/sip/tqtsql/tqsqlselectcursor.sip b/sip/tqtsql/tqsqlselectcursor.sip new file mode 100644 index 0000000..a33fee3 --- /dev/null +++ b/sip/tqtsql/tqsqlselectcursor.sip @@ -0,0 +1,88 @@ +// This is the SIP interface definition for TQSqlSelectCursor. +// +// Copyright (c) 2007 +// Riverbank Computing Limited +// +// This file is part of PyTQt. +// +// This copy of PyTQt is free software; you can redistribute it and/or modify it +// under the terms of the GNU General Public License as published by the Free +// Software Foundation; either version 2, or (at your option) any later +// version. +// +// PyTQt is supplied in the hope that it will be useful, but WITHOUT ANY +// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +// details. +// +// You should have received a copy of the GNU General Public License along with +// PyTQt; see the file LICENSE. If not, write to the Free Software Foundation, +// Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +%ExportedDoc +TQSqlSelectCursor (TQt v3.2.0+) + + int del + bool invalidate = TRUE + + +This has been renamed delRecords in Python. + + + + bool exec + const TQString &query + + +This has been renamed execQuery in Python. + + +%End + + +class TQSqlSelectCursor : TQSqlCursor +{ +%TypeHeaderCode +#include +%End + +public: + TQSqlSelectCursor(const TQString & = TQString::null,TQSqlDatabase * = 0); + TQSqlSelectCursor(const TQSqlSelectCursor &); + ~TQSqlSelectCursor(); + + bool exec(const TQString &) /PyName=execQuery, ReleaseGIL/; + bool select() /ReleaseGIL/; + +protected: + TQSqlIndex primaryIndex(bool = 1) const; + TQSqlIndex index(const TQStringList &) const; + TQSqlIndex index(const TQString &) const; +// TQSqlIndex index(const char *) const; + void setPrimaryIndex(const TQSqlIndex &); + void append(const TQSqlFieldInfo &); + void insert(int,const TQSqlFieldInfo &); + void remove(int); + void clear(); + void setGenerated(const TQString &,bool); + void setGenerated(int,bool); + TQSqlRecord *editBuffer(bool = 0); + TQSqlRecord *primeInsert(); + TQSqlRecord *primeUpdate(); + TQSqlRecord *primeDelete(); + int insert(bool = 1) /ReleaseGIL/; + int update(bool = 1) /ReleaseGIL/; + int del(bool = 1) /PyName=delRecords, ReleaseGIL/; + void setMode(int); + + void setSort(const TQSqlIndex &); + TQSqlIndex sort() const; + void setFilter(const TQString &); + TQString filter() const; + void setName(const TQString &,bool = 1); + TQString name() const; + TQString toString(const TQString & = TQString::null, + const TQString & = ",") const; + bool select(const TQString &,const TQSqlIndex & = TQSqlIndex()) /ReleaseGIL/; +}; -- cgit v1.2.3