summaryrefslogtreecommitdiffstats
path: root/ksysguard/gui/ksgrd
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-24 13:43:14 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-24 13:43:14 -0600
commit79b21d47bce1ee428affc97534cd8b257232a871 (patch)
tree0df1fa0109d9f2bcef932eda8b5c25b2e06669ed /ksysguard/gui/ksgrd
parent9a898d493f493adbc404f7223043c85f3817472b (diff)
downloadtdebase-79b21d47bce1ee428affc97534cd8b257232a871.tar.gz
tdebase-79b21d47bce1ee428affc97534cd8b257232a871.zip
Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4
Diffstat (limited to 'ksysguard/gui/ksgrd')
-rw-r--r--ksysguard/gui/ksgrd/SensorAgent.h2
-rw-r--r--ksysguard/gui/ksgrd/SensorShellAgent.cc30
-rw-r--r--ksysguard/gui/ksgrd/SensorShellAgent.h12
3 files changed, 22 insertions, 22 deletions
diff --git a/ksysguard/gui/ksgrd/SensorAgent.h b/ksysguard/gui/ksgrd/SensorAgent.h
index 177bb76d6..36c44095c 100644
--- a/ksysguard/gui/ksgrd/SensorAgent.h
+++ b/ksysguard/gui/ksgrd/SensorAgent.h
@@ -24,7 +24,7 @@
#include <tqobject.h>
#include <tqptrlist.h>
-class KProcess;
+class TDEProcess;
class KShellProcess;
class TQString;
diff --git a/ksysguard/gui/ksgrd/SensorShellAgent.cc b/ksysguard/gui/ksgrd/SensorShellAgent.cc
index 8081aa49d..7e137ad56 100644
--- a/ksysguard/gui/ksgrd/SensorShellAgent.cc
+++ b/ksysguard/gui/ksgrd/SensorShellAgent.cc
@@ -49,20 +49,20 @@ bool SensorShellAgent::start( const TQString &host, const TQString &shell,
const TQString &command, int )
{
mRetryCount = 3;
- mDaemon = new KProcess;
+ mDaemon = new TDEProcess;
mDaemon->setUseShell(true);
setHostName( host );
mShell = shell;
mCommand = command;
- connect( mDaemon, TQT_SIGNAL( processExited( KProcess* ) ),
- TQT_SLOT( daemonExited( KProcess* ) ) );
- connect( mDaemon, TQT_SIGNAL( receivedStdout( KProcess*, char*, int ) ),
- TQT_SLOT( msgRcvd( KProcess*, char*, int ) ) );
- connect( mDaemon, TQT_SIGNAL( receivedStderr( KProcess*, char*, int ) ),
- TQT_SLOT( errMsgRcvd( KProcess*, char*, int ) ) );
- connect( mDaemon, TQT_SIGNAL( wroteStdin( KProcess* ) ),
- TQT_SLOT( msgSent( KProcess* ) ) );
+ connect( mDaemon, TQT_SIGNAL( processExited( TDEProcess* ) ),
+ TQT_SLOT( daemonExited( TDEProcess* ) ) );
+ connect( mDaemon, TQT_SIGNAL( receivedStdout( TDEProcess*, char*, int ) ),
+ TQT_SLOT( msgRcvd( TDEProcess*, char*, int ) ) );
+ connect( mDaemon, TQT_SIGNAL( receivedStderr( TDEProcess*, char*, int ) ),
+ TQT_SLOT( errMsgRcvd( TDEProcess*, char*, int ) ) );
+ connect( mDaemon, TQT_SIGNAL( wroteStdin( TDEProcess* ) ),
+ TQT_SLOT( msgSent( TDEProcess* ) ) );
TQString cmd;
if ( !command.isEmpty() )
@@ -71,7 +71,7 @@ bool SensorShellAgent::start( const TQString &host, const TQString &shell,
cmd = mShell + " " + hostName() + " ksysguardd";
*mDaemon << cmd;
- if ( !mDaemon->start( KProcess::NotifyOnExit, KProcess::All ) ) {
+ if ( !mDaemon->start( TDEProcess::NotifyOnExit, TDEProcess::All ) ) {
sensorManager()->hostLost( this );
kdDebug (1215) << "Command '" << cmd << "' failed" << endl;
return false;
@@ -88,7 +88,7 @@ void SensorShellAgent::hostInfo( TQString &shell, TQString &command,
port = -1;
}
-void SensorShellAgent::msgSent( KProcess* )
+void SensorShellAgent::msgSent( TDEProcess* )
{
setTransmitting( false );
@@ -96,7 +96,7 @@ void SensorShellAgent::msgSent( KProcess* )
executeCommand();
}
-void SensorShellAgent::msgRcvd( KProcess*, char *buffer, int buflen )
+void SensorShellAgent::msgRcvd( TDEProcess*, char *buffer, int buflen )
{
if ( !buffer || buflen == 0 )
return;
@@ -106,7 +106,7 @@ void SensorShellAgent::msgRcvd( KProcess*, char *buffer, int buflen )
processAnswer( aux );
}
-void SensorShellAgent::errMsgRcvd( KProcess*, char *buffer, int buflen )
+void SensorShellAgent::errMsgRcvd( TDEProcess*, char *buffer, int buflen )
{
if ( !buffer || buflen == 0 )
return;
@@ -117,10 +117,10 @@ void SensorShellAgent::errMsgRcvd( KProcess*, char *buffer, int buflen )
<< endl << buf << endl;
}
-void SensorShellAgent::daemonExited( KProcess *process )
+void SensorShellAgent::daemonExited( TDEProcess *process )
{
kdDebug() << "daemonExited" << endl;
- if ( mRetryCount-- <= 0 || !mDaemon->start( KProcess::NotifyOnExit, KProcess::All ) ) {
+ if ( mRetryCount-- <= 0 || !mDaemon->start( TDEProcess::NotifyOnExit, TDEProcess::All ) ) {
kdDebug() << "daemon could not be restart" << endl;
setDaemonOnLine( false );
sensorManager()->hostLost( this );
diff --git a/ksysguard/gui/ksgrd/SensorShellAgent.h b/ksysguard/gui/ksgrd/SensorShellAgent.h
index cf3e29cc3..2befd346b 100644
--- a/ksysguard/gui/ksgrd/SensorShellAgent.h
+++ b/ksysguard/gui/ksgrd/SensorShellAgent.h
@@ -29,7 +29,7 @@
class TQString;
-class KProcess;
+class TDEProcess;
namespace KSGRD {
@@ -57,16 +57,16 @@ class SensorShellAgent : public SensorAgent
void hostInfo( TQString &shell, TQString &command, int &port) const;
private slots:
- void msgSent( KProcess* );
- void msgRcvd( KProcess*, char *buffer, int buflen );
- void errMsgRcvd( KProcess*, char *buffer, int buflen );
- void daemonExited( KProcess* );
+ void msgSent( TDEProcess* );
+ void msgRcvd( TDEProcess*, char *buffer, int buflen );
+ void errMsgRcvd( TDEProcess*, char *buffer, int buflen );
+ void daemonExited( TDEProcess* );
private:
bool writeMsg( const char *msg, int len );
bool txReady();
- TQGuardedPtr<KProcess> mDaemon;
+ TQGuardedPtr<TDEProcess> mDaemon;
TQString mShell;
TQString mCommand;
int mRetryCount;