summaryrefslogtreecommitdiffstats
path: root/kmilo/asus
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:52:55 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:52:55 +0000
commit5f5ee2367157176ed223b86343eb0a9e4022e020 (patch)
tree6a9c87f14ee38e90eff3c77c784f14e4f38fd5a1 /kmilo/asus
parent4facf42feec57b22dcf46badc115ad6c5b5cc512 (diff)
downloadtdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.tar.gz
tdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1157653 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmilo/asus')
-rw-r--r--kmilo/asus/asus.cpp20
-rw-r--r--kmilo/asus/asus.h4
2 files changed, 12 insertions, 12 deletions
diff --git a/kmilo/asus/asus.cpp b/kmilo/asus/asus.cpp
index e1fbfa0..1af8780 100644
--- a/kmilo/asus/asus.cpp
+++ b/kmilo/asus/asus.cpp
@@ -26,8 +26,8 @@
#include <krun.h>
#include <kurl.h>
-#include <qfile.h>
-#include <qdir.h>
+#include <tqfile.h>
+#include <tqdir.h>
#include "kmilointerface.h"
@@ -42,7 +42,7 @@
namespace KMilo {
-AsusMonitor::AsusMonitor(QObject* parent, const char* name, const QStringList& args): Monitor(parent, name, args)
+AsusMonitor::AsusMonitor(TQObject* parent, const char* name, const TQStringList& args): Monitor(parent, name, args)
{
}
@@ -69,7 +69,7 @@ bool AsusMonitor::init()
}
#else
// we need to read the /proc file system and store the current values into a struct
- QDir dir("/proc/acpi/asus");
+ TQDir dir("/proc/acpi/asus");
if (!dir.exists())
{
kdDebug() << "/proc/acpi/asus doesn't exist, check that the asus_acpi module is loaded" << endl;
@@ -172,22 +172,22 @@ bool AsusMonitor::readProc(asus_state_struct* asus_state)
if ( sysctl(video_mib, 4, &value, &value_len, NULL, 0) != -1 )
asus_state->display = value;
#else
- asus_state->brightness = readProcEntry(QString("brn"));
- //asus_state->lcd = readProcEntry(QString("lcd"));
+ asus_state->brightness = readProcEntry(TQString("brn"));
+ //asus_state->lcd = readProcEntry(TQString("lcd"));
//disabled because it does not yet work on my S5200N (asus_acpi bug)
- //asus_state->display = readProcEntry(QString("disp"));
+ //asus_state->display = readProcEntry(TQString("disp"));
//FIXME
#endif
return true;
}
-int AsusMonitor::readProcEntry(const QString &name)
+int AsusMonitor::readProcEntry(const TQString &name)
{
- QFile f(QString("/proc/acpi/asus/%1").arg(name).local8Bit());
+ TQFile f(TQString("/proc/acpi/asus/%1").arg(name).local8Bit());
if (f.open(IO_ReadOnly))
{
- QString line;
+ TQString line;
if (f.readLine(line, 1024) > 0)
{
line = line.stripWhiteSpace();
diff --git a/kmilo/asus/asus.h b/kmilo/asus/asus.h
index 90361d8..c809eea 100644
--- a/kmilo/asus/asus.h
+++ b/kmilo/asus/asus.h
@@ -42,7 +42,7 @@ typedef struct
*/
class AsusMonitor: public Monitor {
public:
- AsusMonitor(QObject *parent, const char *name, const QStringList&);
+ AsusMonitor(TQObject *parent, const char *name, const TQStringList&);
virtual ~AsusMonitor();
/**
@@ -72,7 +72,7 @@ class AsusMonitor: public Monitor {
asus_state_struct asus_state;
bool readProc(asus_state_struct* );
- int readProcEntry(const QString &);
+ int readProcEntry(const TQString &);
void clearStruct(asus_state_struct& asus_state);