summaryrefslogtreecommitdiffstats
path: root/ksirc/KSOpenkSirc/serverFileParser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ksirc/KSOpenkSirc/serverFileParser.cpp')
-rw-r--r--ksirc/KSOpenkSirc/serverFileParser.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/ksirc/KSOpenkSirc/serverFileParser.cpp b/ksirc/KSOpenkSirc/serverFileParser.cpp
index 8e6ba80e..10960650 100644
--- a/ksirc/KSOpenkSirc/serverFileParser.cpp
+++ b/ksirc/KSOpenkSirc/serverFileParser.cpp
@@ -1,12 +1,12 @@
#include "serverFileParser.h"
#include "serverDataType.h"
-#include <qfile.h>
+#include <tqfile.h>
#include <stdlib.h>
#include <kstandarddirs.h>
#include <kdebug.h>
-extern QPtrList<Server> Groups;
+extern TQPtrList<Server> Groups;
// Opens, reads and parses server information from a server file,
// sets the information in the global variable and returns 1 if
@@ -16,30 +16,30 @@ int serverFileParser::readDatafile( const char *fileName )
{
Groups.setAutoDelete( TRUE );
Groups.clear();
- QFile serverFile( fileName );
+ TQFile serverFile( fileName );
if ( !serverFile.open( IO_ReadOnly ) )
return -1;
- QTextStream fileStream(&serverFile);
+ TQTextStream fileStream(&serverFile);
// the file is layed out as follows:
// service:servername:serveraddress:ports:script:
// so we parse it this way
while( !fileStream.eof() ) {
- QString str = fileStream.readLine();
+ TQString str = fileStream.readLine();
const char *strC = str.ascii();
char *token;
char groupC[1024], servernameC[1024], serveraddressC[1024], portsC[1024];
int pos = 0;
- QString group;
- QString servername;
- QString serveraddress;
- QPtrList<port> ports;
- QString script;
+ TQString group;
+ TQString servername;
+ TQString serveraddress;
+ TQPtrList<port> ports;
+ TQString script;
- QString buf;
- QString portbuff;
+ TQString buf;
+ TQString portbuff;
pos = sscanf(strC, "%1023[^:]:%1024[^:]:%1023[^:]:%1023[^:]:", groupC, servernameC, serveraddressC, portsC);
if(pos != 4){
@@ -109,6 +109,6 @@ int serverFileParser::readDatafile( const char *fileName )
int writeDataFile()
{
- QString filename(KGlobal::dirs()->saveLocation("appdata")+"servers.txt");
+ TQString filename(KGlobal::dirs()->saveLocation("appdata")+"servers.txt");
return 1;
}