#include <QMainWindow>
#include <QGraphicsScene>
+#include <QTimer>
+#include <QProcess>
+#include <QStringList>
+
+#include "helpwindow.h"
+#include "settingswidget.h"
namespace Ui {
class MainWindow;
void about();
void adjustFreq();
void orientationChanged();
- void setAutoRotaion();
void refresh();
+ void setAutoRotation();
+ void setOverclocking();
+ void setSmartReflex();
+ void showHelp();
+ void showSettings();
private:
Ui::MainWindow *ui;
- QGraphicsScene *scene;
- QString readScalingFile( QString scaling_file );
- int getCurFreq();
+ bool allowOverclocking;
+ 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;
+ //! Initializes the application
+ void init();
+ int minFreq;
+ //! Are we using a power kernel?
+ bool powerKernel;
+ QString readSysFile( QString sys_file );
+ //! the timer for refreshing the UI
+ QTimer refreshTimer;
+ //! The amount of scaling steps
+ int scalingSteps;
+ //! The available scaling frequencies
+ QStringList scalingFrequencies;
+ //! the QGraphicsScene will contain the large chip icon displayed in the UI
+ QGraphicsScene scene;
+ bool showSudoError;
+ SettingsWidget settings;
bool usePortrait();
};