X-Git-Url: http://git.maemo.org/git/?p=kitchenalert;a=blobdiff_plain;f=src%2Fcurrentalertstablemodel.h;h=9751671556a07238678ba9d5abba80d9fbc10808;hp=32cadc3cb27f55efc6b4a4709c760262312c2051;hb=55e83dd6677893a7d2ed9de67c675fd9b45a68bc;hpb=d703fb607c0291912211a5d43cdd04b60b6e87c6 diff --git a/src/currentalertstablemodel.h b/src/currentalertstablemodel.h index 32cadc3..9751671 100644 --- a/src/currentalertstablemodel.h +++ b/src/currentalertstablemodel.h @@ -28,6 +28,7 @@ #define CURRENTALERTSTABLEMODEL_H #include +#include #include "timer.h" @@ -54,8 +55,12 @@ 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); + signals: public slots: @@ -68,6 +73,9 @@ public slots: void snoozeTimer(QModelIndex index); void stopTimer(QModelIndex index); + + void setUpdateViewOnChanges(bool update); + private: QList currentTimers_; @@ -76,6 +84,10 @@ private: static const int timeRemainingColumnNumber_ = 1; static const int statusColumnNumber_ = 2; + + + bool updateViewOnChanges_; + }; #endif // CURRENTALERTSTABLEMODEL_H