Use TDEProcIO class

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/568/head
Michele Calgaro 10 months ago
parent 83e4d7076e
commit 6d90c01c48
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -28,7 +28,7 @@
#include <tdelistview.h> #include <tdelistview.h>
#include <tdelocale.h> #include <tdelocale.h>
#include <tdemessagebox.h> #include <tdemessagebox.h>
#include <kprocio.h> #include <tdeprocio.h>
#include <krun.h> #include <krun.h>
#include <tdetempfile.h> #include <tdetempfile.h>
#include <kpushbutton.h> #include <kpushbutton.h>
@ -213,11 +213,11 @@ void KateMwModOnHdDialog::slotDiff()
return; return;
// Start a TDEProcess that creates a diff // Start a TDEProcess that creates a diff
KProcIO *p = new KProcIO(); TDEProcIO *p = new TDEProcIO();
p->setComm( TDEProcess::All ); p->setComm( TDEProcess::All );
*p << "diff" << "-u" << "-" << doc->url().path(); *p << "diff" << "-u" << "-" << doc->url().path();
connect( p, TQ_SIGNAL(processExited(TDEProcess*)), this, TQ_SLOT(slotPDone(TDEProcess*)) ); 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 ); setCursor( WaitCursor );
@ -230,7 +230,7 @@ void KateMwModOnHdDialog::slotDiff()
p->closeWhenDone(); p->closeWhenDone();
} }
void KateMwModOnHdDialog::slotPRead( KProcIO *p) void KateMwModOnHdDialog::slotPRead( TDEProcIO *p)
{ {
// create a file for the diff if we haven't one allready // create a file for the diff if we haven't one allready
if ( ! m_tmpfile ) if ( ! m_tmpfile )

@ -25,7 +25,7 @@
#include <kate/document.h> #include <kate/document.h>
typedef TQPtrVector<Kate::Document> DocVector; typedef TQPtrVector<Kate::Document> DocVector;
class KProcIO; class TDEProcIO;
class TDEProcess; class TDEProcess;
/** /**
* A dialog for handling multiple documents modified on disk * A dialog for handling multiple documents modified on disk
@ -46,7 +46,7 @@ class KateMwModOnHdDialog : public KDialogBase
private slots: private slots:
void slotDiff(); void slotDiff();
void slotSelectionChanged(); void slotSelectionChanged();
void slotPRead(KProcIO*); void slotPRead(TDEProcIO*);
void slotPDone(TDEProcess*); void slotPDone(TDEProcess*);
private: private:

@ -28,7 +28,7 @@
#include <kipc.h> #include <kipc.h>
#include <tdemessagebox.h> #include <tdemessagebox.h>
#include <knuminput.h> #include <knuminput.h>
#include <kprocio.h> #include <tdeprocio.h>
#include <ksimpleconfig.h> #include <ksimpleconfig.h>
#include <kstandarddirs.h> #include <kstandarddirs.h>
#include <stdlib.h> #include <stdlib.h>
@ -736,7 +736,7 @@ void TDEFonts::save()
// otherwise don't explicitly remove it and leave any possible system-wide value // otherwise don't explicitly remove it and leave any possible system-wide value
if(dpi == DPINone) if(dpi == DPINone)
{ {
KProcIO proc; TDEProcIO proc;
proc << "xrdb" << "-quiet" << "-remove" << "-nocpp"; proc << "xrdb" << "-quiet" << "-remove" << "-nocpp";
proc.writeStdin( TQCString( "Xft.dpi" ), true ); proc.writeStdin( TQCString( "Xft.dpi" ), true );
proc.closeWhenDone(); proc.closeWhenDone();

@ -22,7 +22,7 @@
#include <tdelistview.h> #include <tdelistview.h>
#include <tdelocale.h> #include <tdelocale.h>
#include <tdemessagebox.h> #include <tdemessagebox.h>
#include <kprocio.h> #include <tdeprocio.h>
#include <kstandarddirs.h> #include <kstandarddirs.h>
#include <kurlrequester.h> #include <kurlrequester.h>
@ -291,7 +291,7 @@ void KPluginOptions::scan()
save(); save();
} }
m_nspluginscan = new KProcIO; m_nspluginscan = new TDEProcIO;
TQString scanExe = TDEGlobal::dirs()->findExe("nspluginscan"); TQString scanExe = TDEGlobal::dirs()->findExe("nspluginscan");
if (!scanExe) { if (!scanExe) {
kdDebug() << "can't find nspluginviewer" << endl; kdDebug() << "can't find nspluginviewer" << endl;
@ -312,8 +312,8 @@ void KPluginOptions::scan()
// start nspluginscan // start nspluginscan
*m_nspluginscan << scanExe << "--verbose"; *m_nspluginscan << scanExe << "--verbose";
kdDebug() << "Running nspluginscan" << endl; kdDebug() << "Running nspluginscan" << endl;
connect(m_nspluginscan, TQ_SIGNAL(readReady(KProcIO*)), connect(m_nspluginscan, TQ_SIGNAL(readReady(TDEProcIO*)),
this, TQ_SLOT(progress(KProcIO*))); this, TQ_SLOT(progress(TDEProcIO*)));
connect(m_nspluginscan, TQ_SIGNAL(processExited(TDEProcess *)), connect(m_nspluginscan, TQ_SIGNAL(processExited(TDEProcess *)),
this, TQ_SLOT(scanDone())); this, TQ_SLOT(scanDone()));
connect(m_progress, TQ_SIGNAL(cancelled()), this, TQ_SLOT(scanDone())); connect(m_progress, TQ_SIGNAL(cancelled()), this, TQ_SLOT(scanDone()));
@ -321,7 +321,7 @@ void KPluginOptions::scan()
m_nspluginscan->start(); m_nspluginscan->start();
} }
void KPluginOptions::progress(KProcIO *proc) void KPluginOptions::progress(TDEProcIO *proc)
{ {
TQString line; TQString line;
while(proc->readln(line) > 0) while(proc->readln(line) > 0)

@ -28,7 +28,7 @@ class TQProgressDialog;
class TQSlider; class TQSlider;
class KDialogBase; class KDialogBase;
class KPluginOptions; class KPluginOptions;
class KProcIO; class TDEProcIO;
/** policies with plugin-specific constructor /** policies with plugin-specific constructor
*/ */
@ -118,7 +118,7 @@ private:
protected slots: protected slots:
void progress(KProcIO *); void progress(TDEProcIO *);
void updatePLabel(int); void updatePLabel(int);
void change() { change( true ); }; void change() { change( true ); };
void change( bool c ) { emit changed(c); m_changed = c; }; void change( bool c ) { emit changed(c); m_changed = c; };
@ -130,7 +130,7 @@ private:
NSConfigWidget *m_widget; NSConfigWidget *m_widget;
bool m_changed; bool m_changed;
TQProgressDialog *m_progress; TQProgressDialog *m_progress;
KProcIO* m_nspluginscan; TDEProcIO* m_nspluginscan;
TQSlider *priority; TQSlider *priority;
TQLabel *priorityLabel; TQLabel *priorityLabel;
PluginPolicies global_policies; PluginPolicies global_policies;

@ -34,7 +34,7 @@
#include <kdebug.h> #include <kdebug.h>
#include <tdeglobalsettings.h> #include <tdeglobalsettings.h>
#include <kstandarddirs.h> #include <kstandarddirs.h>
#include <kprocio.h> #include <tdeprocio.h>
#include <ksavefile.h> #include <ksavefile.h>
#include <tdetempfile.h> #include <tdetempfile.h>
#include <tdelocale.h> #include <tdelocale.h>

@ -47,7 +47,7 @@
#include <tdelistview.h> #include <tdelistview.h>
#include <tdemessagebox.h> #include <tdemessagebox.h>
#include <kiconloader.h> #include <kiconloader.h>
#include <kprocio.h> #include <tdeprocio.h>
#include <kcharsets.h> #include <kcharsets.h>
#include <kdialog.h> #include <kdialog.h>
#include <kdesktopfile.h> #include <kdesktopfile.h>

@ -39,7 +39,7 @@ class TQPushButton;
class TDEListView; class TDEListView;
class KService; class KService;
class TDEProcess; class TDEProcess;
class KProcIO; class TDEProcIO;
class KCMHelpCenter; class KCMHelpCenter;

@ -28,7 +28,7 @@
#include <kdebug.h> #include <kdebug.h>
#include <tdeglobal.h> #include <tdeglobal.h>
#include <tdelocale.h> #include <tdelocale.h>
#include <kprocio.h> #include <tdeprocio.h>
#include <tqdom.h> #include <tqdom.h>
#include <tqfile.h> #include <tqfile.h>
@ -58,10 +58,10 @@ NavigatorItem *ScrollKeeperTreeBuilder::build( NavigatorItem *parent,
kdDebug(1400) << "ScrollKeeper language: " << lang << endl; kdDebug(1400) << "ScrollKeeper language: " << lang << endl;
KProcIO proc; TDEProcIO proc;
proc << "scrollkeeper-get-content-list"; proc << "scrollkeeper-get-content-list";
proc << lang; 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)) { if (!proc.start(TDEProcess::Block)) {
kdDebug(1400) << "Could not execute scrollkeeper-get-content-list" << endl; kdDebug(1400) << "Could not execute scrollkeeper-get-content-list" << endl;
return 0; return 0;
@ -106,7 +106,7 @@ NavigatorItem *ScrollKeeperTreeBuilder::build( NavigatorItem *parent,
return result; return result;
} }
void ScrollKeeperTreeBuilder::getContentsList( KProcIO *proc ) void ScrollKeeperTreeBuilder::getContentsList( TDEProcIO *proc )
{ {
TQString filename; TQString filename;
proc->readln( filename, true ); proc->readln( filename, true );

@ -25,7 +25,7 @@
#include "navigatoritem.h" #include "navigatoritem.h"
class KProcIO; class TDEProcIO;
class TQDomNode; class TQDomNode;
@ -40,7 +40,7 @@ class ScrollKeeperTreeBuilder : public TQObject
NavigatorItem *build( NavigatorItem *parent, NavigatorItem *after ); NavigatorItem *build( NavigatorItem *parent, NavigatorItem *after );
private slots: private slots:
void getContentsList( KProcIO *proc ); void getContentsList( TDEProcIO *proc );
private: private:
void loadConfig(); void loadConfig();

@ -26,7 +26,7 @@
#include <tdemessagebox.h> #include <tdemessagebox.h>
#include <knotifyclient.h> #include <knotifyclient.h>
#include <tdelocale.h> #include <tdelocale.h>
#include <kprocio.h> #include <tdeprocio.h>
#include <krun.h> #include <krun.h>
#include <kshell.h> #include <kshell.h>
#include <kstandarddirs.h> #include <kstandarddirs.h>
@ -624,7 +624,7 @@ void TESession::cancelZModem()
void TESession::startZModem(const TQString &zmodem, const TQString &dir, const TQStringList &list) void TESession::startZModem(const TQString &zmodem, const TQString &dir, const TQStringList &list)
{ {
zmodemBusy = true; zmodemBusy = true;
zmodemProc = new KProcIO; zmodemProc = new TDEProcIO;
(*zmodemProc) << zmodem << "-v"; (*zmodemProc) << zmodem << "-v";
for(TQStringList::ConstIterator it = list.begin(); for(TQStringList::ConstIterator it = list.begin();
@ -636,9 +636,9 @@ void TESession::startZModem(const TQString &zmodem, const TQString &dir, const T
if (!dir.isEmpty()) if (!dir.isEmpty())
zmodemProc->setWorkingDirectory(dir); 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); disconnect(zmodemProc,TQ_SIGNAL (receivedStdout (TDEProcess *, char *, int)), 0, 0);
connect(zmodemProc,TQ_SIGNAL (receivedStdout (TDEProcess *, char *, int)), connect(zmodemProc,TQ_SIGNAL (receivedStdout (TDEProcess *, char *, int)),
this, TQ_SLOT(zmodemSendBlock(TDEProcess *, char *, int))); this, TQ_SLOT(zmodemSendBlock(TDEProcess *, char *, int)));

@ -31,7 +31,7 @@
#include "sessioniface.h" #include "sessioniface.h"
class KProcIO; class TDEProcIO;
class TDEProcess; class TDEProcess;
class ZModemDialog; class ZModemDialog;
@ -222,7 +222,7 @@ private:
// ZModem // ZModem
bool zmodemBusy; bool zmodemBusy;
KProcIO* zmodemProc; TDEProcIO* zmodemProc;
ZModemDialog* zmodemProgress; ZModemDialog* zmodemProgress;
// Color/Font Changes by ESC Sequences // Color/Font Changes by ESC Sequences

@ -34,7 +34,7 @@
#include <tdeapplication.h> #include <tdeapplication.h>
#include <dcopclient.h> #include <dcopclient.h>
#include <kprocio.h> #include <tdeprocio.h>
#include "plugin_paths.h" #include "plugin_paths.h"

@ -30,7 +30,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#include <tdelocale.h> #include <tdelocale.h>
#include <kpushbutton.h> #include <kpushbutton.h>
#include <kstdguiitem.h> #include <kstdguiitem.h>
#include <kprocio.h> #include <tdeprocio.h>
#include <kdialog.h> #include <kdialog.h>
#include <kstandarddirs.h> #include <kstandarddirs.h>
#include <kuser.h> #include <kuser.h>
@ -327,7 +327,7 @@ TDMShutdown::TDMShutdown( int _uid, TQWidget *_parent )
static int static int
get_date( const char *str ) get_date( const char *str )
{ {
KProcIO prc; TDEProcIO prc;
prc << "/bin/date" << "+%s" << "-d" << str; prc << "/bin/date" << "+%s" << "-d" << str;
prc.start( TDEProcess::Block, false ); prc.start( TDEProcess::Block, false );
TQString dstr; TQString dstr;

@ -32,7 +32,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#include <klineedit.h> #include <klineedit.h>
#include <kpassdlg.h> #include <kpassdlg.h>
#include <kuser.h> #include <kuser.h>
#include <kprocio.h> #include <tdeprocio.h>
#include <tqregexp.h> #include <tqregexp.h>
#include <tqlayout.h> #include <tqlayout.h>
@ -612,8 +612,8 @@ KWinbindGreeter::slotStartDomainList()
mDomainListTimer.stop(); mDomainListTimer.stop();
mDomainListing.clear(); mDomainListing.clear();
m_domainLister = new KProcIO; m_domainLister = new TDEProcIO;
connect(m_domainLister, TQ_SIGNAL(readReady(KProcIO*)), TQ_SLOT(slotReadDomainList())); connect(m_domainLister, TQ_SIGNAL(readReady(TDEProcIO*)), TQ_SLOT(slotReadDomainList()));
connect(m_domainLister, TQ_SIGNAL(processExited(TDEProcess*)), TQ_SLOT(slotEndDomainList())); connect(m_domainLister, TQ_SIGNAL(processExited(TDEProcess*)), TQ_SLOT(slotEndDomainList()));
(*m_domainLister) << "wbinfo" << "--own-domain" << "--trusted-domains"; (*m_domainLister) << "wbinfo" << "--own-domain" << "--trusted-domains";

@ -38,7 +38,7 @@ class KSimpleConfig;
class TQGridLayout; class TQGridLayout;
class TQLabel; class TQLabel;
class KdmThemer; class KdmThemer;
class KProcIO; class TDEProcIO;
class KWinbindGreeter : public TQObject, public KGreeterPlugin { class KWinbindGreeter : public TQObject, public KGreeterPlugin {
TQ_OBJECT TQ_OBJECT
@ -92,7 +92,7 @@ class KWinbindGreeter : public TQObject, public KGreeterPlugin {
KSimpleConfig *stsFile; KSimpleConfig *stsFile;
TQString fixedDomain, fixedUser, curUser; TQString fixedDomain, fixedUser, curUser;
TQStringList allUsers, mDomainListing; TQStringList allUsers, mDomainListing;
KProcIO* m_domainLister; TDEProcIO* m_domainLister;
TQTimer mDomainListTimer; TQTimer mDomainListTimer;
Function func; Function func;

Loading…
Cancel
Save