diff options
Diffstat (limited to 'kmail/kmsender.cpp')
-rw-r--r-- | kmail/kmsender.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/kmail/kmsender.cpp b/kmail/kmsender.cpp index 500cb7e79..a8953b6e4 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); |