X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fcurrentalertstablemodel.h;h=52f3f5c47c95c472a3bb3405486db23da87ab088;hb=7fc4c44cca1259b70545aab60cead8cd3ff884ff;hp=32cadc3cb27f55efc6b4a4709c760262312c2051;hpb=d703fb607c0291912211a5d43cdd04b60b6e87c6;p=kitchenalert diff --git a/src/currentalertstablemodel.h b/src/currentalertstablemodel.h index 32cadc3..52f3f5c 100644 --- a/src/currentalertstablemodel.h +++ b/src/currentalertstablemodel.h @@ -28,14 +28,15 @@ #define CURRENTALERTSTABLEMODEL_H #include +#include #include "timer.h" /*! Class that contains the model that holds the timers' @author Heli Hyvättinen - @date 2010-06-26 - @version 0.09 + @date 2010-08-08 + @version 0.1.1 Class that contains the model that holds the timers @@ -54,8 +55,14 @@ public: QVariant data(const QModelIndex &index, int role) const; + QVariant headerData(int section, Qt::Orientation orientation, int role) const; + QModelIndex giveIndexForTimer(Timer * ptimer); + bool isThisTimerAlerting(QModelIndex index); + + bool saveTimer(QModelIndex index,QString filename); + signals: public slots: @@ -68,6 +75,11 @@ public slots: void snoozeTimer(QModelIndex index); void stopTimer(QModelIndex index); + + void setUpdateViewOnChanges(bool update); + + void removeTimer(QModelIndex index); + private: QList currentTimers_; @@ -76,6 +88,10 @@ private: static const int timeRemainingColumnNumber_ = 1; static const int statusColumnNumber_ = 2; + + + bool updateViewOnChanges_; + }; #endif // CURRENTALERTSTABLEMODEL_H