*/
void loadTimer();
+ /*! Opens a dialog for choosing which timers to preload at start */
+ void openStickyDialog();
+
+ /*! Loads the sticky timers. */
+ bool loadStickies();
signals:
*/
void disableSelectionDependentButtons();
+
+
+
+
private:
Ui::KitchenAlertMainWindow *ui;
CurrentAlertsTableModel model_; /*! The model that stores the alerts */
- const QString defaultSaveDirectory_;
+ QString defaultSaveDirectory_;
/*!
Returns a QMoldelIndex pointing to the cell in the column 0 of the row that is currently selected.
*/
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