summaryrefslogtreecommitdiffstats
path: root/sip/qtsql/qsqldatabase.sip
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-11-29 01:11:08 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-11-29 01:11:08 -0600
commit8a055d66f43592c257cece2eb8cc021808062917 (patch)
treed0922f201bd5d24b62a33160d1d9baf9e89f9a70 /sip/qtsql/qsqldatabase.sip
parentb388516ca2691303a076a0764fd40bf7116fe43d (diff)
downloadpytqt-8a055d66f43592c257cece2eb8cc021808062917.tar.gz
pytqt-8a055d66f43592c257cece2eb8cc021808062917.zip
Initial TQt conversion
Diffstat (limited to 'sip/qtsql/qsqldatabase.sip')
-rw-r--r--sip/qtsql/qsqldatabase.sip112
1 files changed, 56 insertions, 56 deletions
diff --git a/sip/qtsql/qsqldatabase.sip b/sip/qtsql/qsqldatabase.sip
index 510499f..6e48da6 100644
--- a/sip/qtsql/qsqldatabase.sip
+++ b/sip/qtsql/qsqldatabase.sip
@@ -1,30 +1,30 @@
-// This is the SIP interface definition for QSqlDatabase.
+// This is the SIP interface definition for TQSqlDatabase.
//
// Copyright (c) 2007
// Riverbank Computing Limited <info@riverbankcomputing.co.uk>
//
-// This file is part of PyQt.
+// This file is part of PyTQt.
//
-// This copy of PyQt is free software; you can redistribute it and/or modify it
+// 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.
//
-// PyQt is supplied in the hope that it will be useful, but WITHOUT ANY
+// 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
-// PyQt; see the file LICENSE. If not, write to the Free Software Foundation,
+// 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
-<Sect2><Title>QSqlDatabase (Qt v3+)</Title>
+<Sect2><Title>TQSqlDatabase (TQt v3+)</Title>
<FuncSynopsis>
- <FuncDef>QSqlQuery <Function>exec</Function></FuncDef>
- <ParamDef>const QString &amp;<Parameter>query</Parameter> = QString::null</ParamDef>
+ <FuncDef>TQSqlQuery <Function>exec</Function></FuncDef>
+ <ParamDef>const TQString &amp;<Parameter>query</Parameter> = TQString::null</ParamDef>
</FuncSynopsis>
<Para>
This has been renamed <Literal>execStatement</Literal> in Python.
@@ -33,9 +33,9 @@ This has been renamed <Literal>execStatement</Literal> in Python.
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
-class QSqlDatabase : QObject
+class TQSqlDatabase : TQObject
{
%TypeHeaderCode
#include <qsqldatabase.h>
@@ -78,76 +78,76 @@ public:
%End
bool open() /ReleaseGIL/;
- bool open(const QString &,const QString &) /ReleaseGIL/;
+ bool open(const TQString &,const TQString &) /ReleaseGIL/;
void close();
bool isOpen() const;
bool isOpenError() const;
- QStringList tables() const;
-%If (Qt_3_2_0 -)
- QStringList tables(QSql::TableType) const;
+ TQStringList tables() const;
+%If (TQt_3_2_0 -)
+ TQStringList tables(TQSql::TableType) const;
%End
- QSqlIndex primaryIndex(const QString &) const;
- QSqlRecord record(const QString &) const;
- QSqlRecord record(const QSqlQuery &) const;
- QSqlRecordInfo recordInfo(const QString &) const;
- QSqlRecordInfo recordInfo(const QSqlQuery &) const;
- QSqlQuery exec(const QString & = QString::null) const /PyName=execStatement, ReleaseGIL/;
- QSqlError lastError() const;
+ TQSqlIndex primaryIndex(const TQString &) const;
+ TQSqlRecord record(const TQString &) const;
+ TQSqlRecord record(const TQSqlQuery &) const;
+ TQSqlRecordInfo recordInfo(const TQString &) const;
+ TQSqlRecordInfo recordInfo(const TQSqlQuery &) const;
+ TQSqlQuery exec(const TQString & = TQString::null) const /PyName=execStatement, ReleaseGIL/;
+ TQSqlError lastError() const;
bool transaction();
bool commit();
bool rollback();
- virtual void setDatabaseName(const QString &);
- virtual void setUserName(const QString &);
- virtual void setPassword(const QString &);
- virtual void setHostName(const QString &);
+ virtual void setDatabaseName(const TQString &);
+ virtual void setUserName(const TQString &);
+ virtual void setPassword(const TQString &);
+ virtual void setHostName(const TQString &);
virtual void setPort(int);
-%If (Qt_3_2_0 -)
- void setConnectOptions(const QString & = QString::null);
+%If (TQt_3_2_0 -)
+ void setConnectOptions(const TQString & = TQString::null);
%End
- QString databaseName() const;
- QString userName() const;
- QString password() const;
- QString hostName() const;
- QString driverName() const;
+ TQString databaseName() const;
+ TQString userName() const;
+ TQString password() const;
+ TQString hostName() const;
+ TQString driverName() const;
int port() const;
-%If (Qt_3_2_0 -)
- QString connectOptions() const;
+%If (TQt_3_2_0 -)
+ TQString connectOptions() const;
%End
- QSqlDriver *driver() const;
+ TQSqlDriver *driver() const;
- static QSqlDatabase *addDatabase(const QString &,
- const QString & = QString(QSqlDatabase::defaultConnection));
-%If (Qt_3_2_0 -)
- static QSqlDatabase *addDatabase(QSqlDriver *,
- const QString & = QString(QSqlDatabase::defaultConnection));
+ static TQSqlDatabase *addDatabase(const TQString &,
+ const TQString & = TQString(TQSqlDatabase::defaultConnection));
+%If (TQt_3_2_0 -)
+ static TQSqlDatabase *addDatabase(TQSqlDriver *,
+ const TQString & = TQString(TQSqlDatabase::defaultConnection));
%End
- static QSqlDatabase *database(const QString & = QString(QSqlDatabase::defaultConnection),bool = 1);
- static void removeDatabase(const QString &);
-%If (Qt_3_2_0 -)
- static void removeDatabase(QSqlDatabase *);
+ static TQSqlDatabase *database(const TQString & = TQString(TQSqlDatabase::defaultConnection),bool = 1);
+ static void removeDatabase(const TQString &);
+%If (TQt_3_2_0 -)
+ static void removeDatabase(TQSqlDatabase *);
%End
- static bool contains(const QString & = QString(QSqlDatabase::defaultConnection));
- static QStringList drivers();
-// static void registerSqlDriver(const QString &,
-// const QSqlDriverCreatorBase *);
-%If (Qt_3_2_0 -)
- static bool isDriverAvailable(const QString &);
+ static bool contains(const TQString & = TQString(TQSqlDatabase::defaultConnection));
+ static TQStringList drivers();
+// static void registerSqlDriver(const TQString &,
+// const TQSqlDriverCreatorBase *);
+%If (TQt_3_2_0 -)
+ static bool isDriverAvailable(const TQString &);
%End
protected:
- QSqlDatabase(const QString &,const QString &,
- QObject * /TransferThis/ = 0,const char * = 0);
-%If (Qt_3_2_0 -)
- QSqlDatabase(QSqlDriver *,QObject * /TransferThis/ = 0,
+ TQSqlDatabase(const TQString &,const TQString &,
+ TQObject * /TransferThis/ = 0,const char * = 0);
+%If (TQt_3_2_0 -)
+ TQSqlDatabase(TQSqlDriver *,TQObject * /TransferThis/ = 0,
const char * = 0);
%End
private:
-%If (Qt_3_1_0 -)
- QSqlDatabase(const QSqlDatabase &);
+%If (TQt_3_1_0 -)
+ TQSqlDatabase(const TQSqlDatabase &);
%End
};