summaryrefslogtreecommitdiffstats
path: root/kdeaccounts-plugin/kdeaccountsformat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kdeaccounts-plugin/kdeaccountsformat.cpp')
-rw-r--r--kdeaccounts-plugin/kdeaccountsformat.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/kdeaccounts-plugin/kdeaccountsformat.cpp b/kdeaccounts-plugin/kdeaccountsformat.cpp
index d445e311..fc9f2cb3 100644
--- a/kdeaccounts-plugin/kdeaccountsformat.cpp
+++ b/kdeaccounts-plugin/kdeaccountsformat.cpp
@@ -1,7 +1,7 @@
#include "kdeaccountsformat.h"
-#include <qcstring.h>
-#include <qfile.h>
+#include <tqcstring.h>
+#include <tqfile.h>
#include <kabc/addressbook.h>
#include <kabc/addressee.h>
@@ -22,21 +22,21 @@ extern "C"
bool KDEAccountsFormat::loadAll( KABC::AddressBook *book,
KABC::Resource *resource,
- QFile *file )
+ TQFile *file )
{
if ( !book || !file ) // eh?
return false;
- QString uuid = "KDEAccountsEntry.";
+ TQString uuid = "KDEAccountsEntry.";
int id = 0;
- QByteArray array = file->readAll();
+ TQByteArray array = file->readAll();
file->close();
- QByteArray::ConstIterator it = array.begin();
- QByteArray::ConstIterator end = array.end();
- QByteArray::ConstIterator startLine;
- QString line;
+ TQByteArray::ConstIterator it = array.begin();
+ TQByteArray::ConstIterator end = array.end();
+ TQByteArray::ConstIterator startLine;
+ TQString line;
char eol = '\n';
char delim = ' ';
@@ -48,11 +48,11 @@ bool KDEAccountsFormat::loadAll( KABC::AddressBook *book,
{ } // find eol
uint length = it - startLine;
- line = QString::fromUtf8( startLine, length ).simplifyWhiteSpace();
+ line = TQString::fromUtf8( startLine, length ).simplifyWhiteSpace();
- QString nickName;
- QString name;
- QString email;
+ TQString nickName;
+ TQString name;
+ TQString email;
int firstSpace = line.find( delim );
if ( firstSpace > 0 )
@@ -76,7 +76,7 @@ bool KDEAccountsFormat::loadAll( KABC::AddressBook *book,
address.setOrganization("KDE Project");
address.insertCategory("KDE Developer");
address.insertEmail( email );
- address.setUid( uuid + QString::number( id++ ));
+ address.setUid( uuid + TQString::number( id++ ));
address.setResource( resource );
book->insertAddressee( address );