From f4fae92b6768541e2952173c3d4b09040f95bf7e Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 16 Feb 2011 20:17:18 +0000 Subject: Moved kpilot from kdepim to applications, as the core Trinity libraries should not contain hardware-dependent software git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1221127 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kmailcvt/filter_pmail.cxx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'kmailcvt/filter_pmail.cxx') diff --git a/kmailcvt/filter_pmail.cxx b/kmailcvt/filter_pmail.cxx index 23617f912..126a6365a 100644 --- a/kmailcvt/filter_pmail.cxx +++ b/kmailcvt/filter_pmail.cxx @@ -81,13 +81,13 @@ void FilterPMail::import(FilterInfo *info) info->setOverall(100); } -/** this looks for all files with the filemask 'mask' and calls the 'workFunc' on each of them */ -void FilterPMail::processFiles(const TQString& mask, void(FilterPMail::* workFunc)(const TQString&) ) +/** this looks for all files with the filetqmask 'tqmask' and calls the 'workFunc' on each of them */ +void FilterPMail::processFiles(const TQString& tqmask, void(FilterPMail::* workFunc)(const TQString&) ) { if (inf->shouldTerminate()) return; - TQStringList files = dir.entryList(mask, TQDir::Files, TQDir::Name); - //kdDebug() << "Mask is " << mask << " count is " << files.count() << endl; + TQStringList files = dir.entryList(tqmask, TQDir::Files, TQDir::Name); + //kdDebug() << "Mask is " << tqmask << " count is " << files.count() << endl; for ( TQStringList::Iterator mailFile = files.begin(); mailFile != files.end(); ++mailFile ) { // Notify current file TQFileInfo mailfileinfo(*mailFile); @@ -186,7 +186,7 @@ void FilterPMail::importMailFolder(const TQString& file) f.at(f.at() - l + 1); } - // no problem to loose the last line in file. This only contains a seperate char + // no problem to loose the last line in file. This only tqcontains a seperate char while ( ! f.atEnd() && (l = f.readLine(input.data(),MAX_LINE))) { if (inf->shouldTerminate()){ tempfile.close(); @@ -228,8 +228,8 @@ void FilterPMail::importUnixMailFolder(const TQString& file) int n = 0, l = 0; /** Get the folder name */ - s.replace( TQRegExp("mbx$"), "pmg"); - s.replace( TQRegExp("MBX$"), "PMG"); + s.tqreplace( TQRegExp("mbx$"), "pmg"); + s.tqreplace( TQRegExp("MBX$"), "PMG"); f.setName(s); if (! f.open( IO_ReadOnly ) ) { inf->alert( i18n("Unable to open %1, skipping").arg( s ) ); -- cgit v1.2.1