diff options
author | Michele Calgaro <[email protected]> | 2024-12-15 22:06:44 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-12-15 22:06:44 +0900 |
commit | af644c020106e7096d4fe9c648f25eede98c972f (patch) | |
tree | e20b7c4bc22bca994e80e6a798313b5800efce21 | |
parent | a876c10e905fa357d43de03cf0fcb922cac9e4d5 (diff) | |
download | tdelibs-rename/kprocio.tar.gz tdelibs-rename/kprocio.zip |
Rename class KProcIO to TDEProcIOrename/kprocio
Signed-off-by: Michele Calgaro <[email protected]>
25 files changed, 111 insertions, 112 deletions
@@ -148,7 +148,7 @@ that we would like to make for the next binary incompatible release. - do something about the NoRead comm mode - add setComm(); remove comm arg from start(). as a side effect, this will allow for using writeStdin() in Block mode. - - merge KProcIO into TDEProcess; add setBuffered() for separate channels. + - merge TDEProcIO into TDEProcess; add setBuffered() for separate channels. - use QByteArray for writeStdin(). better than the buf+len arg, as it is ref-counted. - To discuss: Migrate the about dialog to use qhtml or tdehtml rather then the current diff --git a/kate/part/katedialogs.cpp b/kate/part/katedialogs.cpp index 2627e0ade..f3de71d8b 100644 --- a/kate/part/katedialogs.cpp +++ b/kate/part/katedialogs.cpp @@ -67,7 +67,7 @@ #include <tdeparts/componentfactory.h> #include <tdepopupmenu.h> #include <tdeprocess.h> -#include <kprocio.h> +#include <tdeprocio.h> #include <kregexpeditorinterface.h> #include <krun.h> #include <kseparator.h> @@ -1636,11 +1636,11 @@ KateModOnHdPrompt::~KateModOnHdPrompt() void KateModOnHdPrompt::slotDiff() { // Start a TDEProcess that creates a diff - KProcIO *p = new KProcIO(); + TDEProcIO *p = new TDEProcIO(); p->setComm( TDEProcess::All ); *p << "diff" << "-u" << "-" << m_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 ); @@ -1653,7 +1653,7 @@ void KateModOnHdPrompt::slotDiff() p->closeWhenDone(); } -void KateModOnHdPrompt::slotPRead( KProcIO *p) +void KateModOnHdPrompt::slotPRead( TDEProcIO *p) { // create a file for the diff if we haven't one allready if ( ! m_tmpfile ) diff --git a/kate/part/katedialogs.h b/kate/part/katedialogs.h index b4b4eb137..32d7cfccd 100644 --- a/kate/part/katedialogs.h +++ b/kate/part/katedialogs.h @@ -359,7 +359,7 @@ class KateHlDownloadDialog: public KDialogBase void slotUser1(); }; -class KProcIO; +class TDEProcIO; class TDEProcess; /** * This dialog will prompt the user for what do with a file that is @@ -393,7 +393,7 @@ class KateModOnHdPrompt : public KDialogBase void slotUser1(); private slots: - void slotPRead(KProcIO*); ///< Read from the diff process + void slotPRead(TDEProcIO*); ///< Read from the diff process void slotPDone(TDEProcess*); ///< Runs the diff file when done private: diff --git a/tdecore/CMakeLists.txt b/tdecore/CMakeLists.txt index f56a92aca..021d650ae 100644 --- a/tdecore/CMakeLists.txt +++ b/tdecore/CMakeLists.txt @@ -64,7 +64,7 @@ install( FILES krandomsequence.h knotifyclient.h kiconeffect.h kaudioplayer.h kdcoppropertyproxy.h netwm.h tdeaccelmanager.h netwm_def.h kpixmapprovider.h kunload.h kstaticdeleter.h kextsock.h - kextendedsocket.h ksockaddr.h kprocio.h kasyncio.h kbufferedio.h + kextendedsocket.h ksockaddr.h tdeprocio.h kasyncio.h kbufferedio.h kurldrag.h kmimesourcefactory.h kmdcodec.h ksocks.h tdesycoca.h tdesycocaentry.h tdesycocatype.h kxmessages.h tdestartupinfo.h klargefile.h tdemultipledrag.h kgenericfactory.h kgenericfactory.tcc @@ -121,7 +121,7 @@ set( ${target}_SRCS krandomsequence.cpp kstringhandler.cpp kcompletion.cpp tdecmdlineargs.cpp tdeaboutdata.cpp kcompletionbase.cpp knotifyclient.cpp kaudioplayer.cpp kdcoppropertyproxy.cpp ksockaddr.cpp - kextsock.cpp netsupp.cpp kprocio.cpp kbufferedio.cpp + kextsock.cpp netsupp.cpp tdeprocio.cpp kbufferedio.cpp kpixmapprovider.cpp kurldrag.cpp kmdcodec.cpp ksocks.cpp fakes.c vsnprintf.c tdesycoca.cpp tdesycocadict.cpp tdesycoca.skel tdesycocafactory.cpp kxmessages.cpp tdestartupinfo.cpp diff --git a/tdecore/MAINTAINERS b/tdecore/MAINTAINERS index 1bc8f7a8c..3b4bae7cf 100644 --- a/tdecore/MAINTAINERS +++ b/tdecore/MAINTAINERS @@ -50,7 +50,7 @@ kpalette.cpp Waldo Bastian <[email protected]> kpixmapprovider.cpp Carsten Pfeiffer <[email protected]> tdeprocctrl.cpp Waldo Bastian <[email protected]> tdeprocess.cpp Waldo Bastian <[email protected]> -kprocio.cpp Waldo Bastian <[email protected]> +tdeprocio.cpp Waldo Bastian <[email protected]> krandomsequence.cpp Waldo Bastian <[email protected]> kregexp.cpp krfcdate.cpp Waldo Bastian <[email protected]> diff --git a/tdecore/Makefile.am b/tdecore/Makefile.am index d30506507..35aa6f6f3 100644 --- a/tdecore/Makefile.am +++ b/tdecore/Makefile.am @@ -51,7 +51,7 @@ include_HEADERS = tdeconfig.h tdeconfigskeleton.h \ krandomsequence.h knotifyclient.h kiconeffect.h \ kaudioplayer.h kdcoppropertyproxy.h netwm.h tdeaccelmanager.h \ netwm_def.h kpixmapprovider.h kunload.h kstaticdeleter.h \ - kextsock.h kextendedsocket.h ksockaddr.h kprocio.h kasyncio.h \ + kextsock.h kextendedsocket.h ksockaddr.h tdeprocio.h kasyncio.h \ kbufferedio.h kurldrag.h kmimesourcefactory.h kmdcodec.h ksocks.h \ tdesycoca.h tdesycocaentry.h tdesycocatype.h kxmessages.h tdestartupinfo.h \ klargefile.h tdemultipledrag.h kgenericfactory.h kgenericfactory.tcc \ @@ -105,7 +105,7 @@ libtdecore_la_SOURCES = libintl.cpp tdeapplication.cpp \ ksavefile.cpp krandomsequence.cpp kstringhandler.cpp kcompletion.cpp \ tdecmdlineargs.cpp tdeaboutdata.cpp kcompletionbase.cpp knotifyclient.cpp \ kaudioplayer.cpp kdcoppropertyproxy.cpp \ - ksockaddr.cpp kextsock.cpp netsupp.cpp kprocio.cpp kbufferedio.cpp \ + ksockaddr.cpp kextsock.cpp netsupp.cpp tdeprocio.cpp kbufferedio.cpp \ kpixmapprovider.cpp kurldrag.cpp \ kmdcodec.cpp ksocks.cpp fakes.c vsnprintf.c \ tdesycoca.cpp tdesycocadict.cpp tdesycocafactory.cpp tdesycoca.skel \ diff --git a/tdecore/README.exec b/tdecore/README.exec index d47c808e9..6ddf1aef4 100644 --- a/tdecore/README.exec +++ b/tdecore/README.exec @@ -16,9 +16,9 @@ child of your process, e.g. because you want to catch stdout/stderr or need to send it data via stdin. You should never use this to start other KDE applications unless your application is called kgdb :-) If you need to send/receive text like data to/from the process, you are probably better -off with KProcIO +off with TDEProcIO -3. KProcIO +3. TDEProcIO Like TDEProcess. Unlike TDEProcess, this class actually makes it easy to send data to and receive data from the process. diff --git a/tdecore/kdebug.areas b/tdecore/kdebug.areas index 24c87f524..e71455362 100644 --- a/tdecore/kdebug.areas +++ b/tdecore/kdebug.areas @@ -18,7 +18,7 @@ 171 tdecore (KSocks) 172 tdecore (TDEStartupInfo) 173 tdecore (TDELocale) -174 tdecore (KProcIO) +174 tdecore (TDEProcIO) 175 tdecore (TDEProcess) 176 tdecore (KWin) 177 tdecore (TDEConfigSkeleton) diff --git a/tdecore/tdeprocess.h b/tdecore/tdeprocess.h index 658571ce7..a6329f147 100644 --- a/tdecore/tdeprocess.h +++ b/tdecore/tdeprocess.h @@ -47,7 +47,7 @@ class KPty; * This class allows a KDE application to start child processes without having * to worry about UN*X signal handling issues and zombie process reaping. * - * @see KProcIO + * @see TDEProcIO * * Basically, this class distinguishes three different ways of running * child processes: diff --git a/tdecore/kprocio.cpp b/tdecore/tdeprocio.cpp index aac14a09e..e614148c5 100644 --- a/tdecore/kprocio.cpp +++ b/tdecore/tdeprocio.cpp @@ -24,19 +24,19 @@ #include <stdio.h> -#include "kprocio.h" +#include "tdeprocio.h" #include <kdebug.h> #include <tqtextcodec.h> -class KProcIOPrivate { +class TDEProcIOPrivate { public: - KProcIOPrivate() : comm(TDEProcess::All) {} + TDEProcIOPrivate() : comm(TDEProcess::All) {} TDEProcess::Communication comm; }; -KProcIO::KProcIO ( TQTextCodec *_codec) - : codec(_codec), d(new KProcIOPrivate) +TDEProcIO::TDEProcIO ( TQTextCodec *_codec) + : codec(_codec), d(new TDEProcIOPrivate) { rbi=0; readsignalon=writeready=true; @@ -52,13 +52,13 @@ KProcIO::KProcIO ( TQTextCodec *_codec) } } -KProcIO::~KProcIO() +TDEProcIO::~TDEProcIO() { delete d; } void -KProcIO::resetAll () +TDEProcIO::resetAll () { if (isRunning()) kill(); @@ -80,12 +80,12 @@ KProcIO::resetAll () } -void KProcIO::setComm (Communication comm) +void TDEProcIO::setComm (Communication comm) { d->comm = comm; } -bool KProcIO::start (RunMode runmode, bool includeStderr) +bool TDEProcIO::start (RunMode runmode, bool includeStderr) { connect (this, TQ_SIGNAL (receivedStdout (TDEProcess *, char *, int)), this, TQ_SLOT (received (TDEProcess *, char *, int))); @@ -102,12 +102,12 @@ bool KProcIO::start (RunMode runmode, bool includeStderr) return TDEProcess::start (runmode, d->comm); } -bool KProcIO::writeStdin (const TQString &line, bool appendnewline) +bool TDEProcIO::writeStdin (const TQString &line, bool appendnewline) { return writeStdin(TQCString(codec->fromUnicode(line)), appendnewline); } -bool KProcIO::writeStdin (const TQCString &line, bool appendnewline) +bool TDEProcIO::writeStdin (const TQCString &line, bool appendnewline) { TQCString *qs = new TQCString(line); @@ -136,7 +136,7 @@ bool KProcIO::writeStdin (const TQCString &line, bool appendnewline) return true; } -bool KProcIO::writeStdin(const TQByteArray &data) +bool TDEProcIO::writeStdin(const TQByteArray &data) { if (!data.size()) return true; @@ -151,7 +151,7 @@ bool KProcIO::writeStdin(const TQByteArray &data) return true; } -void KProcIO::closeWhenDone() +void TDEProcIO::closeWhenDone() { if (writeready) { @@ -163,7 +163,7 @@ void KProcIO::closeWhenDone() return; } -void KProcIO::sent(TDEProcess *) +void TDEProcIO::sent(TDEProcess *) { outbuffer.removeFirst(); @@ -186,21 +186,21 @@ void KProcIO::sent(TDEProcess *) } -void KProcIO::received (TDEProcess *, char *buffer, int buflen) +void TDEProcIO::received (TDEProcess *, char *buffer, int buflen) { recvbuffer += TQCString(buffer, buflen+1); controlledEmission(); } -void KProcIO::ackRead () +void TDEProcIO::ackRead () { readsignalon=true; if (needreadsignal || recvbuffer.length()!=0) controlledEmission(); } -void KProcIO::controlledEmission () +void TDEProcIO::controlledEmission () { if (readsignalon) { @@ -214,7 +214,7 @@ void KProcIO::controlledEmission () } } -void KProcIO::enableReadSignals (bool enable) +void TDEProcIO::enableReadSignals (bool enable) { readsignalon=enable; @@ -222,7 +222,7 @@ void KProcIO::enableReadSignals (bool enable) emit readReady (this); } -int KProcIO::readln (TQString &line, bool autoAck, bool *partial) +int TDEProcIO::readln (TQString &line, bool autoAck, bool *partial) { int len; @@ -269,8 +269,8 @@ int KProcIO::readln (TQString &line, bool autoAck, bool *partial) } -void KProcIO::virtual_hook( int id, void* data ) +void TDEProcIO::virtual_hook( int id, void* data ) { TDEProcess::virtual_hook( id, data ); } -#include "kprocio.moc" +#include "tdeprocio.moc" diff --git a/tdecore/kprocio.h b/tdecore/tdeprocio.h index 02a3257d5..d7394b8b1 100644 --- a/tdecore/kprocio.h +++ b/tdecore/tdeprocio.h @@ -1,4 +1,4 @@ -/* This file is part of the KDE libraries +/* This file is part of the TDE libraries Copyright (C) 1997 David Sweet <[email protected]> This library is free software; you can redistribute it and/or @@ -15,29 +15,29 @@ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef KPROCIO_H_ -#define KPROCIO_H_ +#ifndef TDEPROCIO_H_ +#define TDEPROCIO_H_ #include <tqstring.h> #include <tdeprocess.h> #include <tqstrlist.h> #include "tdelibs_export.h" -class KProcIOPrivate; +class TDEProcIOPrivate; class TQTextCodec; /** - * KProcIO + * TDEProcIO * * This class provides a slightly simpler interface to the communication * functions provided by TDEProcess. The simplifications are: - * @li The buffer for a write is copied to an internal KProcIO + * @li The buffer for a write is copied to an internal TDEProcIO * buffer and maintained/freed appropriately. There is no need * to be concerned with wroteStdin() signals _at_all_. * @li readln() reads a line of data and buffers any leftovers. * @li Conversion from/to unicode. * - * Basically, KProcIO gives you buffered I/O similar to fgets()/fputs(). + * Basically, TDEProcIO gives you buffered I/O similar to fgets()/fputs(). * * Aside from these, and the fact that start() takes different * parameters, use this class just like TDEProcess. @@ -47,7 +47,7 @@ class TQTextCodec; **/ -class TDECORE_EXPORT KProcIO : public TDEProcess +class TDECORE_EXPORT TDEProcIO : public TDEProcess { TQ_OBJECT @@ -55,12 +55,12 @@ public: /** * Constructor */ - KProcIO ( TQTextCodec *codec = 0 ); + TDEProcIO ( TQTextCodec *codec = 0 ); /** * Destructor */ - ~KProcIO(); + ~TDEProcIO(); /** * Sets the communication mode to be passed to TDEProcess::start() @@ -135,7 +135,7 @@ public: * You may use it multiple times if more than one line of data is * available. * Be sure to use ackRead() when you have finished processing the - * readReady() signal. This informs KProcIO that you are ready for + * readReady() signal. This informs TDEProcIO that you are ready for * another readReady() signal. * * readln() never blocks. @@ -192,7 +192,7 @@ signals: * @param pio the process that emitted the signal * @see enableReadSignals() */ - void readReady(KProcIO *pio); + void readReady(TDEProcIO *pio); protected: TQPtrList<TQByteArray> outbuffer; @@ -210,8 +210,7 @@ protected slots: protected: virtual void virtual_hook( int id, void* data ); private: - KProcIOPrivate *d; + TDEProcIOPrivate *d; }; -#endif // KPROCIO_H_ - +#endif diff --git a/tdecore/tests/CMakeLists.txt b/tdecore/tests/CMakeLists.txt index b0c1fb36b..e79dbfdeb 100644 --- a/tdecore/tests/CMakeLists.txt +++ b/tdecore/tests/CMakeLists.txt @@ -36,7 +36,7 @@ set( CHECKS ksocktest kstringhandlertest kcmdlineargstest tdeapptest kmemtest dcopkonqtest kipctest cplusplustest kiconloadertest kresolvertest kmdcodectest knotifytest ksortablevaluelisttest krfcdatetest testqtargs - kprociotest kcharsetstest kcalendartest kmacroexpandertest kshelltest + tdeprociotest kcharsetstest kcalendartest kmacroexpandertest kshelltest kxerrorhandlertest startserviceby kglobaltest ktimezonestest ) diff --git a/tdecore/tests/Makefile.am b/tdecore/tests/Makefile.am index c7b1f7d0e..cbf12cb2c 100644 --- a/tdecore/tests/Makefile.am +++ b/tdecore/tests/Makefile.am @@ -26,14 +26,14 @@ check_PROGRAMS = tdeconfigtestgui klocaletest tdeprocesstest ksimpleconfigtest \ kdebugtest ksocktest kstringhandlertest kcmdlineargstest tdeapptest \ kmemtest kidlservertest kidlclienttest dcopkonqtest kipctest \ cplusplustest kiconloadertest kresolvertest kmdcodectest knotifytest \ - ksortablevaluelisttest krfcdatetest testqtargs kprociotest \ + ksortablevaluelisttest krfcdatetest testqtargs tdeprociotest \ kcharsetstest kcalendartest kmacroexpandertest kshelltest \ kxerrorhandlertest startserviceby tdestdacceltest kglobaltest ktimezonestest TESTS = kurltest tdestdacceltest noinst_HEADERS = klocaletest.h tdeprocesstest.h KIDLTest.h \ - kipctest.h kprociotest.h + kipctest.h tdeprociotest.h METASOURCES = AUTO @@ -68,7 +68,7 @@ knotifytest_SOURCES = knotifytest.cpp ksortablevaluelisttest_SOURCES = ksortablevaluelisttest.cpp krfcdatetest_SOURCES = krfcdatetest.cpp testqtargs_SOURCES = testqtargs.cpp -kprociotest_SOURCES = kprociotest.cpp +tdeprociotest_SOURCES = tdeprociotest.cpp kcharsetstest_SOURCES = kcharsetstest.cpp kcalendartest_SOURCES = kcalendartest.cpp kmacroexpandertest_SOURCES = kmacroexpandertest.cpp diff --git a/tdecore/tests/kprociotest.cpp b/tdecore/tests/tdeprociotest.cpp index 81522f394..16c9b14b6 100644 --- a/tdecore/tests/kprociotest.cpp +++ b/tdecore/tests/tdeprociotest.cpp @@ -17,7 +17,7 @@ #include <signal.h> -#include "kprociotest.h" +#include "tdeprociotest.h" @@ -32,17 +32,17 @@ werke\nmerkt\nich\nund\nden\nbrauch\nund\nmit\ngeistesstaerke\ntu\nich\nwunder\n int main(int argc, char *argv[]) { Dummy dummy; - TDEApplication app(argc, argv, TQCString("kprociotest")); + TDEApplication app(argc, argv, TQCString("tdeprociotest")); - printf("Welcome to the KProcIO Demo Application!\n"); + printf("Welcome to the TDEProcIO Demo Application!\n"); - KProcIO p; + TDEProcIO p; p << "rev"; p.connect(&p, TQ_SIGNAL(processExited(TDEProcess*)), &dummy, TQ_SLOT(printMessage(TDEProcess*))); - p.connect(&p, TQ_SIGNAL(readReady(KProcIO*)), &dummy, TQ_SLOT(gotOutput(KProcIO*))); + p.connect(&p, TQ_SIGNAL(readReady(TDEProcIO*)), &dummy, TQ_SLOT(gotOutput(TDEProcIO*))); bool b; @@ -62,4 +62,4 @@ int main(int argc, char *argv[]) return 0; } -#include "kprociotest.moc" +#include "tdeprociotest.moc" diff --git a/tdecore/tests/kprociotest.h b/tdecore/tests/tdeprociotest.h index 78b5ad926..194a26504 100644 --- a/tdecore/tests/kprociotest.h +++ b/tdecore/tests/tdeprociotest.h @@ -13,7 +13,7 @@ #include <stdio.h> #include <tqobject.h> -#include "kprocio.h" +#include "tdeprocio.h" class Dummy : public TQObject { @@ -25,7 +25,7 @@ class Dummy : public TQObject printf("Process %d exited!\n", (int)proc->getPid()); } - void gotOutput(KProcIO*proc) + void gotOutput(TDEProcIO*proc) { TQString line; while(true) { diff --git a/tdeio/misc/kpac/discovery.cpp b/tdeio/misc/kpac/discovery.cpp index 9e3cafd19..4e1bab960 100644 --- a/tdeio/misc/kpac/discovery.cpp +++ b/tdeio/misc/kpac/discovery.cpp @@ -42,7 +42,7 @@ #include <tqtimer.h> #include <tdelocale.h> -#include <kprocio.h> +#include <tdeprocio.h> #include <kurl.h> #include "discovery.moc" @@ -51,9 +51,9 @@ namespace KPAC { Discovery::Discovery( TQObject* parent ) : Downloader( parent ), - m_helper( new KProcIO ) + m_helper( new TDEProcIO ) { - connect( m_helper, TQ_SIGNAL( readReady( KProcIO* ) ), TQ_SLOT( helperOutput() ) ); + connect( m_helper, TQ_SIGNAL( readReady( TDEProcIO* ) ), TQ_SLOT( helperOutput() ) ); connect( m_helper, TQ_SIGNAL( processExited( TDEProcess* ) ), TQ_SLOT( failed() ) ); *m_helper << "kpac_dhcp_helper"; diff --git a/tdeio/misc/kpac/discovery.h b/tdeio/misc/kpac/discovery.h index b725fb469..b701d8b74 100644 --- a/tdeio/misc/kpac/discovery.h +++ b/tdeio/misc/kpac/discovery.h @@ -25,7 +25,7 @@ #include "downloader.h" -class KProcIO; +class TDEProcIO; namespace KPAC { @@ -45,7 +45,7 @@ namespace KPAC bool initHostName(); bool checkDomain() const; - KProcIO* m_helper; + TDEProcIO* m_helper; TQString m_hostname; }; } diff --git a/tdeio/tdefile/tdefilesharedlg.cpp b/tdeio/tdefile/tdefilesharedlg.cpp index ca5b97e45..9e3770b6c 100644 --- a/tdeio/tdefile/tdefilesharedlg.cpp +++ b/tdeio/tdefile/tdefilesharedlg.cpp @@ -26,7 +26,7 @@ #include <tqlayout.h> #include <tqlineedit.h> #include <tdeprocess.h> -#include <kprocio.h> +#include <tdeprocio.h> #include <tdelocale.h> #include <tdeglobalsettings.h> #include <kstandarddirs.h> diff --git a/tdeio/tdeio/tdefileshare.cpp b/tdeio/tdeio/tdefileshare.cpp index 00e64d857..584d4e5e2 100644 --- a/tdeio/tdeio/tdefileshare.cpp +++ b/tdeio/tdeio/tdefileshare.cpp @@ -22,7 +22,7 @@ #include <tqfile.h> #include <tqregexp.h> #include <tdeprocess.h> -#include <kprocio.h> +#include <tdeprocio.h> #include <tdelocale.h> #include <kstaticdeleter.h> #include <kstandarddirs.h> @@ -179,7 +179,7 @@ void KFileShare::readShareList() s_authorization = ErrorNotFound; return; } - KProcIO proc; + TDEProcIO proc; proc << exe; if ( !proc.start( TDEProcess::Block ) ) { kdError() << "Can't run " << exe << endl; diff --git a/tdenewstuff/security.cpp b/tdenewstuff/security.cpp index 6952f1ec6..07cb798c0 100644 --- a/tdenewstuff/security.cpp +++ b/tdenewstuff/security.cpp @@ -26,7 +26,7 @@ #include <kmdcodec.h> #include <tdemessagebox.h> #include <kpassdlg.h> -#include <kprocio.h> +#include <tdeprocio.h> //app includes #include "security.h" @@ -55,10 +55,10 @@ void Security::readKeys() } m_runMode = List; m_keys.clear(); - KProcIO *readProcess=new KProcIO(); + TDEProcIO *readProcess=new TDEProcIO(); *readProcess << "gpg"<<"--no-secmem-warning"<<"--no-tty"<<"--with-colon"<<"--list-keys"; connect(readProcess, TQ_SIGNAL(processExited(TDEProcess *)), this, TQ_SLOT(slotProcessExited(TDEProcess *))); - connect(readProcess, TQ_SIGNAL(readReady(KProcIO *)) ,this, TQ_SLOT(slotDataArrived(KProcIO *))); + connect(readProcess, TQ_SIGNAL(readReady(TDEProcIO *)) ,this, TQ_SLOT(slotDataArrived(TDEProcIO *))); if (!readProcess->start(TDEProcess::NotifyOnExit, true)) KMessageBox::error(0L, i18n("<qt>Cannot start <i>gpg</i> and retrieve the available keys. Make sure that <i>gpg</i> is installed, otherwise verification of downloaded resources will not be possible.</qt>")); else @@ -73,10 +73,10 @@ void Security::readSecretKeys() return; } m_runMode = ListSecret; - KProcIO *readProcess=new KProcIO(); + TDEProcIO *readProcess=new TDEProcIO(); *readProcess << "gpg"<<"--no-secmem-warning"<<"--no-tty"<<"--with-colon"<<"--list-secret-keys"; connect(readProcess, TQ_SIGNAL(processExited(TDEProcess *)), this, TQ_SLOT(slotProcessExited(TDEProcess *))); - connect(readProcess, TQ_SIGNAL(readReady(KProcIO *)) ,this, TQ_SLOT(slotDataArrived(KProcIO *))); + connect(readProcess, TQ_SIGNAL(readReady(TDEProcIO *)) ,this, TQ_SLOT(slotDataArrived(TDEProcIO *))); if (readProcess->start(TDEProcess::NotifyOnExit, true)) m_gpgRunning = true; } @@ -98,7 +98,7 @@ void Security::slotProcessExited(TDEProcess *process) delete process; } -void Security::slotDataArrived(KProcIO *procIO) +void Security::slotDataArrived(TDEProcIO *procIO) { TQString data; while (procIO->readln(data, true) != -1) @@ -246,10 +246,10 @@ void Security::slotCheckValidity() m_signatureKey.trusted = false; //verify the signature - KProcIO *verifyProcess=new KProcIO(); + TDEProcIO *verifyProcess=new TDEProcIO(); *verifyProcess<<"gpg"<<"--no-secmem-warning"<<"--status-fd=2"<<"--command-fd=0"<<"--verify" << f.dirPath() + "/signature"<< m_fileName; connect(verifyProcess, TQ_SIGNAL(processExited(TDEProcess *)),this, TQ_SLOT(slotProcessExited(TDEProcess *))); - connect(verifyProcess, TQ_SIGNAL(readReady(KProcIO *)),this, TQ_SLOT(slotDataArrived(KProcIO *))); + connect(verifyProcess, TQ_SIGNAL(readReady(TDEProcIO *)),this, TQ_SLOT(slotDataArrived(TDEProcIO *))); if (verifyProcess->start(TDEProcess::NotifyOnExit,true)) m_gpgRunning = true; else @@ -326,10 +326,10 @@ void Security::slotSignFile() m_secretKey = secretKeys[0]; //verify the signature - KProcIO *signProcess=new KProcIO(); + TDEProcIO *signProcess=new TDEProcIO(); *signProcess<<"gpg"<<"--no-secmem-warning"<<"--status-fd=2"<<"--command-fd=0"<<"--no-tty"<<"--detach-sign" << "-u" << m_secretKey << "-o" << f.dirPath() + "/signature" << m_fileName; connect(signProcess, TQ_SIGNAL(processExited(TDEProcess *)),this, TQ_SLOT(slotProcessExited(TDEProcess *))); - connect(signProcess, TQ_SIGNAL(readReady(KProcIO *)),this, TQ_SLOT(slotDataArrived(KProcIO *))); + connect(signProcess, TQ_SIGNAL(readReady(TDEProcIO *)),this, TQ_SLOT(slotDataArrived(TDEProcIO *))); m_runMode = Sign; if (signProcess->start(TDEProcess::NotifyOnExit,true)) m_gpgRunning = true; diff --git a/tdenewstuff/security.h b/tdenewstuff/security.h index ac3f4f1a0..fc3e298c6 100644 --- a/tdenewstuff/security.h +++ b/tdenewstuff/security.h @@ -21,7 +21,7 @@ #include <tqmap.h> #include <tqobject.h> -class KProcIO; +class TDEProcIO; class TDEProcess; struct KeyStruct { @@ -121,7 +121,7 @@ private: private slots: void slotProcessExited(TDEProcess *process); - void slotDataArrived(KProcIO *process); + void slotDataArrived(TDEProcIO *process); signals: /** Sent when the validity check is done. diff --git a/tdeui/kedittoolbar.cpp b/tdeui/kedittoolbar.cpp index 193a2e4ac..0d594c8f4 100644 --- a/tdeui/kedittoolbar.cpp +++ b/tdeui/kedittoolbar.cpp @@ -43,7 +43,7 @@ #include <tdelistview.h> #include <kdebug.h> #include <kpushbutton.h> -#include <kprocio.h> +#include <tdeprocio.h> static const char * const lineseparatorstring = I18N_NOOP("--- line separator ---"); static const char * const separatorstring = I18N_NOOP("--- separator ---"); @@ -357,7 +357,7 @@ public: KSeparator *m_comboSeparator; TQLabel * m_helpArea; KPushButton* m_changeIcon; - KProcIO* m_kdialogProcess; + TDEProcIO* m_kdialogProcess; bool m_hasKDialog; }; @@ -1387,7 +1387,7 @@ void KEditToolbarWidget::slotChangeIcon() if ( d->m_kdialogProcess && d->m_kdialogProcess->isRunning() ) return; - d->m_kdialogProcess = new KProcIO; + d->m_kdialogProcess = new TDEProcIO; TQString kdialogExe = TDEStandardDirs::findExe(TQString::fromLatin1("kdialog")); (*d->m_kdialogProcess) << kdialogExe; (*d->m_kdialogProcess) << "--embed"; diff --git a/tdeui/tdespell.cpp b/tdeui/tdespell.cpp index d2326412b..0e47a172c 100644 --- a/tdeui/tdespell.cpp +++ b/tdeui/tdespell.cpp @@ -44,7 +44,7 @@ #include "tdespell.h" #include "tdespelldlg.h" #include <twin.h> -#include <kprocio.h> +#include <tdeprocio.h> #define MAXLINELENGTH 10000 #undef IGNORE //fix possible conflict @@ -96,11 +96,11 @@ public: */ -// Connects a slot to KProcIO's output signal -#define OUTPUT(x) (connect (proc, TQ_SIGNAL (readReady(KProcIO *)), this, TQ_SLOT (x(KProcIO *)))) +// Connects a slot to TDEProcIO's output signal +#define OUTPUT(x) (connect (proc, TQ_SIGNAL (readReady(TDEProcIO *)), this, TQ_SLOT (x(TDEProcIO *)))) // Disconnect a slot from... -#define NOOUTPUT(x) (disconnect (proc, TQ_SIGNAL (readReady(KProcIO *)), this, TQ_SLOT (x(KProcIO *)))) +#define NOOUTPUT(x) (disconnect (proc, TQ_SIGNAL (readReady(TDEProcIO *)), this, TQ_SLOT (x(TDEProcIO *)))) @@ -319,7 +319,7 @@ KSpell::ispellErrors( TDEProcess *, char *buffer, int buflen ) // kdDebug(750) << "ispellErrors [" << buffer << "]\n" << endl; } -void KSpell::KSpell2( KProcIO * ) +void KSpell::KSpell2( TDEProcIO * ) { TQString line; @@ -555,7 +555,7 @@ bool KSpell::checkWord( const TQString & buffer, bool _usedialog, bool suggest ) return true; } -void KSpell::checkWord2( KProcIO* ) +void KSpell::checkWord2( TDEProcIO* ) { TQString word; TQString line; @@ -608,7 +608,7 @@ void KSpell::checkNext() } } -void KSpell::suggestWord( KProcIO * ) +void KSpell::suggestWord( TDEProcIO * ) { TQString word; TQString line; @@ -800,14 +800,14 @@ bool KSpell::checkList (TQStringList *_wordlist, bool _usedialog) lastpos = -1; checkList2(); - // when checked, KProcIO calls checkList3a + // when checked, TDEProcIO calls checkList3a OUTPUT(checkList3a); return true; } void KSpell::checkList2 () - // send one word from the list to KProcIO + // send one word from the list to TDEProcIO // invoked first time by checkList, later by checkListReplaceCurrent and checkList4 { // send next word @@ -837,8 +837,8 @@ void KSpell::checkList2 () } } -void KSpell::checkList3a (KProcIO *) - // invoked by KProcIO, when data from ispell are read +void KSpell::checkList3a (TDEProcIO *) + // invoked by TDEProcIO, when data from ispell are read { //kdDebug(750) << "start of checkList3a" << endl; @@ -961,7 +961,7 @@ void KSpell::checkList4 () //proc->disconnect(); //proc->kill(); //delete proc; - //proc = new KProcIO( codec ); + //proc = new TDEProcIO( codec ); //startIspell(); return; }; @@ -1006,7 +1006,7 @@ bool KSpell::check( const TQString &_buffer, bool _usedialog ) newbuffer = origbuffer; - // KProcIO calls check2 when read from ispell + // TDEProcIO calls check2 when read from ispell OUTPUT( check2 ); proc->writeStdin(TQString("!")); @@ -1033,8 +1033,8 @@ bool KSpell::check( const TQString &_buffer, bool _usedialog ) } -void KSpell::check2( KProcIO * ) - // invoked by KProcIO when read from ispell +void KSpell::check2( TDEProcIO * ) + // invoked by TDEProcIO when read from ispell { int e, tempe; TQString word; @@ -1564,7 +1564,7 @@ void KSpell::initialize( TQWidget *_parent, const TQString &_caption, // Hack for modal spell checking connect( this, TQ_SIGNAL(ready(KSpell *)), this, TQ_SLOT(slotModalReady()) ); - proc = new KProcIO( codec ); + proc = new TDEProcIO( codec ); startIspell(); } diff --git a/tdeui/tdespell.h b/tdeui/tdespell.h index 1ff854cfc..fd56928b5 100644 --- a/tdeui/tdespell.h +++ b/tdeui/tdespell.h @@ -27,7 +27,7 @@ #include <tdelibs_export.h> class TQTextCodec; -class KProcIO; +class TDEProcIO; class TDEProcess; class KSpellDlg; @@ -447,18 +447,18 @@ signals: protected slots: - /* All of those signals from KProcIO get sent here. */ - void KSpell2 (KProcIO *); - void checkWord2 (KProcIO *); + /* All of those signals from TDEProcIO get sent here. */ + void KSpell2 (TDEProcIO *); + void checkWord2 (TDEProcIO *); void checkWord3 (); - void check2 (KProcIO *); + void check2 (TDEProcIO *); void checkList2 (); - void checkList3a (KProcIO *); + void checkList3a (TDEProcIO *); void checkListReplaceCurrent (); void checkList4 (); void dialog2 (int dlgresult); void check3 (); - void suggestWord( KProcIO * ); + void suggestWord( TDEProcIO * ); void slotStopCancel (int); void ispellExit (TDEProcess *); @@ -492,7 +492,7 @@ signals: protected: - KProcIO *proc; + TDEProcIO *proc; TQWidget *parent; KSpellConfig *ksconfig; KSpellDlg *ksdlg; diff --git a/win/pro_files/tdecore/tdecore.pro b/win/pro_files/tdecore/tdecore.pro index ddf1003ee..c249670a6 100644 --- a/win/pro_files/tdecore/tdecore.pro +++ b/win/pro_files/tdecore/tdecore.pro @@ -22,7 +22,7 @@ fakes.c \ kpixmapprovider.cpp \ kpalette.cpp \ tdeprocess.cpp \ -kprocio.cpp \ +tdeprocio.cpp \ kcrash.cpp \ kallocator.cpp \ knotifyclient.cpp \ |