summaryrefslogtreecommitdiffstats
path: root/src/lmsensorsalarms.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lmsensorsalarms.cpp')
-rw-r--r--src/lmsensorsalarms.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/lmsensorsalarms.cpp b/src/lmsensorsalarms.cpp
index 895e223..f05962f 100644
--- a/src/lmsensorsalarms.cpp
+++ b/src/lmsensorsalarms.cpp
@@ -18,8 +18,8 @@
#include <stdlib.h>
-#include <qstring.h>
-#include <kglobal.h>
+#include <ntqstring.h>
+#include <tdeglobal.h>
#include <kprocess.h>
#include <kaudioplayer.h>
#include "lmsensorsalarms.h"
@@ -27,8 +27,8 @@
-LMSensorsAlarms::LMSensorsAlarms(LMSensors *sensors, QObject *parent, const char *name)
- : QObject(parent,name)
+LMSensorsAlarms::LMSensorsAlarms(LMSensors *sensors, TQObject *parent, const char *name)
+ : TQObject(parent,name)
{
sensorCount= 0;
soundPlay = "";
@@ -82,7 +82,7 @@ void LMSensorsAlarms::setValueChanged(Sensor *sensor)
runSensorCommand(
(const char *)sensor->getDescription(),
- (const char *)QString::number(sensor->getValue()),
+ (const char *)TQString::number(sensor->getValue()),
(const char *)readAlarmCommand(sensor->name())
);
break;
@@ -97,7 +97,7 @@ void LMSensorsAlarms::setValueChanged(Sensor *sensor)
}
}
-void LMSensorsAlarms::timerEvent( QTimerEvent * )
+void LMSensorsAlarms::timerEvent( TQTimerEvent * )
{
KAudioPlayer::play(soundPlay);
}
@@ -106,40 +106,40 @@ void LMSensorsAlarms::timerEvent( QTimerEvent * )
int LMSensorsAlarms::readAlarm(const char *name)
{
- KGlobal::config()->setGroup(name);
- return KGlobal::config()->readNumEntry("Alarm",acNothing);
+ TDEGlobal::config()->setGroup(name);
+ return TDEGlobal::config()->readNumEntry("Alarm",acNothing);
}
void LMSensorsAlarms::writeAlarm(const char *name, int alarm)
{
- KGlobal::config()->setGroup(name);
- KGlobal::config()->writeEntry("Alarm",alarm);
+ TDEGlobal::config()->setGroup(name);
+ TDEGlobal::config()->writeEntry("Alarm",alarm);
}
-QString LMSensorsAlarms::readAlarmCommand(const char *name)
+TQString LMSensorsAlarms::readAlarmCommand(const char *name)
{
- KGlobal::config()->setGroup(name);
- return KGlobal::config()->readEntry("AlarmCommand", "");
+ TDEGlobal::config()->setGroup(name);
+ return TDEGlobal::config()->readEntry("AlarmCommand", "");
}
-void LMSensorsAlarms::writeAlarmCommand(const char *name, const QString &cmd)
+void LMSensorsAlarms::writeAlarmCommand(const char *name, const TQString &cmd)
{
- KGlobal::config()->setGroup(name);
- KGlobal::config()->writeEntry("AlarmCommand", cmd);
+ TDEGlobal::config()->setGroup(name);
+ TDEGlobal::config()->writeEntry("AlarmCommand", cmd);
}
-QString LMSensorsAlarms::readAlarmSound(const char *name)
+TQString LMSensorsAlarms::readAlarmSound(const char *name)
{
- KGlobal::config()->setGroup(name);
- return KGlobal::config()->readEntry("AlarmSound", "ksensors_alert.wav");
+ TDEGlobal::config()->setGroup(name);
+ return TDEGlobal::config()->readEntry("AlarmSound", "ksensors_alert.wav");
}
-void LMSensorsAlarms::writeAlarmSound(const char *name, const QString &cmd)
+void LMSensorsAlarms::writeAlarmSound(const char *name, const TQString &cmd)
{
- KGlobal::config()->setGroup(name);
- KGlobal::config()->writeEntry("AlarmSound", cmd);
+ TDEGlobal::config()->setGroup(name);
+ TDEGlobal::config()->writeEntry("AlarmSound", cmd);
}