X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fkitchenalertmainwindow.h;h=1ec39747f366e15a95c3fc46ddb2841a00de931d;hb=1b7058d42a0dd918569cc049ec174da5dd6b65fe;hp=cfe7938779c4197e6be7a1f3b6b66ac5f7ebda14;hpb=2c155c29c90230a4420dd380a9e027d0d537f1c3;p=kitchenalert diff --git a/src/kitchenalertmainwindow.h b/src/kitchenalertmainwindow.h index cfe7938..1ec3974 100644 --- a/src/kitchenalertmainwindow.h +++ b/src/kitchenalertmainwindow.h @@ -1,7 +1,7 @@ /************************************************************************** KitchenAlert - Copyright (C) 2010 Heli Hyvättinen + Copyright (C) 2010-2011 Heli Hyvättinen This file is part of KitchenAlert. @@ -40,8 +40,8 @@ namespace Ui { /*! The main window class of KitchenAlert' @author Heli Hyvättinen - @date 2011-02-10 - @version 0.2.0 + @date 2011-04-26 + @version 0.3.0 Operates the UI. @@ -52,8 +52,6 @@ class KitchenAlertMainWindow : public QMainWindow Q_OBJECT - - public: explicit KitchenAlertMainWindow(QWidget *parent = 0); ~KitchenAlertMainWindow(); @@ -117,6 +115,15 @@ public slots: */ void remove(); + /*! Opens a dialog for saving the selected timer and, if confirmed, saves the timer to a file. + */ + void saveTimer(); + + /*! Opens a dialog for reading a timer from a timer file, and if confirmed opens and starts the timer. + */ + void loadTimer(); + + signals: void defaultSoundEnabled(); @@ -143,6 +150,8 @@ private: CurrentAlertsTableModel model_; /*! The model that stores the alerts */ + QString defaultSaveDirectory_; + /*! Returns a QMoldelIndex pointing to the cell in the column 0 of the row that is currently selected. */ @@ -154,6 +163,8 @@ private: */ void initializeAlertSound(); + void initializeTimer(Timer * p_timer); + };