#define MAINWINDOW_H
#include <QMainWindow>
+#include <QGraphicsScene>
+#include <QTimer>
+#include <QProcess>
+
+#include "helpwindow.h"
namespace Ui {
class MainWindow;
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;
+ 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;
+ bool showSudoError;
+ bool usePortrait();
};
#endif // MAINWINDOW_H