Use TDEProcIO class

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

@ -28,7 +28,7 @@
#include <tdelistview.h>
#include <tdelocale.h>
#include <tdemessagebox.h>
#include <kprocio.h>
#include <tdeprocio.h>
#include <krun.h>
#include <tdetempfile.h>
#include <kpushbutton.h>
@ -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 )

@ -25,7 +25,7 @@
#include <kate/document.h>
typedef TQPtrVector<Kate::Document> 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:

@ -28,7 +28,7 @@
#include <kipc.h>
#include <tdemessagebox.h>
#include <knuminput.h>
#include <kprocio.h>
#include <tdeprocio.h>
#include <ksimpleconfig.h>
#include <kstandarddirs.h>
#include <stdlib.h>
@ -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();

@ -22,7 +22,7 @@
#include <tdelistview.h>
#include <tdelocale.h>
#include <tdemessagebox.h>
#include <kprocio.h>
#include <tdeprocio.h>
#include <kstandarddirs.h>
#include <kurlrequester.h>
@ -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)

@ -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;

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

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

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

@ -28,7 +28,7 @@
#include <kdebug.h>
#include <tdeglobal.h>
#include <tdelocale.h>
#include <kprocio.h>
#include <tdeprocio.h>
#include <tqdom.h>
#include <tqfile.h>
@ -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 );

@ -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();

@ -26,7 +26,7 @@
#include <tdemessagebox.h>
#include <knotifyclient.h>
#include <tdelocale.h>
#include <kprocio.h>
#include <tdeprocio.h>
#include <krun.h>
#include <kshell.h>
#include <kstandarddirs.h>
@ -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)));

@ -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

@ -34,7 +34,7 @@
#include <tdeapplication.h>
#include <dcopclient.h>
#include <kprocio.h>
#include <tdeprocio.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 <kpushbutton.h>
#include <kstdguiitem.h>
#include <kprocio.h>
#include <tdeprocio.h>
#include <kdialog.h>
#include <kstandarddirs.h>
#include <kuser.h>
@ -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;

@ -32,7 +32,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#include <klineedit.h>
#include <kpassdlg.h>
#include <kuser.h>
#include <kprocio.h>
#include <tdeprocio.h>
#include <tqregexp.h>
#include <tqlayout.h>
@ -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";

@ -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;

Loading…
Cancel
Save