Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef EVENTHISTORY_H
00016 #define EVENTHISTORY_H
00017
00018 #include <QObject>
00019 #include "ui_eventhistory.h"
00020
00021
00022 class EventListModel : public QAbstractTableModel
00023 {
00024 Q_OBJECT
00025
00026 public:
00027 EventListModel(QObject *parent = 0)
00028 : QAbstractTableModel(parent) {}
00029
00030 int rowCount(const QModelIndex &parent = QModelIndex()) const;
00031 int columnCount(const QModelIndex &parent = QModelIndex()) const;
00032 QVariant data(const QModelIndex &index, int role) const;
00033 QVariant headerData(int section, Qt::Orientation orientation,
00034 int role = Qt::DisplayRole) const;
00035 void addEvent(QString time, QString msg);
00036
00037 private:
00038 QStringList timeList;
00039 QStringList msgList;
00040 };
00041
00042
00043 class EventHistory : public QDialog, public Ui::EventHistory
00044 {
00045 Q_OBJECT
00046
00047 public:
00048 EventHistory(QWidget *parent = 0, const char *name = 0,
00049 bool modal = false, Qt::WFlags fl = 0);
00050 ~EventHistory();
00051
00052 public slots:
00053 virtual void addEvents(WpaMsgList msgs);
00054 virtual void addEvent(WpaMsg msg);
00055
00056 protected slots:
00057 virtual void languageChange();
00058
00059 private:
00060 EventListModel *elm;
00061 };
00062
00063 #endif