X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fmainwindow.h;h=dd2d172fbb10c016f8afe4f0e38f4d75a0a93015;hb=8d544a68320b5ca6fcdfa5f1e548e4a3b1e10310;hp=a2c30428a12f754c0f1534ee0aef1beac5b00731;hpb=89f906b75be3e7d21cb34f8e9b811a798af26688;p=qcpufreq diff --git a/src/mainwindow.h b/src/mainwindow.h index a2c3042..dd2d172 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -23,8 +23,10 @@ #include #include #include +#include #include "helpwindow.h" +#include "settingswidget.h" namespace Ui { class MainWindow; @@ -44,12 +46,15 @@ public slots: void orientationChanged(); void refresh(); void setAutoRotation(); + void setOverclocking(); void setSmartReflex(); void showHelp(); + void showSettings(); private: Ui::MainWindow *ui; + bool allowOverclocking; int callHelper( QString action, QString param ); QString getCPUTemp(); int getMaxFreq(); @@ -63,13 +68,22 @@ private: 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(); };