From 6d90c01c48d887053051fca3e1c9ca298a8fd1b3 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 16 Dec 2024 11:45:17 +0900 Subject: Use TDEProcIO class Signed-off-by: Michele Calgaro --- kate/app/katemwmodonhddialog.cpp | 8 ++++---- kate/app/katemwmodonhddialog.h | 4 ++-- kcontrol/fonts/fonts.cpp | 4 ++-- kcontrol/konqhtml/pluginopts.cpp | 10 +++++----- kcontrol/konqhtml/pluginopts.h | 6 +++--- kcontrol/krdb/krdb.cpp | 2 +- khelpcenter/navigator.cpp | 2 +- khelpcenter/navigator.h | 2 +- khelpcenter/scrollkeepertreebuilder.cpp | 8 ++++---- khelpcenter/scrollkeepertreebuilder.h | 4 ++-- konsole/konsole/session.cpp | 8 ++++---- konsole/konsole/session.h | 4 ++-- nsplugins/kcm_nsplugins.cpp | 2 +- tdm/kfrontend/tdmshutdown.cpp | 4 ++-- tdmlib/kgreet_winbind.cpp | 6 +++--- tdmlib/kgreet_winbind.h | 4 ++-- 16 files changed, 39 insertions(+), 39 deletions(-) diff --git a/kate/app/katemwmodonhddialog.cpp b/kate/app/katemwmodonhddialog.cpp index ffdd92fa7..978095010 100644 --- a/kate/app/katemwmodonhddialog.cpp +++ b/kate/app/katemwmodonhddialog.cpp @@ -28,7 +28,7 @@ #include #include #include -#include +#include #include #include #include @@ -213,11 +213,11 @@ void KateMwModOnHdDialog::slotDiff() return; // Start a TDEProcess that creates a diff - KProcIO *p = new KProcIO(); + TDEProcIO *p = new TDEProcIO(); p->setComm( TDEProcess::All ); *p << "diff" << "-u" << "-" << doc->url().path(); connect( p, TQ_SIGNAL(processExited(TDEProcess*)), this, TQ_SLOT(slotPDone(TDEProcess*)) ); - connect( p, TQ_SIGNAL(readReady(KProcIO*)), this, TQ_SLOT(slotPRead(KProcIO*)) ); + connect( p, TQ_SIGNAL(readReady(TDEProcIO*)), this, TQ_SLOT(slotPRead(TDEProcIO*)) ); setCursor( WaitCursor ); @@ -230,7 +230,7 @@ void KateMwModOnHdDialog::slotDiff() p->closeWhenDone(); } -void KateMwModOnHdDialog::slotPRead( KProcIO *p) +void KateMwModOnHdDialog::slotPRead( TDEProcIO *p) { // create a file for the diff if we haven't one allready if ( ! m_tmpfile ) diff --git a/kate/app/katemwmodonhddialog.h b/kate/app/katemwmodonhddialog.h index 2ca012f84..e9b867a71 100644 --- a/kate/app/katemwmodonhddialog.h +++ b/kate/app/katemwmodonhddialog.h @@ -25,7 +25,7 @@ #include typedef TQPtrVector DocVector; -class KProcIO; +class TDEProcIO; class TDEProcess; /** * A dialog for handling multiple documents modified on disk @@ -46,7 +46,7 @@ class KateMwModOnHdDialog : public KDialogBase private slots: void slotDiff(); void slotSelectionChanged(); - void slotPRead(KProcIO*); + void slotPRead(TDEProcIO*); void slotPDone(TDEProcess*); private: diff --git a/kcontrol/fonts/fonts.cpp b/kcontrol/fonts/fonts.cpp index 5913662ce..d6ec1ae62 100644 --- a/kcontrol/fonts/fonts.cpp +++ b/kcontrol/fonts/fonts.cpp @@ -28,7 +28,7 @@ #include #include #include -#include +#include #include #include #include @@ -736,7 +736,7 @@ void TDEFonts::save() // otherwise don't explicitly remove it and leave any possible system-wide value if(dpi == DPINone) { - KProcIO proc; + TDEProcIO proc; proc << "xrdb" << "-quiet" << "-remove" << "-nocpp"; proc.writeStdin( TQCString( "Xft.dpi" ), true ); proc.closeWhenDone(); diff --git a/kcontrol/konqhtml/pluginopts.cpp b/kcontrol/konqhtml/pluginopts.cpp index b36f7f1a7..9bb43849f 100644 --- a/kcontrol/konqhtml/pluginopts.cpp +++ b/kcontrol/konqhtml/pluginopts.cpp @@ -22,7 +22,7 @@ #include #include #include -#include +#include #include #include @@ -291,7 +291,7 @@ void KPluginOptions::scan() save(); } - m_nspluginscan = new KProcIO; + m_nspluginscan = new TDEProcIO; TQString scanExe = TDEGlobal::dirs()->findExe("nspluginscan"); if (!scanExe) { kdDebug() << "can't find nspluginviewer" << endl; @@ -312,8 +312,8 @@ void KPluginOptions::scan() // start nspluginscan *m_nspluginscan << scanExe << "--verbose"; kdDebug() << "Running nspluginscan" << endl; - connect(m_nspluginscan, TQ_SIGNAL(readReady(KProcIO*)), - this, TQ_SLOT(progress(KProcIO*))); + connect(m_nspluginscan, TQ_SIGNAL(readReady(TDEProcIO*)), + this, TQ_SLOT(progress(TDEProcIO*))); connect(m_nspluginscan, TQ_SIGNAL(processExited(TDEProcess *)), this, TQ_SLOT(scanDone())); connect(m_progress, TQ_SIGNAL(cancelled()), this, TQ_SLOT(scanDone())); @@ -321,7 +321,7 @@ void KPluginOptions::scan() m_nspluginscan->start(); } -void KPluginOptions::progress(KProcIO *proc) +void KPluginOptions::progress(TDEProcIO *proc) { TQString line; while(proc->readln(line) > 0) diff --git a/kcontrol/konqhtml/pluginopts.h b/kcontrol/konqhtml/pluginopts.h index aa060f311..3d87597af 100644 --- a/kcontrol/konqhtml/pluginopts.h +++ b/kcontrol/konqhtml/pluginopts.h @@ -28,7 +28,7 @@ class TQProgressDialog; class TQSlider; class KDialogBase; class KPluginOptions; -class KProcIO; +class TDEProcIO; /** policies with plugin-specific constructor */ @@ -118,7 +118,7 @@ private: protected slots: - void progress(KProcIO *); + void progress(TDEProcIO *); void updatePLabel(int); void change() { change( true ); }; void change( bool c ) { emit changed(c); m_changed = c; }; @@ -130,7 +130,7 @@ private: NSConfigWidget *m_widget; bool m_changed; TQProgressDialog *m_progress; - KProcIO* m_nspluginscan; + TDEProcIO* m_nspluginscan; TQSlider *priority; TQLabel *priorityLabel; PluginPolicies global_policies; diff --git a/kcontrol/krdb/krdb.cpp b/kcontrol/krdb/krdb.cpp index 25db21f3c..09dc7955f 100644 --- a/kcontrol/krdb/krdb.cpp +++ b/kcontrol/krdb/krdb.cpp @@ -34,7 +34,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/khelpcenter/navigator.cpp b/khelpcenter/navigator.cpp index 8b10688cd..5860e9af7 100644 --- a/khelpcenter/navigator.cpp +++ b/khelpcenter/navigator.cpp @@ -47,7 +47,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/khelpcenter/navigator.h b/khelpcenter/navigator.h index 798f71101..2cc03e99d 100644 --- a/khelpcenter/navigator.h +++ b/khelpcenter/navigator.h @@ -39,7 +39,7 @@ class TQPushButton; class TDEListView; class KService; class TDEProcess; -class KProcIO; +class TDEProcIO; class KCMHelpCenter; diff --git a/khelpcenter/scrollkeepertreebuilder.cpp b/khelpcenter/scrollkeepertreebuilder.cpp index 7d54f0f63..051a99231 100644 --- a/khelpcenter/scrollkeepertreebuilder.cpp +++ b/khelpcenter/scrollkeepertreebuilder.cpp @@ -28,7 +28,7 @@ #include #include #include -#include +#include #include #include @@ -58,10 +58,10 @@ NavigatorItem *ScrollKeeperTreeBuilder::build( NavigatorItem *parent, kdDebug(1400) << "ScrollKeeper language: " << lang << endl; - KProcIO proc; + TDEProcIO proc; proc << "scrollkeeper-get-content-list"; proc << lang; - connect(&proc,TQ_SIGNAL(readReady(KProcIO *)),TQ_SLOT(getContentsList(KProcIO *))); + connect(&proc,TQ_SIGNAL(readReady(TDEProcIO *)),TQ_SLOT(getContentsList(TDEProcIO *))); if (!proc.start(TDEProcess::Block)) { kdDebug(1400) << "Could not execute scrollkeeper-get-content-list" << endl; return 0; @@ -106,7 +106,7 @@ NavigatorItem *ScrollKeeperTreeBuilder::build( NavigatorItem *parent, return result; } -void ScrollKeeperTreeBuilder::getContentsList( KProcIO *proc ) +void ScrollKeeperTreeBuilder::getContentsList( TDEProcIO *proc ) { TQString filename; proc->readln( filename, true ); diff --git a/khelpcenter/scrollkeepertreebuilder.h b/khelpcenter/scrollkeepertreebuilder.h index cca8a2c22..73ed064b3 100644 --- a/khelpcenter/scrollkeepertreebuilder.h +++ b/khelpcenter/scrollkeepertreebuilder.h @@ -25,7 +25,7 @@ #include "navigatoritem.h" -class KProcIO; +class TDEProcIO; class TQDomNode; @@ -40,7 +40,7 @@ class ScrollKeeperTreeBuilder : public TQObject NavigatorItem *build( NavigatorItem *parent, NavigatorItem *after ); private slots: - void getContentsList( KProcIO *proc ); + void getContentsList( TDEProcIO *proc ); private: void loadConfig(); diff --git a/konsole/konsole/session.cpp b/konsole/konsole/session.cpp index d613a23e4..b66f4eddf 100644 --- a/konsole/konsole/session.cpp +++ b/konsole/konsole/session.cpp @@ -26,7 +26,7 @@ #include #include #include -#include +#include #include #include #include @@ -624,7 +624,7 @@ void TESession::cancelZModem() void TESession::startZModem(const TQString &zmodem, const TQString &dir, const TQStringList &list) { zmodemBusy = true; - zmodemProc = new KProcIO; + zmodemProc = new TDEProcIO; (*zmodemProc) << zmodem << "-v"; for(TQStringList::ConstIterator it = list.begin(); @@ -636,9 +636,9 @@ void TESession::startZModem(const TQString &zmodem, const TQString &dir, const T if (!dir.isEmpty()) zmodemProc->setWorkingDirectory(dir); - zmodemProc->start(KProcIO::NotifyOnExit, false); + zmodemProc->start(TDEProcIO::NotifyOnExit, false); - // Override the read-processing of KProcIO + // Override the read-processing of TDEProcIO disconnect(zmodemProc,TQ_SIGNAL (receivedStdout (TDEProcess *, char *, int)), 0, 0); connect(zmodemProc,TQ_SIGNAL (receivedStdout (TDEProcess *, char *, int)), this, TQ_SLOT(zmodemSendBlock(TDEProcess *, char *, int))); diff --git a/konsole/konsole/session.h b/konsole/konsole/session.h index 3b5f211fa..0b4dbed50 100644 --- a/konsole/konsole/session.h +++ b/konsole/konsole/session.h @@ -31,7 +31,7 @@ #include "sessioniface.h" -class KProcIO; +class TDEProcIO; class TDEProcess; class ZModemDialog; @@ -222,7 +222,7 @@ private: // ZModem bool zmodemBusy; - KProcIO* zmodemProc; + TDEProcIO* zmodemProc; ZModemDialog* zmodemProgress; // Color/Font Changes by ESC Sequences diff --git a/nsplugins/kcm_nsplugins.cpp b/nsplugins/kcm_nsplugins.cpp index c60a7acbe..076d3523e 100644 --- a/nsplugins/kcm_nsplugins.cpp +++ b/nsplugins/kcm_nsplugins.cpp @@ -34,7 +34,7 @@ #include #include -#include +#include #include "plugin_paths.h" diff --git a/tdm/kfrontend/tdmshutdown.cpp b/tdm/kfrontend/tdmshutdown.cpp index da0863be5..340fabbba 100644 --- a/tdm/kfrontend/tdmshutdown.cpp +++ b/tdm/kfrontend/tdmshutdown.cpp @@ -30,7 +30,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. #include #include #include -#include +#include #include #include #include @@ -327,7 +327,7 @@ TDMShutdown::TDMShutdown( int _uid, TQWidget *_parent ) static int get_date( const char *str ) { - KProcIO prc; + TDEProcIO prc; prc << "/bin/date" << "+%s" << "-d" << str; prc.start( TDEProcess::Block, false ); TQString dstr; diff --git a/tdmlib/kgreet_winbind.cpp b/tdmlib/kgreet_winbind.cpp index d14dcd112..2c6080f40 100644 --- a/tdmlib/kgreet_winbind.cpp +++ b/tdmlib/kgreet_winbind.cpp @@ -32,7 +32,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. #include #include #include -#include +#include #include #include @@ -612,8 +612,8 @@ KWinbindGreeter::slotStartDomainList() mDomainListTimer.stop(); mDomainListing.clear(); - m_domainLister = new KProcIO; - connect(m_domainLister, TQ_SIGNAL(readReady(KProcIO*)), TQ_SLOT(slotReadDomainList())); + m_domainLister = new TDEProcIO; + connect(m_domainLister, TQ_SIGNAL(readReady(TDEProcIO*)), TQ_SLOT(slotReadDomainList())); connect(m_domainLister, TQ_SIGNAL(processExited(TDEProcess*)), TQ_SLOT(slotEndDomainList())); (*m_domainLister) << "wbinfo" << "--own-domain" << "--trusted-domains"; diff --git a/tdmlib/kgreet_winbind.h b/tdmlib/kgreet_winbind.h index 7bd8e59e6..9d26f4719 100644 --- a/tdmlib/kgreet_winbind.h +++ b/tdmlib/kgreet_winbind.h @@ -38,7 +38,7 @@ class KSimpleConfig; class TQGridLayout; class TQLabel; class KdmThemer; -class KProcIO; +class TDEProcIO; class KWinbindGreeter : public TQObject, public KGreeterPlugin { TQ_OBJECT @@ -92,7 +92,7 @@ class KWinbindGreeter : public TQObject, public KGreeterPlugin { KSimpleConfig *stsFile; TQString fixedDomain, fixedUser, curUser; TQStringList allUsers, mDomainListing; - KProcIO* m_domainLister; + TDEProcIO* m_domainLister; TQTimer mDomainListTimer; Function func; -- cgit v1.2.1