Ready to be packaged
[kitchenalert] / src / currentalertstablemodel.h
index 32cadc3..9751671 100644 (file)
@@ -28,6 +28,7 @@
 #define CURRENTALERTSTABLEMODEL_H
 
 #include <QAbstractTableModel>
+#include <QMainWindow>
 #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 <Timer * > currentTimers_;
 
@@ -76,6 +84,10 @@ private:
     static const int timeRemainingColumnNumber_ = 1;
     static const int statusColumnNumber_ = 2;
 
+
+
+    bool updateViewOnChanges_;
+
 };
 
 #endif // CURRENTALERTSTABLEMODEL_H