Do not allow maxfreq < minfreq
[qcpufreq] / src / mainwindow.h
index 392066c..9aa4763 100755 (executable)
 #define MAINWINDOW_H
 
 #include <QMainWindow>
+#include <QGraphicsScene>
+#include <QTimer>
+#include <QProcess>
+
+#include "helpwindow.h"
 
 namespace Ui {
     class MainWindow;
@@ -36,20 +41,35 @@ public:
 public slots:
     void about();
     void adjustFreq();
-    void setAutoRotaion();
+    void orientationChanged();
     void refresh();
+    void setAutoRotation();
+    void setSmartReflex();
+    void showHelp();
 
 
 private:
     Ui::MainWindow *ui;
-    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();
+    //! The helper process
+    QProcess *helperProcess;
+    //! The help window
+    HelpWindow *helpWindow;
+    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 showSudoError;
+    bool usePortrait();
 };
 
 #endif // MAINWINDOW_H