X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fmainwindow.h;h=93c39c5602b5e6ba77eb483c19905f781f1f5df4;hb=ce8836f797ca80b4b0bdf188ec00bd5bcfb55145;hp=c8866a88379fe0c636a6216e12080042c7130cf7;hpb=ec1dcd3a4bc61d75bedeff148be3b17b2f5a5f4f;p=qcpufreq diff --git a/src/mainwindow.h b/src/mainwindow.h index c8866a8..93c39c5 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -26,6 +26,7 @@ #include #include "helpwindow.h" +#include "loadpreset.h" #include "settings.h" namespace Ui { @@ -43,18 +44,21 @@ public: public slots: void about(); void adjustFreq(); + void applySettings(); + void loadPreset(QString presetName); void orientationChanged(); void refresh(); + void save(); + void setAdvancedTemperature(); void setAutoRotation(); - void setOverclocking(); void setSmartReflex(); void showHelp(); + //void showLoadPresetDialog(); void showSettings(); private: Ui::MainWindow *ui; - bool allowOverclocking; int callHelper( QString action, QString param ); QString getCPUTemp(); int getMaxFreq(); @@ -70,9 +74,8 @@ private: HelpWindow helpWindow; //! Initializes the application void init(); + LoadPreset *loadPresetDialog; int minFreq; - //! Are we using a power kernel? - bool powerKernel; QString readSysFile( QString sys_file ); //! the timer for refreshing the UI QTimer refreshTimer; @@ -83,7 +86,7 @@ private: //! the QGraphicsScene will contain the large chip icon displayed in the UI QGraphicsScene scene; bool showSudoError; - Settings settings; + Settings *settings; bool usePortrait(); };