eventhistory.h
Go to the documentation of this file.
00001 /*
00002  * wpa_gui - EventHistory class
00003  * Copyright (c) 2005-2006, Jouni Malinen <j@w1.fi>
00004  *
00005  * This program is free software; you can redistribute it and/or modify
00006  * it under the terms of the GNU General Public License version 2 as
00007  * published by the Free Software Foundation.
00008  *
00009  * Alternatively, this software may be distributed under the terms of BSD
00010  * license.
00011  *
00012  * See README and COPYING for more details.
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 /* EVENTHISTORY_H */


wpa_supplicant_node
Author(s): Package maintained by Blaise Gassend
autogenerated on Thu Jan 2 2014 11:25:14