Refresh UI every 10 seconds
[qcpufreq] / src / mainwindow.h
index d438ee2..13eae27 100755 (executable)
@@ -21,6 +21,7 @@
 
 #include <QMainWindow>
 #include <QGraphicsScene>
+#include <QTimer>
 
 namespace Ui {
     class MainWindow;
@@ -40,10 +41,13 @@ public slots:
     void orientationChanged();
     void refresh();
     void setAutoRotaion();
+    void setSmartReflex();
 
 
 private:
     Ui::MainWindow *ui;
+    int callHelper( QString action, QString param );
+    QString getCPUTemp();
     int getMaxFreq();
     int getMinFreq();
     int getScalingFreq( int step );
@@ -52,6 +56,8 @@ private:
     int getScalingSteps();
     int getSmartReflexState();
     QString readSysFile( QString sys_file );
+    //! the timer for refreshing the UI
+    QTimer *refreshTimer;
     //! the QGraphicsScene will contain the large chip icon displayed in the UI
     QGraphicsScene *scene;
     bool usePortrait();