summaryrefslogtreecommitdiffstats
path: root/kjsembed/bindings/sql_imp.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:44:01 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:44:01 +0000
commit479f5f799523bffbcc83dff581a2299c047c6fff (patch)
tree186aae707ed02aac6c7cab2fb14e97f72aca5e36 /kjsembed/bindings/sql_imp.h
parentf1dbff6145c98324ff82e34448b7483727e8ace4 (diff)
downloadtdebindings-479f5f799523bffbcc83dff581a2299c047c6fff.tar.gz
tdebindings-479f5f799523bffbcc83dff581a2299c047c6fff.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1157645 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kjsembed/bindings/sql_imp.h')
-rw-r--r--kjsembed/bindings/sql_imp.h78
1 files changed, 39 insertions, 39 deletions
diff --git a/kjsembed/bindings/sql_imp.h b/kjsembed/bindings/sql_imp.h
index 78e54756..f2fa6e6d 100644
--- a/kjsembed/bindings/sql_imp.h
+++ b/kjsembed/bindings/sql_imp.h
@@ -21,14 +21,14 @@
#define KJSEMBED_SQL_IMP_H
#include "bindingobject.h"
-#include <qsqlquery.h>
-#include <qsqldatabase.h>
+#include <tqsqlquery.h>
+#include <tqsqldatabase.h>
namespace KJSEmbed {
namespace Bindings {
/**
- * QObject Binding for QSQLQuery.
+ * TQObject Binding for QSQLQuery.
*
* @author Ian Reinhart Geiser, geiseri@kde.org
* @version $Id$
@@ -42,17 +42,17 @@ class SqlQuery : public BindingObject
Q_PROPERTY( bool select READ isSelect)
Q_PROPERTY( bool valid READ isValid)
Q_PROPERTY( bool active READ isActive)
- Q_PROPERTY( QString lastError READ lastError)
- Q_PROPERTY( QString lastQuery READ lastQuery)
+ Q_PROPERTY( TQString lastError READ lastError)
+ Q_PROPERTY( TQString lastQuery READ lastQuery)
public:
- SqlQuery( QObject *parent=0, const char *name=0 );
- SqlQuery( QObject *parent, const char *name, const QSqlQuery &q );
+ SqlQuery( TQObject *parent=0, const char *name=0 );
+ SqlQuery( TQObject *parent, const char *name, const TQSqlQuery &q );
//SqlQuery( const SqlQuery &copy);
virtual ~SqlQuery();
- QSqlQuery query(){ return m_query; }
- void setQuery(const QSqlQuery &q) {m_query = QSqlQuery(q); }
+ TQSqlQuery query(){ return m_query; }
+ void setQuery(const TQSqlQuery &q) {m_query = TQSqlQuery(q); }
int size () const;
bool isSelect () const;
@@ -60,16 +60,16 @@ public:
bool isActive () const;
int at () const;
int numRowsAffected () const;
- QString lastError () const;
- QString lastQuery () const;
+ TQString lastError () const;
+ TQString lastQuery () const;
public slots:
bool isNull ( int field );
- bool exec ( const QString & m_query );
- QVariant value ( int i );
+ bool exec ( const TQString & m_query );
+ TQVariant value ( int i );
bool seek ( int i, bool relative = FALSE );
bool next ();
bool prev ();
@@ -77,11 +77,11 @@ public slots:
bool last ();
private:
- QSqlQuery m_query;
+ TQSqlQuery m_query;
};
/**
- * QObject Binding for QSQLDatabase.
+ * TQObject Binding for QSQLDatabase.
*
* @author Ian Reinhart Geiser, geiseri@kde.org
* @version $Id$
@@ -89,49 +89,49 @@ private:
class SqlDatabase : public BindingObject
{
Q_OBJECT
- Q_PROPERTY( QString databaseName READ databaseName WRITE setDatabaseName)
- Q_PROPERTY( QString userName READ userName WRITE setUserName)
- Q_PROPERTY( QString password READ password WRITE setPassword)
- Q_PROPERTY( QString hostName READ hostName WRITE setHostName)
+ Q_PROPERTY( TQString databaseName READ databaseName WRITE setDatabaseName)
+ Q_PROPERTY( TQString userName READ userName WRITE setUserName)
+ Q_PROPERTY( TQString password READ password WRITE setPassword)
+ Q_PROPERTY( TQString hostName READ hostName WRITE setHostName)
Q_PROPERTY( int port READ port WRITE setPort)
- Q_PROPERTY( QString driverName READ driverName)
- Q_PROPERTY( QString lastError READ lastError)
+ Q_PROPERTY( TQString driverName READ driverName)
+ Q_PROPERTY( TQString lastError READ lastError)
public:
- SqlDatabase( QObject *parent=0, const char *name=0 );
+ SqlDatabase( TQObject *parent=0, const char *name=0 );
virtual ~SqlDatabase();
public slots:
- void setDatabaseName (const QString &name );
- void setUserName (const QString &name );
- void setPassword (const QString &password );
- void setHostName (const QString &host );
+ void setDatabaseName (const TQString &name );
+ void setUserName (const TQString &name );
+ void setPassword (const TQString &password );
+ void setHostName (const TQString &host );
void setPort ( int p );
- QString databaseName () const;
- QString userName () const;
- QString password () const;
- QString hostName () const;
+ TQString databaseName () const;
+ TQString userName () const;
+ TQString password () const;
+ TQString hostName () const;
int port () const;
- QString driverName () const;
+ TQString driverName () const;
- bool addDatabase ( const QString & type, const QString & connectionName = QSqlDatabase::defaultConnection );
- QStringList drivers ();
+ bool addDatabase ( const TQString & type, const TQString & connectionName = TQSqlDatabase::defaultConnection );
+ TQStringList drivers ();
bool open ();
- bool open ( const QString &user, const QString &password );
+ bool open ( const TQString &user, const TQString &password );
void close ();
bool isOpen ();
bool isOpenError ();
- QStringList tables ();
- SqlQuery *exec( const QString &query );
- QString lastError () const;
+ TQStringList tables ();
+ SqlQuery *exec( const TQString &query );
+ TQString lastError () const;
bool transaction ();
bool commit ();
bool rollback ();
private:
- QString connectionName;
- //QSqlDatabase *db;
+ TQString connectionName;
+ //TQSqlDatabase *db;
};