summaryrefslogtreecommitdiffstats
path: root/kmailcvt/filter_mailapp.cxx
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kmailcvt/filter_mailapp.cxx
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmailcvt/filter_mailapp.cxx')
-rw-r--r--kmailcvt/filter_mailapp.cxx28
1 files changed, 14 insertions, 14 deletions
diff --git a/kmailcvt/filter_mailapp.cxx b/kmailcvt/filter_mailapp.cxx
index c6f45ced0..2121badb0 100644
--- a/kmailcvt/filter_mailapp.cxx
+++ b/kmailcvt/filter_mailapp.cxx
@@ -46,7 +46,7 @@ void FilterMailApp::import(FilterInfo *info)
int overall_status = 0;
bool first_msg = true;
- QString directory = KFileDialog::getExistingDirectory( QDir::homeDirPath(), info->parent() );
+ TQString directory = KFileDialog::getExistingDirectory( TQDir::homeDirPath(), info->parent() );
//qDebug("starting by looking in directory: %s", directory.latin1());
if ( directory.isEmpty() ) {
@@ -56,35 +56,35 @@ void FilterMailApp::import(FilterInfo *info)
info->setOverall(0);
traverseDirectory(info, directory);
- for ( QStringList::Iterator filename = mMboxFiles.begin(); filename != mMboxFiles.end(); ++filename, ++currentFile) {
+ for ( TQStringList::Iterator filename = mMboxFiles.begin(); filename != mMboxFiles.end(); ++filename, ++currentFile) {
if ( info->shouldTerminate() ) break;
- QFile mbox( *filename );
+ TQFile mbox( *filename );
if (! mbox.open( IO_ReadOnly ) ) {
info->alert( i18n("Unable to open %1, skipping").arg( *filename ) );
} else {
- QFileInfo filenameInfo( *filename );
+ TQFileInfo filenameInfo( *filename );
kdDebug() << "importing filename " << *filename << endl;
- QStringList name = QStringList::split("/", *filename);
- QString folderName(name[name.count() - 2]);
+ TQStringList name = TQStringList::split("/", *filename);
+ TQString folderName(name[name.count() - 2]);
info->setCurrent(0);
info->addLog( i18n("Importing emails from %1...").arg( *filename ) );
info->setFrom( *filename );
info->setTo( folderName );
- QByteArray input(MAX_LINE);
+ TQByteArray input(MAX_LINE);
long l = 0;
while ( ! mbox.atEnd() ) {
KTempFile tmp;
/* comment by Danny:
- * Don't use QTextStream to read from mbox, etter use QDataStream. QTextStream only
+ * Don't use TQTextStream to read from mbox, etter use TQDataStream. TQTextStream only
* support Unicode/Latin1/Locale. So you lost information from emails with
* charset!=Unicode/Latin1/Locale (e.g. KOI8-R) and Content-Transfer-Encoding != base64
- * (e.g. 8Bit). It also not help to convert the QTextStream to Unicode. By this you
+ * (e.g. 8Bit). It also not help to convert the TQTextStream to Unicode. By this you
* get Unicode/UTF-email but KMail can't detect the correct charset.
*/
- QCString seperate;
+ TQCString seperate;
if(!first_msg)
tmp.file()->writeBlock( input, l );
@@ -140,14 +140,14 @@ void FilterMailApp::import(FilterInfo *info)
info->setOverall(100);
}
-void FilterMailApp::traverseDirectory(FilterInfo *info, const QString &dirName)
+void FilterMailApp::traverseDirectory(FilterInfo *info, const TQString &dirName)
{
- QDir dir(dirName);
- dir.setFilter(QDir::Dirs | QDir::Files);
+ TQDir dir(dirName);
+ dir.setFilter(TQDir::Dirs | TQDir::Files);
const QFileInfoList *fileinfolist = dir.entryInfoList();
QFileInfoListIterator it(*fileinfolist);
- QFileInfo *fi;
+ TQFileInfo *fi;
if ( info->shouldTerminate() ) return;