X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Ftimer.h;h=0b136563a9833fcd0bea0c8fbc19a470288aa542;hb=a06334fdc173e26d116b5625aa50b1236d119dfe;hp=cbfac47319a0dcbddec8a1814bd8d1fd0e9b5dff;hpb=683d958489cb5181a1a8c5a348191aaeed03981b;p=kitchenalert diff --git a/src/timer.h b/src/timer.h index cbfac47..0b13656 100644 --- a/src/timer.h +++ b/src/timer.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. @@ -39,8 +39,8 @@ /*! The timer class of KitchenAlert' @author Heli Hyvättinen - @date 2010-09-08 - @version 0.1.1 + @date 2011-04-05 + @version 0.2.1 The timer class of KitchenAlert. @@ -72,6 +72,16 @@ public: /*! Returns whether the timer is alerting */ bool isAlerting(); + /*! Saves the timer to a file + @param filename The file to which to save. + */ + bool save(QString filename); + + /*! Loads a timer from a file + @param filename The file from which to load. + */ + bool load(QString filename); + signals: /*! Emitted when the remaining time in the timer has changed */ @@ -111,10 +121,14 @@ private: QTimer _actualTimer; bool alerting_; + QString filenameWithPath_; /*! Name (with full path) of the file where the timer was loaded from. Empty if timer not loaded from file. */ + QModelIndex whereAmI(); AlertSound alertSound_; + + }; #endif // TIMER_H