summaryrefslogtreecommitdiffstats
path: root/kexi/kexidb/connectiondata.h
diff options
context:
space:
mode:
Diffstat (limited to 'kexi/kexidb/connectiondata.h')
-rw-r--r--kexi/kexidb/connectiondata.h46
1 files changed, 23 insertions, 23 deletions
diff --git a/kexi/kexidb/connectiondata.h b/kexi/kexidb/connectiondata.h
index cd3c15375..fdb69ad58 100644
--- a/kexi/kexidb/connectiondata.h
+++ b/kexi/kexidb/connectiondata.h
@@ -22,9 +22,9 @@
#include <kexidb/kexidb_export.h>
-#include <qobject.h>
-#include <qstring.h>
-#include <qptrlist.h>
+#include <tqobject.h>
+#include <tqstring.h>
+#include <tqptrlist.h>
namespace KexiDB {
@@ -33,7 +33,7 @@ namespace KexiDB {
ConnectionData class. */
/*! @internal
Used by ConnectionData.
- It is easier to internally operate on non-QObject-derived object,
+ It is easier to internally operate on non-TQObject-derived object,
e.g.: to copy data members in ConnectionData ctor. */
class ConnectionDataBase
{
@@ -46,12 +46,12 @@ class ConnectionDataBase
Captions are optional for identyfying given connection
by name eg. for users.
*/
- QString caption;
+ TQString caption;
/*!
\brief The additional description for the connection
*/
- QString description;
+ TQString description;
/*!
\brief Used for identifying a single piece of data in a set
@@ -73,14 +73,14 @@ class ConnectionDataBase
driver should be used to perform connection, before we get an appropriate
driver object from DriverManager.
*/
- QString driverName;
+ TQString driverName;
/*!
\brief Host name used for the remote connection.
Can be empty if the connection is not remote. If it is empty "localhost" is used.
*/
- QString hostName;
+ TQString hostName;
/*!
\brief Port used for the remote connection.
@@ -107,15 +107,15 @@ class ConnectionDataBase
For local connections only. If empty, it's driver will try to locate existing local socket
file. Empty by default.
*/
- QString localSocketFileName;
+ TQString localSocketFileName;
/*!
\brief Password used for the connection.
Can be empty string or null. If it is empty (equal to ""), empty password is passed to the driver.
- If it is null (QString::null), no password is passed to the driver.
+ If it is null (TQString()), no password is passed to the driver.
In this case, applications using KexiDB should ask for the password. */
- QString password;
+ TQString password;
/*!
\brief True if password should be saved to a file for the connection.
@@ -130,7 +130,7 @@ class ConnectionDataBase
\brief Username used for the connection.
Can be empty. */
- QString userName;
+ TQString userName;
protected:
/*!
@@ -139,31 +139,31 @@ class ConnectionDataBase
For file-based database engines like SQLite, \a fileName is used
instead hostName and port
*/
- QString m_fileName;
+ TQString m_fileName;
/*!
\brief Absolute path to the database file
Will be empty if database is not file-based
*/
- QString m_dbPath;
+ TQString m_dbPath;
/*!
\brief Filename of the database file
Will be empty if database is not file-based
*/
- QString m_dbFileName;
+ TQString m_dbFileName;
};
//! Database specific connection data, e.g. host, port.
/*! Connection data, once configured, can be later stored for reuse.
*/
-class KEXI_DB_EXPORT ConnectionData : public QObject, public ConnectionDataBase
+class KEXI_DB_EXPORT ConnectionData : public TQObject, public ConnectionDataBase
{
public:
- typedef QPtrList<ConnectionData> List;
- typedef QPtrListIterator<ConnectionData> ListIterator;
+ typedef TQPtrList<ConnectionData> List;
+ typedef TQPtrListIterator<ConnectionData> ListIterator;
ConnectionData();
@@ -180,7 +180,7 @@ class KEXI_DB_EXPORT ConnectionData : public QObject, public ConnectionDataBase
function to set the file name of the database to use.
\a fn can be either absolute or relative path to the file.
*/
- void setFileName( const QString& fn );
+ void setFileName( const TQString& fn );
/*!
\brief Get the filename used by the connection
@@ -189,21 +189,21 @@ class KEXI_DB_EXPORT ConnectionData : public QObject, public ConnectionDataBase
instead hostName and port.
@return An absolute path to the database file being used
*/
- QString fileName() const { return m_fileName; }
+ TQString fileName() const { return m_fileName; }
/*!
\brief The directory the database file is in
\return file path (for file-based engines) but without a file name
*/
- QString dbPath() const { return m_dbPath; }
+ TQString dbPath() const { return m_dbPath; }
/*!
\brief The file name (without path) of the database file
\return The file name (for file-based engines) but without a full path
*/
- QString dbFileName() const { return m_dbFileName; }
+ TQString dbFileName() const { return m_dbFileName; }
/*!
\brief A user-friendly string for the server
@@ -218,7 +218,7 @@ class KEXI_DB_EXPORT ConnectionData : public QObject, public ConnectionDataBase
User's name is added if \a addUser is true (the default).
*/
- QString serverInfoString(bool addUser = true) const;
+ TQString serverInfoString(bool addUser = true) const;
/*! @internal
Format version used when saving the data to a shortcut file.