Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef STATIONITEM_H
00027 #define STATIONITEM_H
00028
00029 #include <QtGui>
00030
00031 class Station;
00032
00033 class StationItem : public QAbstractTableModel
00034 {
00035 Q_OBJECT
00036 public:
00037 StationItem(QObject * parent=0);
00038 ~StationItem();
00039
00040 void setStations(QList<Station *> * stations);
00041
00042 virtual int rowCount(const QModelIndex& parent) const;
00043 virtual int columnCount(const QModelIndex& parent) const;
00044 virtual QVariant data(const QModelIndex & index, int role) const;
00045 virtual QVariant headerData(int section, Qt::Orientation orientation, int role) const;
00046 Qt::ItemFlags flags(const QModelIndex& index) const;
00047 private slots:
00048 void stationChanged(int stationIndex);
00049 private:
00050 QList<Station *> * _stations;
00051 QSet<int> _toUpdate;
00052 QTime _lastUpdate;
00053 };
00054
00055 #endif // STATIONITEM_H