diff options
Diffstat (limited to 'certmanager/certificateinfowidgetimpl.cpp')
-rw-r--r-- | certmanager/certificateinfowidgetimpl.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/certmanager/certificateinfowidgetimpl.cpp b/certmanager/certificateinfowidgetimpl.cpp index 74b476c80..c6add9515 100644 --- a/certmanager/certificateinfowidgetimpl.cpp +++ b/certmanager/certificateinfowidgetimpl.cpp @@ -96,7 +96,7 @@ CertificateInfoWidgetImpl::CertificateInfoWidgetImpl( const GpgME::Key & key, bo connect( importButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotImportCertificate() ) ); - dumpView->setFont( KGlobalSettings::fixedFont() ); + dumpView->setFont( TDEGlobalSettings::fixedFont() ); if ( !key.isNull() ) setKey( key ); @@ -253,36 +253,36 @@ void CertificateInfoWidgetImpl::startCertificateChainListing() { } void CertificateInfoWidgetImpl::startCertificateDump() { - KProcess* proc = new KProcess( TQT_TQOBJECT(this) ); + TDEProcess* proc = new TDEProcess( TQT_TQOBJECT(this) ); (*proc) << "gpgsm"; // must be in the PATH (*proc) << "--dump-keys"; (*proc) << mChain.front().primaryFingerprint(); - TQObject::connect( proc, TQT_SIGNAL( receivedStdout(KProcess *, char *, int) ), - this, TQT_SLOT( slotCollectStdout(KProcess *, char *, int) ) ); - TQObject::connect( proc, TQT_SIGNAL( receivedStderr(KProcess *, char *, int) ), - this, TQT_SLOT( slotCollectStderr(KProcess *, char *, int) ) ); - TQObject::connect( proc, TQT_SIGNAL( processExited(KProcess*) ), - this, TQT_SLOT( slotDumpProcessExited(KProcess*) ) ); + TQObject::connect( proc, TQT_SIGNAL( receivedStdout(TDEProcess *, char *, int) ), + this, TQT_SLOT( slotCollectStdout(TDEProcess *, char *, int) ) ); + TQObject::connect( proc, TQT_SIGNAL( receivedStderr(TDEProcess *, char *, int) ), + this, TQT_SLOT( slotCollectStderr(TDEProcess *, char *, int) ) ); + TQObject::connect( proc, TQT_SIGNAL( processExited(TDEProcess*) ), + this, TQT_SLOT( slotDumpProcessExited(TDEProcess*) ) ); - if ( !proc->start( KProcess::NotifyOnExit, (KProcess::Communication)(KProcess::Stdout | KProcess::Stderr) ) ) { + if ( !proc->start( TDEProcess::NotifyOnExit, (TDEProcess::Communication)(TDEProcess::Stdout | TDEProcess::Stderr) ) ) { TQString wmsg = i18n("Failed to execute gpgsm:\n%1").arg( i18n( "program not found" ) ); dumpView->setText( TQStyleSheet::escape( wmsg ) ); delete proc; } } -void CertificateInfoWidgetImpl::slotCollectStdout(KProcess *, char *buffer, int buflen) +void CertificateInfoWidgetImpl::slotCollectStdout(TDEProcess *, char *buffer, int buflen) { mDumpOutput += TQCString(buffer, buflen+1); // like KProcIO does } -void CertificateInfoWidgetImpl::slotCollectStderr(KProcess *, char *buffer, int buflen) +void CertificateInfoWidgetImpl::slotCollectStderr(TDEProcess *, char *buffer, int buflen) { mDumpError += TQCString(buffer, buflen+1); // like KProcIO does } -void CertificateInfoWidgetImpl::slotDumpProcessExited(KProcess* proc) { +void CertificateInfoWidgetImpl::slotDumpProcessExited(TDEProcess* proc) { int rc = ( proc->normalExit() ) ? proc->exitStatus() : -1 ; if ( rc == 0 ) { |