summaryrefslogtreecommitdiffstats
path: root/kmail/kmsender.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-24 13:49:30 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-24 13:49:30 -0600
commita9bde819f2b421dcc44741156e75eca4bb5fb4f4 (patch)
treed087071b1e8fcf79698938efec19f8e48bab0799 /kmail/kmsender.cpp
parent5c4a80ead2b1fe57dc6a8c29d0368792344cd61e (diff)
downloadtdepim-a9bde819f2b421dcc44741156e75eca4bb5fb4f4.tar.gz
tdepim-a9bde819f2b421dcc44741156e75eca4bb5fb4f4.zip
Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4
Diffstat (limited to 'kmail/kmsender.cpp')
-rw-r--r--kmail/kmsender.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/kmail/kmsender.cpp b/kmail/kmsender.cpp
index 500cb7e7..a8953b6e 100644
--- a/kmail/kmsender.cpp
+++ b/kmail/kmsender.cpp
@@ -942,14 +942,14 @@ bool KMSendSendmail::doStart() {
if (!mMailerProc)
{
- mMailerProc = new KProcess;
+ mMailerProc = new TDEProcess;
assert(mMailerProc != 0);
- connect(mMailerProc,TQT_SIGNAL(processExited(KProcess*)),
- this, TQT_SLOT(sendmailExited(KProcess*)));
- connect(mMailerProc,TQT_SIGNAL(wroteStdin(KProcess*)),
- this, TQT_SLOT(wroteStdin(KProcess*)));
- connect(mMailerProc,TQT_SIGNAL(receivedStderr(KProcess*,char*,int)),
- this, TQT_SLOT(receivedStderr(KProcess*, char*, int)));
+ connect(mMailerProc,TQT_SIGNAL(processExited(TDEProcess*)),
+ this, TQT_SLOT(sendmailExited(TDEProcess*)));
+ connect(mMailerProc,TQT_SIGNAL(wroteStdin(TDEProcess*)),
+ this, TQT_SLOT(wroteStdin(TDEProcess*)));
+ connect(mMailerProc,TQT_SIGNAL(receivedStderr(TDEProcess*,char*,int)),
+ this, TQT_SLOT(receivedStderr(TDEProcess*, char*, int)));
}
return true;
}
@@ -976,7 +976,7 @@ bool KMSendSendmail::doSend( const TQString & sender, const TQStringList & to, c
mMsgStr = message;
- if ( !mMailerProc->start( KProcess::NotifyOnExit, KProcess::All ) ) {
+ if ( !mMailerProc->start( TDEProcess::NotifyOnExit, TDEProcess::All ) ) {
KMessageBox::information( 0, i18n("Failed to execute mailer program %1")
.arg( mSender->transportInfo()->host ) );
return false;
@@ -989,7 +989,7 @@ bool KMSendSendmail::doSend( const TQString & sender, const TQStringList & to, c
}
-void KMSendSendmail::wroteStdin(KProcess *proc)
+void KMSendSendmail::wroteStdin(TDEProcess *proc)
{
char* str;
int len;
@@ -1009,13 +1009,13 @@ void KMSendSendmail::wroteStdin(KProcess *proc)
mMsgRest -= len;
mMsgPos += len;
mMailerProc->writeStdin(str,len);
- // if code is added after writeStdin() KProcess probably initiates
+ // if code is added after writeStdin() TDEProcess probably initiates
// a race condition.
}
}
-void KMSendSendmail::receivedStderr(KProcess *proc, char *buffer, int buflen)
+void KMSendSendmail::receivedStderr(TDEProcess *proc, char *buffer, int buflen)
{
assert(proc!=0);
Q_UNUSED( proc );
@@ -1023,7 +1023,7 @@ void KMSendSendmail::receivedStderr(KProcess *proc, char *buffer, int buflen)
}
-void KMSendSendmail::sendmailExited(KProcess *proc)
+void KMSendSendmail::sendmailExited(TDEProcess *proc)
{
assert(proc!=0);
mSendOk = (proc->normalExit() && proc->exitStatus()==0);