Just backing up the current sources...
[kitchenalert] / src / currentalertstablemodel.h
index 8bf341a..d0e49d6 100644 (file)
@@ -35,7 +35,7 @@
 /*! Class that contains the model that holds the timers'
 
   @author Heli Hyvättinen
-  @date 2010-09-08
+  @date 2010-09-27
   @version 0.1.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 */