diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-04 19:54:24 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-04 19:54:24 +0000 |
commit | d7633c195a464e4d344ada9eea61afd10110598a (patch) | |
tree | 1f2da0b135f3ed84955e340cae823f00c4ce7284 /src/svnqt/exception.hpp | |
parent | 3fa7eb804f67b2789f128075cc2522f398640250 (diff) | |
download | tdesvn-d7633c195a464e4d344ada9eea61afd10110598a.tar.gz tdesvn-d7633c195a464e4d344ada9eea61afd10110598a.zip |
Port kdesvn to TQt4
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kdesvn@1230412 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/svnqt/exception.hpp')
-rw-r--r-- | src/svnqt/exception.hpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/svnqt/exception.hpp b/src/svnqt/exception.hpp index b83269f..039f1a4 100644 --- a/src/svnqt/exception.hpp +++ b/src/svnqt/exception.hpp @@ -34,7 +34,7 @@ #include "svnqt/svnqt_defines.hpp" // subversion api #include "svn_client.h" -#include <qstring.h> +#include <tqstring.h> namespace svn { @@ -42,33 +42,33 @@ namespace svn /** * Generic exception class. */ - class SVNQT_EXPORT Exception + class SVNTQT_EXPORT Exception { public: /** * Constructor. Assigns the exception reason. */ Exception (const char * message) throw (); - Exception (const QString&message) throw(); + Exception (const TQString&message) throw(); virtual ~Exception () throw (); /** * @return the exception message. */ - virtual const QString& msg() const; + virtual const TQString& msg() const; /** * @return the outermost error code. */ apr_status_t apr_err () const; - static QString error2msg(svn_error_t*error); + static TQString error2msg(svn_error_t*error); protected: struct Data; Data * m; - void setMessage(const QString&); + void setMessage(const TQString&); private: @@ -83,7 +83,7 @@ namespace svn /** * Subversion client exception class. */ - class SVNQT_EXPORT ClientException : public Exception + class SVNTQT_EXPORT ClientException : public Exception { public: /** @@ -107,7 +107,7 @@ namespace svn /** * Constructor */ - ClientException (const QString&message) throw(); + ClientException (const TQString&message) throw(); /** * Copy constructor @@ -120,11 +120,11 @@ namespace svn ClientException () throw (); ClientException & operator = (ClientException &); - static QString getBackTrace(); + static TQString getBackTrace(); void init(); /// backtrace from constructor; - QString m_backTraceConstr; + TQString m_backTraceConstr; }; |