Use TDEProcIO class

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/19/head
Michele Calgaro 1 year ago
parent cd351edc4b
commit 71a415575f
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -25,7 +25,7 @@
#include <kdebug.h>
#ifndef HAVE_NVCONTROL
#include <kprocio.h>
#include <tdeprocio.h>
#else
#include <tqpaintdevice.h> // for the Device* pointer
@ -68,7 +68,7 @@ std::list<Source*>NVidiaThermalSrc::createInstances(TQWidget* inParent){
// and "GPUAmbientTemp" and create two instances for each
// of them
// start nvidia-settings, if available and wait for it to exit.
KProcIO proc;
TDEProcIO proc;
proc << "nvidia-settings"
<< "-n" // don't load config
<< "-q" << "GPUCoreTemp"
@ -143,7 +143,7 @@ void NVidiaThermalSrc::evaluateStdout(){
#ifndef HAVE_NVCONTROL
void NVidiaThermalSrc::createProcess() {
mProcess = new KProcIO;
mProcess = new TDEProcIO;
connect(mProcess, TQ_SIGNAL(processExited(TDEProcess*)), this, TQ_SLOT(evaluateStdout()));
*mProcess << "nvidia-settings" << "-n"
<< "-q" << mID;

@ -26,7 +26,7 @@
#include <list>
#include <tqtimer.h>
class KProcIO;
class TDEProcIO;
/**
* NVidiaThermalSrc calls nvidia-settings to fetch the thermal values of the GPU
* @author Ken Werner
@ -69,7 +69,7 @@ private:
* the evaluateStdout slot.
*/
void createProcess();
KProcIO* mProcess;
TDEProcIO* mProcess;
#else
unsigned int mAttrib;
#endif

Loading…
Cancel
Save