#include <QMainWindow>
#include <QGraphicsScene>
+#include <QTimer>
+#include <QProcess>
+
+#include "helpwindow.h"
namespace Ui {
class MainWindow;
void adjustFreq();
void orientationChanged();
void refresh();
- void setAutoRotaion();
+ void setAutoRotation();
+ void setOverclocking();
void setSmartReflex();
+ void showHelp();
private:
Ui::MainWindow *ui;
+ bool allowOverclocking;
int callHelper( QString action, QString param );
QString getCPUTemp();
int getMaxFreq();
int getScalingStep( int freq );
int getScalingSteps();
int getSmartReflexState();
+ //! The helper process
+ QProcess helperProcess;
+ //! The help window
+ HelpWindow helpWindow;
+ int minFreq;
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();
};