X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fkitchenalertmainwindow.h;h=9511c40d482e549c2fd574959f7e38025308f356;hb=d6ebfc1ae1c6c753f39a44478dbf2ad2087a3883;hp=1ec39747f366e15a95c3fc46ddb2841a00de931d;hpb=1b7058d42a0dd918569cc049ec174da5dd6b65fe;p=kitchenalert diff --git a/src/kitchenalertmainwindow.h b/src/kitchenalertmainwindow.h index 1ec3974..9511c40 100644 --- a/src/kitchenalertmainwindow.h +++ b/src/kitchenalertmainwindow.h @@ -40,7 +40,7 @@ namespace Ui { /*! The main window class of KitchenAlert' @author Heli Hyvättinen - @date 2011-04-26 + @date 2011-01-05 @version 0.3.0 Operates the UI. @@ -123,6 +123,11 @@ public slots: */ void loadTimer(); + /*! Opens a dialog for choosing which timers to preload at start */ + void openStickyDialog(); + + /*! Loads the sticky timers. */ + bool loadStickies(); signals: @@ -144,13 +149,17 @@ protected: */ void disableSelectionDependentButtons(); + + + + private: Ui::KitchenAlertMainWindow *ui; CurrentAlertsTableModel model_; /*! The model that stores the alerts */ - QString defaultSaveDirectory_; + QString defaultSaveDirectory_; /*! Returns a QMoldelIndex pointing to the cell in the column 0 of the row that is currently selected. @@ -163,9 +172,10 @@ private: */ void initializeAlertSound(); - void initializeTimer(Timer * p_timer); - + void initializeTimer(Timer * p_timer, bool startImmediately = true); + //Adds the timer to the model and optionally starts it on success, gives an error message on failure + bool loadTimer(QString filename, bool startImmediately); }; #endif // KITCHENALERTMAINWINDOW_H