#define CURRENTALERTSTABLEMODEL_H
#include <QAbstractTableModel>
+#include <QMainWindow>
#include "timer.h"
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:
void snoozeTimer(QModelIndex index);
void stopTimer(QModelIndex index);
+
+ void setUpdateViewOnChanges(bool update);
+
private:
QList <Timer * > currentTimers_;
static const int timeRemainingColumnNumber_ = 1;
static const int statusColumnNumber_ = 2;
+
+
+ bool updateViewOnChanges_;
+
};
#endif // CURRENTALERTSTABLEMODEL_H