X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fcurrentalertstablemodel.h;h=8f4622a541c3446910807c122d8d73491b8bb397;hb=c4037ede3790b9ec97001d9c9202cec1003f18e1;hp=8bf341a833da11433005cbcc051eee583bace194;hpb=5342eb76d3508d70aadc1b2299d15e8234856561;p=kitchenalert diff --git a/src/currentalertstablemodel.h b/src/currentalertstablemodel.h old mode 100644 new mode 100755 index 8bf341a..8f4622a --- a/src/currentalertstablemodel.h +++ b/src/currentalertstablemodel.h @@ -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 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 currentTimers_; /*! Holds the timers */