]>
git.ipfire.org Git - thirdparty/hostap.git/blob - wpa_supplicant/wpa_gui-qt4/eventhistory.h
2 * wpa_gui - EventHistory class
3 * Copyright (c) 2005-2006, Jouni Malinen <j@w1.fi>
5 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
10 #define EVENTHISTORY_H
13 #include "ui_eventhistory.h"
16 class EventListModel
: public QAbstractTableModel
21 EventListModel(QObject
*parent
= 0)
22 : QAbstractTableModel(parent
) {}
24 int rowCount(const QModelIndex
&parent
= QModelIndex()) const;
25 int columnCount(const QModelIndex
&parent
= QModelIndex()) const;
26 QVariant
data(const QModelIndex
&index
, int role
) const;
27 QVariant
headerData(int section
, Qt::Orientation orientation
,
28 int role
= Qt::DisplayRole
) const;
29 void addEvent(QString time
, QString msg
);
37 class EventHistory
: public QDialog
, public Ui::EventHistory
42 EventHistory(QWidget
*parent
= 0, const char *name
= 0,
43 bool modal
= false, Qt::WFlags fl
= 0);
47 virtual void addEvents(WpaMsgList msgs
);
48 virtual void addEvent(WpaMsg msg
);
51 virtual void languageChange();
57 #endif /* EVENTHISTORY_H */