2 * wpa_gui - Peers class
3 * Copyright (c) 2009, Atheros Communications
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.
9 * Alternatively, this software may be distributed under the terms of BSD
12 * See README and COPYING for more details.
19 #include <QStandardItemModel>
25 class Peers
: public QDialog
, public Ui::Peers
30 Peers(QWidget
*parent
= 0, const char *name
= 0,
31 bool modal
= false, Qt::WFlags fl
= 0);
33 void setWpaGui(WpaGui
*_wpagui
);
34 void event_notify(WpaMsg msg
);
37 virtual void context_menu(const QPoint
&pos
);
38 virtual void enter_pin();
39 virtual void connect_pbc();
40 virtual void learn_ap_config();
41 virtual void ctx_refresh();
42 virtual void properties();
45 virtual void languageChange();
46 virtual void closeEvent(QCloseEvent
*event
);
49 void add_station(QString info
);
51 void add_single_station(const char *addr
);
52 bool add_bss(const char *cmd
);
53 void remove_bss(int id
);
54 void add_scan_results();
56 QStandardItem
* find_addr(QString addr
);
57 QStandardItem
* find_uuid(QString uuid
);
59 void remove_enrollee_uuid(QString uuid
);
60 QString
ItemType(int type
);
63 QStandardItemModel model
;
67 QStandardItem
*ctx_item
;