summaryrefslogtreecommitdiffstats
path: root/kmail/kmfoldermbox.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:50:21 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:50:21 -0600
commit3ca10fd9a2dc631429d3b5d5c5e42a7d211d5a12 (patch)
tree89de88213bd261e4ccaade899ab2d6ec34b3a5a7 /kmail/kmfoldermbox.cpp
parent1dad5f662a09dfc5cc041caffe0f674044a4dcec (diff)
downloadtdepim-3ca10fd9a2dc631429d3b5d5c5e42a7d211d5a12.tar.gz
tdepim-3ca10fd9a2dc631429d3b5d5c5e42a7d211d5a12.zip
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'kmail/kmfoldermbox.cpp')
-rw-r--r--kmail/kmfoldermbox.cpp54
1 files changed, 27 insertions, 27 deletions
diff --git a/kmail/kmfoldermbox.cpp b/kmail/kmfoldermbox.cpp
index a53a4be1b..deaa69edd 100644
--- a/kmail/kmfoldermbox.cpp
+++ b/kmail/kmfoldermbox.cpp
@@ -109,7 +109,7 @@ int KMFolderMbox::open(const char *owner)
if (!mStream)
{
KNotifyClient::event( 0, "warning",
- i18n("Cannot open file \"%1\":\n%2").tqarg(location()).tqarg(strerror(errno)));
+ i18n("Cannot open file \"%1\":\n%2").arg(location()).arg(strerror(errno)));
kdDebug(5006) << "Cannot open folder `" << location() << "': " << strerror(errno) << endl;
mOpenCount = 0;
return errno;
@@ -119,7 +119,7 @@ int KMFolderMbox::open(const char *owner)
if (!folder()->path().isEmpty())
{
- KMFolderIndex::IndextqStatus index_status = indextqStatus();
+ KMFolderIndex::IndexStatus index_status = indexStatus();
// test if index file exists and is up-to-date
if (KMFolderIndex::IndexOk != index_status)
{
@@ -137,8 +137,8 @@ int KMFolderMbox::open(const char *owner)
"of KMail</a> for "
"information about how to prevent this "
"problem from happening again.</p></qt>")
- .tqarg("help:/kmail/faq.html#faq-index-regeneration")
- .tqarg(name());
+ .arg("help:/kmail/faq.html#faq-index-regeneration")
+ .arg(name());
// When KMail is starting up we have to show a non-blocking message
// box so that the initialization can continue. We don't show a
// queued message box when KMail isn't starting up because queued
@@ -164,7 +164,7 @@ int KMFolderMbox::open(const char *owner)
TQString str;
mIndexStream = 0;
str = i18n("Folder `%1' changed. Recreating index.")
- .tqarg(name());
+ .arg(name());
emit statusMsg(str);
} else {
mIndexStream = fopen(TQFile::encodeName(indexLocation()), "r+"); // index file
@@ -262,7 +262,7 @@ void KMFolderMbox::reallyDoClose(const char* owner)
Q_UNUSED( owner );
if (mAutoCreateIndex)
{
- if (KMFolderIndex::IndexOk != indextqStatus()) {
+ if (KMFolderIndex::IndexOk != indexStatus()) {
kdDebug(5006) << "Critical error: " << location() <<
" has been modified by an external application while KMail was running." << endl;
// exit(1); backed out due to broken nfs
@@ -297,7 +297,7 @@ void KMFolderMbox::sync()
if (mOpenCount > 0)
if (!mStream || fsync(fileno(mStream)) ||
!mIndexStream || fsync(fileno(mIndexStream))) {
- kmkernel->emergencyExit( i18n("Could not sync index file <b>%1</b>: %2").tqarg( indexLocation() ).tqarg(errno ? TQString::fromLocal8Bit(strerror(errno)) : i18n("Internal error. Please copy down the details and report a bug.")));
+ kmkernel->emergencyExit( i18n("Could not sync index file <b>%1</b>: %2").arg( indexLocation() ).arg(errno ? TQString::fromLocal8Bit(strerror(errno)) : i18n("Internal error. Please copy down the details and report a bug.")));
}
}
@@ -521,7 +521,7 @@ int KMFolderMbox::unlock()
//-----------------------------------------------------------------------------
-KMFolderIndex::IndextqStatus KMFolderMbox::indextqStatus()
+KMFolderIndex::IndexStatus KMFolderMbox::indexStatus()
{
if ( !mCompactable )
return KMFolderIndex::IndexCorrupt;
@@ -555,8 +555,8 @@ int KMFolderMbox::createIndexFromContents()
KMMsgInfo* mi;
TQString msgStr;
TQRegExp regexp(MSG_SEPERATOR_REGEX);
- int i, num, numtqStatus;
- short needtqStatus;
+ int i, num, numStatus;
+ short needStatus;
assert(mStream != 0);
rewind(mStream);
@@ -564,7 +564,7 @@ int KMFolderMbox::createIndexFromContents()
mMsgList.clear();
num = -1;
- numtqStatus= 11;
+ numStatus= 11;
off_t offs = 0;
size_t size = 0;
dateStr = "";
@@ -578,7 +578,7 @@ int KMFolderMbox::createIndexFromContents()
replyToAuxIdStr = "";
referencesStr = "";
msgIdStr = "";
- needtqStatus = 3;
+ needStatus = 3;
size_t sizeServer = 0;
ulong uid = 0;
@@ -597,11 +597,11 @@ int KMFolderMbox::createIndexFromContents()
if (num >= 0)
{
- if (numtqStatus <= 0)
+ if (numStatus <= 0)
{
msgStr = i18n("Creating index file: one message done", "Creating index file: %n messages done", num);
emit statusMsg(msgStr);
- numtqStatus = 10;
+ numStatus = 10;
}
if (size > 0)
@@ -682,14 +682,14 @@ int KMFolderMbox::createIndexFromContents()
replyToIdStr, replyToAuxIdStr, msgIdStr,
KMMsgEncryptionStateUnknown, KMMsgSignatureStateUnknown,
KMMsgMDNStateUnknown, charset, offs, size, sizeServer, uid );
- mi->setqStatus(status, xstatus);
+ mi->seStatus(status, xstatus);
mi->setDate( dateStr.stripWhiteSpace().data() );
mi->setDirty(false);
mMsgList.append(mi, mExportsSernums );
*status = '\0';
*xstatus = '\0';
- needtqStatus = 3;
+ needStatus = 3;
xmarkStr = "";
replyToIdStr = "";
replyToAuxIdStr = "";
@@ -701,12 +701,12 @@ int KMFolderMbox::createIndexFromContents()
sizeServer = 0;
uid = 0;
}
- else num--,numtqStatus++;
+ else num--,numStatus++;
}
offs = ftell(mStream);
num++;
- numtqStatus--;
+ numStatus--;
inHeader = true;
continue;
}
@@ -727,19 +727,19 @@ int KMFolderMbox::createIndexFromContents()
/* -sanders Make all messages read when auto-recreating index */
/* Reverted, as it breaks reading the sent mail status, for example.
-till */
- if ((needtqStatus & 1) && strncasecmp(line, "Status:", 7) == 0)
+ if ((needStatus & 1) && strncasecmp(line, "Status:", 7) == 0)
{
for(i=0; i<4 && line[i+8] > ' '; i++)
status[i] = line[i+8];
status[i] = '\0';
- needtqStatus &= ~1;
+ needStatus &= ~1;
}
- else if ((needtqStatus & 2) && strncasecmp(line, "X-Status:", 9)==0)
+ else if ((needStatus & 2) && strncasecmp(line, "X-Status:", 9)==0)
{
for(i=0; i<4 && line[i+10] > ' '; i++)
xstatus[i] = line[i+10];
xstatus[i] = '\0';
- needtqStatus &= ~2;
+ needStatus &= ~2;
}
else if (strncasecmp(line,"X-KMail-Mark:",13)==0)
xmarkStr = TQCString(line+13);
@@ -1047,7 +1047,7 @@ if( fileD1.open( IO_WriteOnly ) ) {
if (busy) kmkernel->kbp()->idle();
KMessageBox::sorry(0,
i18n("Unable to add message to folder.\n"
- "(No space left on tqdevice or insufficient quota?)\n"
+ "(No space left on device or insufficient quota?)\n"
"Free space and sufficient quota are required to continue safely."));
if (busy) kmkernel->kbp()->busy();
kmkernel->kbp()->idle();
@@ -1118,7 +1118,7 @@ if( fileD1.open( IO_WriteOnly ) ) {
error |= appendToFolderIdsFile( idx );
if (error) {
- kdWarning(5006) << "Error: Could not add message to folder (No space left on tqdevice?)" << endl;
+ kdWarning(5006) << "Error: Could not add message to folder (No space left on device?)" << endl;
if (ftell(mIndexStream) > revert) {
kdWarning(5006) << "Undoing changes" << endl;
truncate( TQFile::encodeName(indexLocation()), revert );
@@ -1126,14 +1126,14 @@ if( fileD1.open( IO_WriteOnly ) ) {
if ( errno )
kmkernel->emergencyExit( i18n("Could not add message to folder:") + TQString::fromLocal8Bit(strerror(errno)));
else
- kmkernel->emergencyExit( i18n("Could not add message to folder (No space left on tqdevice?)") );
+ kmkernel->emergencyExit( i18n("Could not add message to folder (No space left on device?)") );
/* This code may not be 100% reliable
bool busy = kmkernel->kbp()->isBusy();
if (busy) kmkernel->kbp()->idle();
KMessageBox::sorry(0,
i18n("Unable to add message to folder.\n"
- "(No space left on tqdevice or insufficient quota?)\n"
+ "(No space left on device or insufficient quota?)\n"
"Free space and sufficient quota are required to continue safely."));
if (busy) kmkernel->kbp()->busy();
*/
@@ -1237,7 +1237,7 @@ int KMFolderMbox::compact( bool silent )
// Note that job autodeletes itself.
// If this is the current folder, the changed signal will ultimately call
- // KMHeaders::setFolderInfotqStatus which will override the message, so save/restore it
+ // KMHeaders::setFolderInfoStatus which will override the message, so save/restore it
TQString statusMsg = BroadcastStatus::instance()->statusMsg();
emit changed();
BroadcastStatus::instance()->seStatusMsg( statusMsg );