Version 0.2.1
[kitchenalert] / src / currentalertstablemodel.h
old mode 100644 (file)
new mode 100755 (executable)
index 8bf341a..8f4622a
@@ -35,8 +35,8 @@
 /*! Class that contains the model that holds the timers'
 
   @author Heli Hyvättinen
-  @date 2010-09-08
-  @version 0.1.1
+  @date 2011-03-29
+  @version 0.2.1
 
 Class that contains the model that holds the timers
 
@@ -85,6 +85,7 @@ public:
       */
     bool isThisTimerAlerting(QModelIndex index);
 
+
 signals:
 
 public slots:
@@ -97,9 +98,11 @@ public slots:
     void addTimers(QList <Timer *> timers, bool startImmediately = true);
 
     /*!
-     Tells the view to refresh all information in the time column.
+     Tells the view to refresh all information in the time and status columns.
+     (The time and status change without user inervention unlike the alert text and thus
+     need to be refreshed.)
       */
-    void refreshTimeColumn ();
+    void refreshTimeAndStatusColumns ();
 
     /*!
       Passes the start command to the timer in the given index.
@@ -125,6 +128,14 @@ Sets whether the view should be kept up to date.
 */
     void setUpdateViewOnChanges(bool update);
 
+/*!
+  Removes a timer from the model
+  */
+
+    void removeTimer(QModelIndex index);
+
+
+
 private:
     QList <Timer * > currentTimers_; /*! Holds the timers */