summaryrefslogtreecommitdiffstats
path: root/src/svnqt/log_entry.hpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-04 19:54:24 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-04 19:54:24 +0000
commitd7633c195a464e4d344ada9eea61afd10110598a (patch)
tree1f2da0b135f3ed84955e340cae823f00c4ce7284 /src/svnqt/log_entry.hpp
parent3fa7eb804f67b2789f128075cc2522f398640250 (diff)
downloadtdesvn-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/log_entry.hpp')
-rw-r--r--src/svnqt/log_entry.hpp68
1 files changed, 28 insertions, 40 deletions
diff --git a/src/svnqt/log_entry.hpp b/src/svnqt/log_entry.hpp
index cc33f60..91f694c 100644
--- a/src/svnqt/log_entry.hpp
+++ b/src/svnqt/log_entry.hpp
@@ -34,21 +34,13 @@
#include "svnqt/svnqt_defines.hpp"
#include "svnqt/datetime.hpp"
-//Qt
-#include <qglobal.h>
+//TQt
+#include <tqglobal.h>
-#if QT_VERSION < 0x040000
-
-#include <qglobal.h>
-#include <qstring.h>
-#include <qvaluelist.h>
-#include <qmap.h>
-
-#else
-
-#include <QtCore>
-
-#endif
+#include <tqglobal.h>
+#include <tqstring.h>
+#include <tqvaluelist.h>
+#include <tqmap.h>
// apr
#include "apr_time.h"
@@ -60,7 +52,7 @@
namespace svn
{
- class SVNQT_EXPORT LogChangePathEntry
+ class SVNTQT_EXPORT LogChangePathEntry
{
public:
LogChangePathEntry (const char *path_,
@@ -68,38 +60,34 @@ namespace svn
const char *copyFromPath_,
const svn_revnum_t copyFromRevision_);
- LogChangePathEntry (const QString &path_,
+ LogChangePathEntry (const TQString &path_,
char action_,
- const QString &copyFromPath_,
+ const TQString &copyFromPath_,
const svn_revnum_t copyFromRevision_);
- LogChangePathEntry (const QString &path_,
+ LogChangePathEntry (const TQString &path_,
char action_,
- const QString &copyFromPath_,
+ const TQString &copyFromPath_,
const svn_revnum_t copyFromRevision_,
- const QString &copyToPath_,
+ const TQString &copyToPath_,
const svn_revnum_t copyToRevision_);
LogChangePathEntry();
- QString path;
+ TQString path;
char action;
- QString copyFromPath;
+ TQString copyFromPath;
//! future use or useful in backends
- QString copyToPath;
+ TQString copyToPath;
- QLONG copyFromRevision;
+ TQLONG copyFromRevision;
//! future use or useful in backends
- QLONG copyToRevision;
+ TQLONG copyToRevision;
};
-#if QT_VERSION < 0x040000
- typedef QValueList<LogChangePathEntry> LogChangePathEntries;
-#else
- typedef QList<LogChangePathEntry> LogChangePathEntries;
-#endif
+ typedef TQValueList<LogChangePathEntry> LogChangePathEntries;
- class SVNQT_EXPORT LogEntry
+ class SVNTQT_EXPORT LogEntry
{
public:
LogEntry ();
@@ -114,20 +102,20 @@ namespace svn
void setDate(const char*date);
//! if -1 the entry is a fake entry and not real usable!
- QLONG revision;
- QLONG date;
- QString author;
- QString message;
+ TQLONG revision;
+ TQLONG date;
+ TQString author;
+ TQString message;
LogChangePathEntries changedPaths;
- QLIST<QLONG> m_MergedInRevisions;
+ TQLIST<TQLONG> m_MergedInRevisions;
};
}
-SVNQT_EXPORT QDataStream &operator<<(QDataStream&s,const svn::LogEntry&r);
-SVNQT_EXPORT QDataStream &operator<<(QDataStream&s,const svn::LogChangePathEntry&r);
+SVNTQT_EXPORT TQDataStream &operator<<(TQDataStream&s,const svn::LogEntry&r);
+SVNTQT_EXPORT TQDataStream &operator<<(TQDataStream&s,const svn::LogChangePathEntry&r);
-SVNQT_EXPORT QDataStream &operator>>(QDataStream&s,svn::LogEntry&r);
-SVNQT_EXPORT QDataStream &operator>>(QDataStream&s,svn::LogChangePathEntry&r);
+SVNTQT_EXPORT TQDataStream &operator>>(TQDataStream&s,svn::LogEntry&r);
+SVNTQT_EXPORT TQDataStream &operator>>(TQDataStream&s,svn::LogChangePathEntry&r);
#endif
/* -----------------------------------------------------------------