summaryrefslogtreecommitdiffstats
path: root/src/sources/ibmhdaps.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sources/ibmhdaps.cpp')
-rw-r--r--src/sources/ibmhdaps.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/sources/ibmhdaps.cpp b/src/sources/ibmhdaps.cpp
index 05d945b..64d3d9a 100644
--- a/src/sources/ibmhdaps.cpp
+++ b/src/sources/ibmhdaps.cpp
@@ -19,15 +19,15 @@
***************************************************************************/
#include "ibmhdaps.h"
-#include <qtextstream.h>
-#include <qdir.h>
+#include <tqtextstream.h>
+#include <tqdir.h>
#include <klocale.h>
-IBMHDAPSSrc::IBMHDAPSSrc(QWidget* inParent, const QFile& inSourceFile):
+IBMHDAPSSrc::IBMHDAPSSrc(TQWidget* inParent, const TQFile& inSourceFile):
LabelSource(inParent),
mSourceFile(inSourceFile.name()),
mTrigger(this){
- mID = "HDAPS" + mSourceFile.name().section( '/', -1, -1, QString::SectionSkipEmpty ).remove("temp");
+ mID = "HDAPS" + mSourceFile.name().section( '/', -1, -1, TQString::SectionSkipEmpty ).remove("temp");
mName = mID;
mDescription = i18n("This thermal source is provided by the IBM HDAPS driver.");
}
@@ -35,15 +35,15 @@ IBMHDAPSSrc::IBMHDAPSSrc(QWidget* inParent, const QFile& inSourceFile):
IBMHDAPSSrc::~IBMHDAPSSrc(){
}
-std::list<Source*>IBMHDAPSSrc::createInstances(QWidget* inParent){
+std::list<Source*>IBMHDAPSSrc::createInstances(TQWidget* inParent){
std::list<Source*> list;
- QDir hdapsDir( "/sys/bus/platform/drivers/hdaps/hdaps" );
+ TQDir hdapsDir( "/sys/bus/platform/drivers/hdaps/hdaps" );
if ( hdapsDir.exists() ){
- hdapsDir.setFilter( QDir::Files | QDir::NoSymLinks );
- hdapsDir.setSorting( QDir::Name);
+ hdapsDir.setFilter( TQDir::Files | TQDir::NoSymLinks );
+ hdapsDir.setSorting( TQDir::Name);
for ( unsigned int i = 0; i < hdapsDir.count(); i++ ){
if(hdapsDir[i].startsWith("temp")){
- QFile hdapsFile(hdapsDir.canonicalPath() + "/" + hdapsDir[i]);
+ TQFile hdapsFile(hdapsDir.canonicalPath() + "/" + hdapsDir[i]);
list.push_back(new IBMHDAPSSrc(inParent, hdapsFile));
}
}
@@ -51,10 +51,10 @@ std::list<Source*>IBMHDAPSSrc::createInstances(QWidget* inParent){
return list;
}
-QString IBMHDAPSSrc::fetchValue(){
- QString s = "n/a";
+TQString IBMHDAPSSrc::fetchValue(){
+ TQString s = "n/a";
if(mSourceFile.open(IO_ReadOnly)){
- QTextStream textStream( &mSourceFile );
+ TQTextStream textStream( &mSourceFile );
s = textStream.readLine().stripWhiteSpace();
mSourceFile.close();
s = formatTemperature(s);