diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
commit | f008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch) | |
tree | 8e9244c4d4957c36be81e15b566b4aa5ea26c982 /kexi/kexidb/connectiondata.h | |
parent | 1210f27b660efb7b37ff43ec68763e85a403471f (diff) | |
download | koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip |
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kexi/kexidb/connectiondata.h')
-rw-r--r-- | kexi/kexidb/connectiondata.h | 46 |
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. |