summaryrefslogtreecommitdiffstats
path: root/vcs/cvsservice/cvsentry.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
commitd6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch)
treed109539636691d7b03036ca1c0ed29dbae6577cf /vcs/cvsservice/cvsentry.cpp
parent3331a47a9cad24795c7440ee8107143ce444ef34 (diff)
downloadtdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz
tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'vcs/cvsservice/cvsentry.cpp')
-rw-r--r--vcs/cvsservice/cvsentry.cpp52
1 files changed, 26 insertions, 26 deletions
diff --git a/vcs/cvsservice/cvsentry.cpp b/vcs/cvsservice/cvsentry.cpp
index ab8b2cc0..5db9710e 100644
--- a/vcs/cvsservice/cvsentry.cpp
+++ b/vcs/cvsservice/cvsentry.cpp
@@ -9,8 +9,8 @@
* *
***************************************************************************/
-#include <qfile.h>
-#include <qtextstream.h>
+#include <tqfile.h>
+#include <tqtextstream.h>
#include "cvsentry.h"
#include "cvsdir.h"
@@ -19,10 +19,10 @@
// Static
///////////////////////////////////////////////////////////////////////////////
-const QString CVSEntry::invalidMarker = "<Invalid entry>";
-const QString CVSEntry::directoryMarker = "D";
-const QString CVSEntry::fileMarker = "";
-const QString CVSEntry::entrySeparator = "/";
+const TQString CVSEntry::invalidMarker = "<Invalid entry>";
+const TQString CVSEntry::directoryMarker = "D";
+const TQString CVSEntry::fileMarker = "";
+const TQString CVSEntry::entrySeparator = "/";
///////////////////////////////////////////////////////////////////////////////
// class CVSEntry
@@ -35,7 +35,7 @@ CVSEntry::CVSEntry()
///////////////////////////////////////////////////////////////////////////////
-CVSEntry::CVSEntry( const QString &aLine, const CVSDir& dir )
+CVSEntry::CVSEntry( const TQString &aLine, const CVSDir& dir )
{
parse( aLine, dir );
}
@@ -57,11 +57,11 @@ CVSEntry::EntryType CVSEntry::type() const
///////////////////////////////////////////////////////////////////////////////
-void CVSEntry::parse( const QString &aLine, const CVSDir& dir )
+void CVSEntry::parse( const TQString &aLine, const CVSDir& dir )
{
clean();
- m_fields = QStringList::split( "/", aLine );
+ m_fields = TQStringList::split( "/", aLine );
if (aLine.startsWith( entrySeparator )) // Is a file?
{
@@ -70,7 +70,7 @@ void CVSEntry::parse( const QString &aLine, const CVSDir& dir )
else if (aLine.startsWith( directoryMarker )) // Must be a directory then
{
m_type = directoryEntry; // Is a directory
- m_fields.pop_front(); // QStringList::split() fills and empty item in head
+ m_fields.pop_front(); // TQStringList::split() fills and empty item in head
return;
}
else // What the hell is this? >:-)
@@ -80,9 +80,9 @@ void CVSEntry::parse( const QString &aLine, const CVSDir& dir )
}
//if we're a file, keep going
- QDateTime entryFileDate(QDateTime::fromString(timeStamp()));
- QDateTime realFileDate;
- QFileInfo info(dir, m_fields[0]);
+ TQDateTime entryFileDate(TQDateTime::fromString(timeStamp()));
+ TQDateTime realFileDate;
+ TQFileInfo info(dir, m_fields[0]);
realFileDate = info.lastModified();
m_state = UpToDate;
@@ -95,9 +95,9 @@ void CVSEntry::parse( const QString &aLine, const CVSDir& dir )
m_state = Conflict;
else
{
- QDateTime date( QDateTime::fromString( timeStamp() ) );
- QDateTime fileDateUTC;
- fileDateUTC.setTime_t( QFileInfo(dir, fileName()).lastModified().toTime_t(), Qt::UTC );
+ TQDateTime date( TQDateTime::fromString( timeStamp() ) );
+ TQDateTime fileDateUTC;
+ fileDateUTC.setTime_t( TQFileInfo(dir, fileName()).lastModified().toTime_t(), Qt::UTC );
if ( date != fileDateUTC )
m_state = Modified;
}
@@ -105,52 +105,52 @@ void CVSEntry::parse( const QString &aLine, const CVSDir& dir )
///////////////////////////////////////////////////////////////////////////////
-QString CVSEntry::fileName() const
+TQString CVSEntry::fileName() const
{
if (type() != invalidEntry && m_fields.count() >= 1)
return m_fields[0];
else
- return QString::null;
+ return TQString::null;
}
///////////////////////////////////////////////////////////////////////////////
-QString CVSEntry::revision() const
+TQString CVSEntry::revision() const
{
if (type() != invalidEntry && m_fields.count() >= 2)
return m_fields[1];
else
- return QString::null;
+ return TQString::null;
}
///////////////////////////////////////////////////////////////////////////////
-QString CVSEntry::timeStamp() const
+TQString CVSEntry::timeStamp() const
{
if (type() != invalidEntry && m_fields.count() >= 3)
return m_fields[2];
else
- return QString::null;
+ return TQString::null;
}
///////////////////////////////////////////////////////////////////////////////
-QString CVSEntry::options() const
+TQString CVSEntry::options() const
{
if (type() != invalidEntry && m_fields.count() >= 4)
return m_fields[3];
else
- return QString::null;
+ return TQString::null;
}
///////////////////////////////////////////////////////////////////////////////
-QString CVSEntry::tag() const
+TQString CVSEntry::tag() const
{
if (type() != invalidEntry && m_fields.count() >= 5)
return m_fields[4];
else
- return QString::null;
+ return TQString::null;
}
///////////////////////////////////////////////////////////////////////////////