Added saving and loading of timers
[kitchenalert] / src / timer.h
index 98d50a5..ff2c22b 100644 (file)
@@ -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 2011-02-10
-  @version 0.2.0
+  @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 */