summaryrefslogtreecommitdiffstats
path: root/kjsembed/bindings/sql_imp.h
diff options
context:
space:
mode:
Diffstat (limited to 'kjsembed/bindings/sql_imp.h')
-rw-r--r--kjsembed/bindings/sql_imp.h74
1 files changed, 37 insertions, 37 deletions
diff --git a/kjsembed/bindings/sql_imp.h b/kjsembed/bindings/sql_imp.h
index f2fa6e6d..c99558f8 100644
--- a/kjsembed/bindings/sql_imp.h
+++ b/kjsembed/bindings/sql_imp.h
@@ -28,7 +28,7 @@ namespace KJSEmbed {
namespace Bindings {
/**
- * TQObject Binding for QSQLQuery.
+ * TTQObject Binding for TQSQLQuery.
*
* @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( TQString lastError READ lastError)
- Q_PROPERTY( TQString lastQuery READ lastQuery)
+ Q_PROPERTY( TTQString lastError READ lastError)
+ Q_PROPERTY( TTQString lastQuery READ lastQuery)
public:
- SqlQuery( TQObject *parent=0, const char *name=0 );
- SqlQuery( TQObject *parent, const char *name, const TQSqlQuery &q );
+ SqlQuery( TTQObject *parent=0, const char *name=0 );
+ SqlQuery( TTQObject *parent, const char *name, const TTQSqlQuery &q );
//SqlQuery( const SqlQuery &copy);
virtual ~SqlQuery();
- TQSqlQuery query(){ return m_query; }
- void setQuery(const TQSqlQuery &q) {m_query = TQSqlQuery(q); }
+ TTQSqlQuery query(){ return m_query; }
+ void setQuery(const TTQSqlQuery &q) {m_query = TTQSqlQuery(q); }
int size () const;
bool isSelect () const;
@@ -60,16 +60,16 @@ public:
bool isActive () const;
int at () const;
int numRowsAffected () const;
- TQString lastError () const;
- TQString lastQuery () const;
+ TTQString lastError () const;
+ TTQString lastQuery () const;
public slots:
bool isNull ( int field );
- bool exec ( const TQString & m_query );
- TQVariant value ( int i );
+ bool exec ( const TTQString & m_query );
+ TTQVariant value ( int i );
bool seek ( int i, bool relative = FALSE );
bool next ();
bool prev ();
@@ -77,11 +77,11 @@ public slots:
bool last ();
private:
- TQSqlQuery m_query;
+ TTQSqlQuery m_query;
};
/**
- * TQObject Binding for QSQLDatabase.
+ * TTQObject Binding for TQSQLDatabase.
*
* @author Ian Reinhart Geiser, geiseri@kde.org
* @version $Id$
@@ -89,49 +89,49 @@ private:
class SqlDatabase : public BindingObject
{
Q_OBJECT
- 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( TTQString databaseName READ databaseName WRITE setDatabaseName)
+ Q_PROPERTY( TTQString userName READ userName WRITE setUserName)
+ Q_PROPERTY( TTQString password READ password WRITE setPassword)
+ Q_PROPERTY( TTQString hostName READ hostName WRITE setHostName)
Q_PROPERTY( int port READ port WRITE setPort)
- Q_PROPERTY( TQString driverName READ driverName)
- Q_PROPERTY( TQString lastError READ lastError)
+ Q_PROPERTY( TTQString driverName READ driverName)
+ Q_PROPERTY( TTQString lastError READ lastError)
public:
- SqlDatabase( TQObject *parent=0, const char *name=0 );
+ SqlDatabase( TTQObject *parent=0, const char *name=0 );
virtual ~SqlDatabase();
public slots:
- void setDatabaseName (const TQString &name );
- void setUserName (const TQString &name );
- void setPassword (const TQString &password );
- void setHostName (const TQString &host );
+ void setDatabaseName (const TTQString &name );
+ void setUserName (const TTQString &name );
+ void setPassword (const TTQString &password );
+ void setHostName (const TTQString &host );
void setPort ( int p );
- TQString databaseName () const;
- TQString userName () const;
- TQString password () const;
- TQString hostName () const;
+ TTQString databaseName () const;
+ TTQString userName () const;
+ TTQString password () const;
+ TTQString hostName () const;
int port () const;
- TQString driverName () const;
+ TTQString driverName () const;
- bool addDatabase ( const TQString & type, const TQString & connectionName = TQSqlDatabase::defaultConnection );
- TQStringList drivers ();
+ bool addDatabase ( const TTQString & type, const TTQString & connectionName = TTQSqlDatabase::defaultConnection );
+ TTQStringList drivers ();
bool open ();
- bool open ( const TQString &user, const TQString &password );
+ bool open ( const TTQString &user, const TTQString &password );
void close ();
bool isOpen ();
bool isOpenError ();
- TQStringList tables ();
- SqlQuery *exec( const TQString &query );
- TQString lastError () const;
+ TTQStringList tables ();
+ SqlQuery *exec( const TTQString &query );
+ TTQString lastError () const;
bool transaction ();
bool commit ();
bool rollback ();
private:
- TQString connectionName;
- //TQSqlDatabase *db;
+ TTQString connectionName;
+ //TTQSqlDatabase *db;
};