Refresh UI every 10 seconds
[qcpufreq] / src / mainwindow.h
index c15ab45..13eae27 100755 (executable)
@@ -21,6 +21,7 @@
 
 #include <QMainWindow>
 #include <QGraphicsScene>
+#include <QTimer>
 
 namespace Ui {
     class MainWindow;
@@ -38,21 +39,27 @@ public slots:
     void about();
     void adjustFreq();
     void orientationChanged();
-    void setAutoRotaion();
     void refresh();
+    void setAutoRotaion();
+    void setSmartReflex();
 
 
 private:
     Ui::MainWindow *ui;
-    QGraphicsScene *scene;
-    QString readScalingFile( QString scaling_file );
-    int getCurFreq();
+    int callHelper( QString action, QString param );
+    QString getCPUTemp();
     int getMaxFreq();
     int getMinFreq();
     int getScalingFreq( int step );
     QString getScalingGovernor();
-    int getScalingSteps();
     int getScalingStep( int freq );
+    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();
 };