wpa_gui-qt4: Add a new window for showing peer information
[libeap.git] / wpa_supplicant / wpa_gui-qt4 / peers.h
1 /*
2  * wpa_gui - Peers class
3  * Copyright (c) 2009, Atheros Communications
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License version 2 as
7  * published by the Free Software Foundation.
8  *
9  * Alternatively, this software may be distributed under the terms of BSD
10  * license.
11  *
12  * See README and COPYING for more details.
13  */
14
15 #ifndef PEERS_H
16 #define PEERS_H
17
18 #include <QObject>
19 #include <QStandardItemModel>
20 #include "ui_peers.h"
21
22 class WpaGui;
23
24 class Peers : public QDialog, public Ui::Peers
25 {
26         Q_OBJECT
27
28 public:
29         Peers(QWidget *parent = 0, const char *name = 0,
30                     bool modal = false, Qt::WFlags fl = 0);
31         ~Peers();
32         void setWpaGui(WpaGui *_wpagui);
33
34 public slots:
35         virtual void clicked(const QModelIndex &index);
36
37 protected slots:
38         virtual void languageChange();
39
40 private:
41         void update_peers();
42
43         WpaGui *wpagui;
44         QStandardItemModel model;
45         QIcon *default_icon;
46 };
47
48 #endif /* PEERS_H */