summaryrefslogtreecommitdiffstats
path: root/kjsembed/bindings/sql_imp.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-05 16:20:48 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-05 16:20:48 -0600
commite63beeb5bdb82987b1e00bc35178667786fbad48 (patch)
treeab77b6ac830b7944d5d1eb9ce8f81feb8fdab948 /kjsembed/bindings/sql_imp.cpp
parent67557a2b56c0678c22ab1b00c4fd0224c5e9ed99 (diff)
downloadtdebindings-e63beeb5bdb82987b1e00bc35178667786fbad48.tar.gz
tdebindings-e63beeb5bdb82987b1e00bc35178667786fbad48.zip
Fix incorrect conversion
Diffstat (limited to 'kjsembed/bindings/sql_imp.cpp')
-rw-r--r--kjsembed/bindings/sql_imp.cpp98
1 files changed, 49 insertions, 49 deletions
diff --git a/kjsembed/bindings/sql_imp.cpp b/kjsembed/bindings/sql_imp.cpp
index 3d7e9578..5fa9782f 100644
--- a/kjsembed/bindings/sql_imp.cpp
+++ b/kjsembed/bindings/sql_imp.cpp
@@ -30,44 +30,44 @@
namespace KJSEmbed {
namespace Bindings {
-SqlDatabase::SqlDatabase( TTQObject *parent, const char *name): BindingObject(parent, name)
+SqlDatabase::SqlDatabase( TQObject *parent, const char *name): BindingObject(parent, name)
{
connectionName = "defaultConnection";
setJSClassName( "SqlDatabase" );
}
SqlDatabase::~SqlDatabase()
{
- TTQSqlDatabase::removeDatabase(connectionName);
+ TQSqlDatabase::removeDatabase(connectionName);
}
-bool SqlDatabase::addDatabase ( const TTQString &type, const TTQString &conn )
+bool SqlDatabase::addDatabase ( const TQString &type, const TQString &conn )
{
connectionName = conn;
- TTQSqlDatabase *db = TTQSqlDatabase::addDatabase(type, connectionName);
+ TQSqlDatabase *db = TQSqlDatabase::addDatabase(type, connectionName);
if ( !db )
return false;
return true;
}
-TTQStringList SqlDatabase::drivers ()
+TQStringList SqlDatabase::drivers ()
{
- return TTQSqlDatabase::drivers();
+ return TQSqlDatabase::drivers();
}
bool SqlDatabase::open ( )
{
- TTQSqlDatabase *db = TTQSqlDatabase::database(connectionName,false);
+ TQSqlDatabase *db = TQSqlDatabase::database(connectionName,false);
if ( db )
return db->open();
return false;
}
-bool SqlDatabase::open ( const TTQString &user, const TTQString &password )
+bool SqlDatabase::open ( const TQString &user, const TQString &password )
{
- TTQSqlDatabase *db = TTQSqlDatabase::database(connectionName,false);
+ TQSqlDatabase *db = TQSqlDatabase::database(connectionName,false);
if ( db )
return db->open(user, password);
return false;
}
void SqlDatabase::close ()
{
- TTQSqlDatabase *db = TTQSqlDatabase::database(connectionName,false);
+ TQSqlDatabase *db = TQSqlDatabase::database(connectionName,false);
if ( db )
{
db->close();
@@ -75,28 +75,28 @@ void SqlDatabase::close ()
}
bool SqlDatabase::isOpen ()
{
- TTQSqlDatabase *db = TTQSqlDatabase::database(connectionName,false);
+ TQSqlDatabase *db = TQSqlDatabase::database(connectionName,false);
if ( db )
return db->isOpen();
return false;
}
bool SqlDatabase::isOpenError ()
{
- TTQSqlDatabase *db = TTQSqlDatabase::database(connectionName,false);
+ TQSqlDatabase *db = TQSqlDatabase::database(connectionName,false);
if ( db )
return db->isOpenError();
return true;
}
-TTQStringList SqlDatabase::tables ()
+TQStringList SqlDatabase::tables ()
{
- TTQSqlDatabase *db = TTQSqlDatabase::database(connectionName,false);
+ TQSqlDatabase *db = TQSqlDatabase::database(connectionName,false);
if ( db )
return db->tables();
- return TTQStringList();
+ return TQStringList();
}
-SqlQuery *SqlDatabase::exec (const TTQString &query )
+SqlQuery *SqlDatabase::exec (const TQString &query )
{
- TTQSqlDatabase *db = TTQSqlDatabase::database(connectionName,false);
+ TQSqlDatabase *db = TQSqlDatabase::database(connectionName,false);
if ( db )
{
kdDebug() <<" exec query " << query << endl;
@@ -108,9 +108,9 @@ SqlQuery *SqlDatabase::exec (const TTQString &query )
}
return 0L;
}
-TTQString SqlDatabase::lastError () const
+TQString SqlDatabase::lastError () const
{
- TTQSqlDatabase *db = TTQSqlDatabase::database(connectionName,false);
+ TQSqlDatabase *db = TQSqlDatabase::database(connectionName,false);
if ( db )
{
return db->lastError().text();
@@ -119,105 +119,105 @@ TTQString SqlDatabase::lastError () const
}
bool SqlDatabase::transaction ()
{
- TTQSqlDatabase *db = TTQSqlDatabase::database(connectionName,false);
+ TQSqlDatabase *db = TQSqlDatabase::database(connectionName,false);
if ( db )
return db->transaction();
return false;
}
bool SqlDatabase::commit ()
{
- TTQSqlDatabase *db = TTQSqlDatabase::database(connectionName,false);
+ TQSqlDatabase *db = TQSqlDatabase::database(connectionName,false);
if ( db )
return db->commit();
return false;
}
bool SqlDatabase::rollback ()
{
- TTQSqlDatabase *db = TTQSqlDatabase::database(connectionName,false);
+ TQSqlDatabase *db = TQSqlDatabase::database(connectionName,false);
if ( db )
return db->rollback();
return false;
}
-void SqlDatabase::setDatabaseName (const TTQString &name )
+void SqlDatabase::setDatabaseName (const TQString &name )
{
- TTQSqlDatabase *db = TTQSqlDatabase::database(connectionName,false);
+ TQSqlDatabase *db = TQSqlDatabase::database(connectionName,false);
if ( db )
db->setDatabaseName(name);
}
-void SqlDatabase::setUserName (const TTQString &name )
+void SqlDatabase::setUserName (const TQString &name )
{
- TTQSqlDatabase *db = TTQSqlDatabase::database(connectionName,false);
+ TQSqlDatabase *db = TQSqlDatabase::database(connectionName,false);
if ( db )
db->setUserName(name);
}
-void SqlDatabase::setPassword (const TTQString &password )
+void SqlDatabase::setPassword (const TQString &password )
{
- TTQSqlDatabase *db = TTQSqlDatabase::database(connectionName,false);
+ TQSqlDatabase *db = TQSqlDatabase::database(connectionName,false);
if ( db )
db->setPassword(password);
}
-void SqlDatabase::setHostName (const TTQString &host )
+void SqlDatabase::setHostName (const TQString &host )
{
- TTQSqlDatabase *db = TTQSqlDatabase::database(connectionName,false);
+ TQSqlDatabase *db = TQSqlDatabase::database(connectionName,false);
if ( db )
db->setHostName(host);
}
void SqlDatabase::setPort ( int p )
{
- TTQSqlDatabase *db = TTQSqlDatabase::database(connectionName,false);
+ TQSqlDatabase *db = TQSqlDatabase::database(connectionName,false);
if ( db )
db->setPort(p);
}
-TTQString SqlDatabase::databaseName () const
+TQString SqlDatabase::databaseName () const
{
- TTQSqlDatabase *db = TTQSqlDatabase::database(connectionName,false);
+ TQSqlDatabase *db = TQSqlDatabase::database(connectionName,false);
if ( db )
return db->databaseName();
return "";
}
-TTQString SqlDatabase::userName () const
+TQString SqlDatabase::userName () const
{
- TTQSqlDatabase *db = TTQSqlDatabase::database(connectionName,false);
+ TQSqlDatabase *db = TQSqlDatabase::database(connectionName,false);
if ( db )
return db->userName();
return "";
}
-TTQString SqlDatabase::password () const
+TQString SqlDatabase::password () const
{
- TTQSqlDatabase *db = TTQSqlDatabase::database(connectionName,false);
+ TQSqlDatabase *db = TQSqlDatabase::database(connectionName,false);
if ( db )
return db->password();
return "";
}
-TTQString SqlDatabase::hostName () const
+TQString SqlDatabase::hostName () const
{
- TTQSqlDatabase *db = TTQSqlDatabase::database(connectionName,false);
+ TQSqlDatabase *db = TQSqlDatabase::database(connectionName,false);
if ( db )
return db->hostName();
return "";
}
-TTQString SqlDatabase::driverName () const
+TQString SqlDatabase::driverName () const
{
- TTQSqlDatabase *db = TTQSqlDatabase::database(connectionName,false);
+ TQSqlDatabase *db = TQSqlDatabase::database(connectionName,false);
if ( db )
return db->driverName();
return "";
}
int SqlDatabase::port () const
{
- TTQSqlDatabase *db = TTQSqlDatabase::database(connectionName,false);
+ TQSqlDatabase *db = TQSqlDatabase::database(connectionName,false);
if ( db )
return db->port();
return 0;
}
-SqlQuery::SqlQuery( TTQObject *parent, const char *name ): BindingObject(parent, name)
+SqlQuery::SqlQuery( TQObject *parent, const char *name ): BindingObject(parent, name)
{
kdDebug() << "New null SQL Query" << endl;
- m_query = TTQSqlQuery();
+ m_query = TQSqlQuery();
setJSClassName( "SqlQuery" );
}
-SqlQuery::SqlQuery( TTQObject *parent, const char *name, const TTQSqlQuery &q ): BindingObject(parent, name)
+SqlQuery::SqlQuery( TQObject *parent, const char *name, const TQSqlQuery &q ): BindingObject(parent, name)
{
kdDebug() << "New SQL Query with argument" << endl;
m_query = q;
@@ -252,7 +252,7 @@ int SqlQuery::at () const
{
return m_query.at();
}
-TTQString SqlQuery::lastQuery () const
+TQString SqlQuery::lastQuery () const
{
kdDebug() << "Last query error: " << m_query.lastQuery() << endl;
return m_query.lastQuery();
@@ -261,7 +261,7 @@ int SqlQuery::numRowsAffected () const
{
return m_query.numRowsAffected();
}
-TTQString SqlQuery::lastError () const
+TQString SqlQuery::lastError () const
{
return m_query.lastError().text();
}
@@ -273,11 +273,11 @@ int SqlQuery::size () const
{
return m_query.size();
}
-bool SqlQuery::exec ( const TTQString & query )
+bool SqlQuery::exec ( const TQString & query )
{
return m_query.exec( query );
}
-TTQVariant SqlQuery::value ( int i )
+TQVariant SqlQuery::value ( int i )
{
return m_query.value(i);
}