diff options
Diffstat (limited to 'kexi/plugins/scripting/kexidb/kexidbconnection.h')
-rw-r--r-- | kexi/plugins/scripting/kexidb/kexidbconnection.h | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/kexi/plugins/scripting/kexidb/kexidbconnection.h b/kexi/plugins/scripting/kexidb/kexidbconnection.h index 7e1a7d3a..925a6e8e 100644 --- a/kexi/plugins/scripting/kexidb/kexidbconnection.h +++ b/kexi/plugins/scripting/kexidb/kexidbconnection.h @@ -20,7 +20,7 @@ #ifndef KROSS_KEXIDB_KEXIDBCONNECTION_H #define KROSS_KEXIDB_KEXIDBCONNECTION_H -#include <qstring.h> +#include <tqstring.h> #include <ksharedptr.h> #include <api/object.h> @@ -70,14 +70,14 @@ namespace Kross { namespace KexiDB { public: KexiDBConnection(::KexiDB::Connection* connection, KexiDBDriver* driver = 0, KexiDBConnectionData* connectiondata = 0); virtual ~KexiDBConnection(); - virtual const QString getClassName() const; + virtual const TQString getClassName() const; private: /** Return true if there was an error during last operation on the database. */ bool hadError() const; /** Return the last errormessage. */ - const QString lastError() const; + const TQString lastError() const; /** Return the KexiDBConnectionData object used to create this connection. */ KexiDBConnectionData* data(); @@ -95,31 +95,31 @@ namespace Kross { namespace KexiDB { bool isReadOnly() const; /** Return true if the as argument passed databasename exists. */ - bool databaseExists(const QString& dbname); + bool databaseExists(const TQString& dbname); /** Return the name of currently used database for this connection or empty string if there is no used database. */ - const QString currentDatabase() const; + const TQString currentDatabase() const; /** Return list of database names for opened connection. */ - const QStringList databaseNames() const; + const TQStringList databaseNames() const; /** Return true if connection is properly established. */ bool isDatabaseUsed() const; /** Opens an existing database specified by the as argument passed databasename and returns true if the database is used now. */ - bool useDatabase(const QString& dbname); + bool useDatabase(const TQString& dbname); /** Closes currently used database for this connection. */ bool closeDatabase(); /** Return names of all table schemas stored in currently used database include the internal KexiDB system table names (kexi__*) */ - const QStringList allTableNames() const; + const TQStringList allTableNames() const; /** Return names of all table schemas without the internal KexiDB system table names (kexi__*) */ - const QStringList tableNames() const; + const TQStringList tableNames() const; /** Return names of all query schemas stored in currently used database. */ - const QStringList queryNames() const; + const TQStringList queryNames() const; /** Executes query described by the as argument passed sqlstatement-string. Returns the opened cursor created for results of this query. */ - KexiDBCursor* executeQueryString(const QString& sqlquery); + KexiDBCursor* executeQueryString(const TQString& sqlquery); /** Executes query described by the as argument passed KexiDBQuerySchema object. Returns the opened cursor created for results of this query. */ KexiDBCursor* executeQuerySchema(KexiDBQuerySchema* queryschema); @@ -129,28 +129,28 @@ namespace Kross { namespace KexiDB { Kross::Api::Object::Ptr insertRecord(Kross::Api::List::Ptr); /** Creates new database with the as argument passed databasename. */ - bool createDatabase(const QString& dbname); + bool createDatabase(const TQString& dbname); /** Drops the as argument passed databasename. */ - bool dropDatabase(const QString& dbname); + bool dropDatabase(const TQString& dbname); /** Creates table defined by the as argument passed KexiTableSchema object. */ bool createTable(KexiDBTableSchema* tableschema); /** Drops table defined by the as argument passed KexiDBTableSchema object. */ - bool dropTable(const QString& tablename); + bool dropTable(const TQString& tablename); /** Alters the as first argument passed KexiDBTableSchema object using the as second argument passed KexiDBTableSchema. */ bool alterTable(KexiDBTableSchema* fromschema, KexiDBTableSchema* toschema); /** Alters the tablename of the as first argument passed KexiDBTableSchema into the as second argument passed new tablename. */ - bool alterTableName(KexiDBTableSchema* tableschema, const QString& newtablename); + bool alterTableName(KexiDBTableSchema* tableschema, const TQString& newtablename); /** Returns the KexiDBTableSchema object of the table matching to the as argument passed tablename. */ - KexiDBTableSchema* tableSchema(const QString& tablename) const; + KexiDBTableSchema* tableSchema(const TQString& tablename) const; /** Returns true if there is at least one valid record in the as argument passed tablename. */ bool isEmptyTable(KexiDBTableSchema* tableschema) const; /** Returns the KexiDBQuerySchema object of the query matching to the as argument passed queryname. */ - KexiDBQuerySchema* querySchema(const QString& queryname) const; + KexiDBQuerySchema* querySchema(const TQString& queryname) const; /** Return true if the \"auto commit\" option is on. */ bool autoCommit() const; |