Initial help window support, show sudo errors.
[qcpufreq] / src / mainwindow.h
index 13eae27..9aa4763 100755 (executable)
@@ -22,6 +22,9 @@
 #include <QMainWindow>
 #include <QGraphicsScene>
 #include <QTimer>
+#include <QProcess>
+
+#include "helpwindow.h"
 
 namespace Ui {
     class MainWindow;
@@ -40,8 +43,9 @@ public slots:
     void adjustFreq();
     void orientationChanged();
     void refresh();
-    void setAutoRotaion();
+    void setAutoRotation();
     void setSmartReflex();
+    void showHelp();
 
 
 private:
@@ -55,11 +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;
+    bool showSudoError;
     bool usePortrait();
 };