summaryrefslogtreecommitdiffstats
path: root/cervisia/repositories.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:51:49 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:51:49 +0000
commit4ae0c208b66e0f7954e194384464fe2d0a2c56dd (patch)
treeb0a7cd1c184f0003c0292eb416ed27f674f9cc43 /cervisia/repositories.cpp
parent1964ea0fb4ab57493ca2ebb709c8d3b5395fd653 (diff)
downloadtdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.tar.gz
tdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1157652 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'cervisia/repositories.cpp')
-rw-r--r--cervisia/repositories.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/cervisia/repositories.cpp b/cervisia/repositories.cpp
index 4c517116..7f52a39d 100644
--- a/cervisia/repositories.cpp
+++ b/cervisia/repositories.cpp
@@ -19,9 +19,9 @@
#include <stdlib.h>
-#include <qfile.h>
-#include <qdir.h>
-#include <qtextstream.h>
+#include <tqfile.h>
+#include <tqdir.h>
+#include <tqtextstream.h>
#include <kapplication.h>
#include <kconfig.h>
@@ -29,15 +29,15 @@
#include "cervisiapart.h"
-static QString fileNameCvs()
+static TQString fileNameCvs()
{
- return QDir::homeDirPath() + "/.cvspass";
+ return TQDir::homeDirPath() + "/.cvspass";
}
-static QString fileNameCvsnt()
+static TQString fileNameCvsnt()
{
- return QDir::homeDirPath() + "/.cvs/cvspass";
+ return TQDir::homeDirPath() + "/.cvs/cvspass";
}
@@ -47,18 +47,18 @@ static QString fileNameCvsnt()
// new .cvspass format (since cvs 1.11.1):
// /1 user@host:port/path Aencoded_password
//
-static QStringList readCvsPassFile()
+static TQStringList readCvsPassFile()
{
- QStringList list;
+ TQStringList list;
- QFile f(fileNameCvs());
+ TQFile f(fileNameCvs());
if (f.open(IO_ReadOnly))
{
- QTextStream stream(&f);
+ TQTextStream stream(&f);
while (!stream.eof())
{
int pos;
- QString line = stream.readLine();
+ TQString line = stream.readLine();
if ( (pos = line.find(' ')) != -1)
{
if (line[0] != '/') // old format
@@ -76,17 +76,17 @@ static QStringList readCvsPassFile()
// .cvs/cvspass format
// user@host:port/path=Aencoded_password
//
-static QStringList readCvsntPassFile()
+static TQStringList readCvsntPassFile()
{
- QStringList list;
+ TQStringList list;
- QFile file(fileNameCvsnt());
+ TQFile file(fileNameCvsnt());
if (file.open(IO_ReadOnly))
{
- QTextStream stream(&file);
+ TQTextStream stream(&file);
while (!stream.atEnd())
{
- const QString line(stream.readLine());
+ const TQString line(stream.readLine());
const int pos(line.find("=A"));
if (pos >= 0)
@@ -98,18 +98,18 @@ static QStringList readCvsntPassFile()
}
-QStringList Repositories::readCvsPassFile()
+TQStringList Repositories::readCvsPassFile()
{
- return (QFileInfo(fileNameCvs()).lastModified()
- < QFileInfo(fileNameCvsnt()).lastModified())
+ return (TQFileInfo(fileNameCvs()).lastModified()
+ < TQFileInfo(fileNameCvsnt()).lastModified())
? readCvsntPassFile()
: ::readCvsPassFile();
}
-QStringList Repositories::readConfigFile()
+TQStringList Repositories::readConfigFile()
{
- QStringList list;
+ TQStringList list;
KConfig *config = CervisiaPart::config();
config->setGroup("Repositories");