Fixed file mode for source and data files
[qcpufreq] / src / mainwindow.h
old mode 100755 (executable)
new mode 100644 (file)
index 448aa53..7f10e82
 
 #include <QMainWindow>
 #include <QGraphicsScene>
+#include <QTimer>
+#include <QProcess>
+
+#include "helpwindow.h"
 
 namespace Ui {
     class MainWindow;
@@ -39,12 +43,14 @@ public slots:
     void adjustFreq();
     void orientationChanged();
     void refresh();
-    void setAutoRotaion();
+    void setAutoRotation();
     void setSmartReflex();
+    void showHelp();
 
 
 private:
     Ui::MainWindow *ui;
+    int callHelper( QString action, QString param );
     QString getCPUTemp();
     int getMaxFreq();
     int getMinFreq();
@@ -53,9 +59,16 @@ private:
     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;
+    QGraphicsScene scene;
+    bool showSudoError;
     bool usePortrait();
 };