Added saving and loading of timers
[kitchenalert] / src / currentalertstablemodel.h
index 8f4622a..b20ead1 100755 (executable)
@@ -35,7 +35,7 @@
 /*! Class that contains the model that holds the timers'
 
   @author Heli Hyvättinen
-  @date 2011-03-29
+  @date 2011-04-05
   @version 0.2.1
 
 Class that contains the model that holds the timers
@@ -86,6 +86,13 @@ public:
     bool isThisTimerAlerting(QModelIndex index);
 
 
+    /*! Saves a timer to a file
+      @param index The index of the timer to be saved. Any cell from the row of the timer is good here.
+      @param filename The name of the file to which the timer is to be saved
+    */
+    bool saveTimer(QModelIndex index,QString filename);
+
+
 signals:
 
 public slots: