• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * wpa_gui - AddInterface class
3  * Copyright (c) 2008, Jouni Malinen <j@w1.fi>
4  *
5  * This software may be distributed under the terms of the BSD license.
6  * See README for more details.
7  */
8 
9 #ifndef ADDINTERFACE_H
10 #define ADDINTERFACE_H
11 
12 #include <QObject>
13 
14 #include <QDialog>
15 #include <QTreeWidget>
16 #include <QVBoxLayout>
17 
18 class WpaGui;
19 
20 class AddInterface : public QDialog
21 {
22 	Q_OBJECT
23 
24 public:
25 	AddInterface(WpaGui *_wpagui, QWidget *parent = 0);
26 
27 public slots:
28 	virtual void interfaceSelected(QTreeWidgetItem *sel);
29 
30 private:
31 	void addInterfaces();
32 	bool addRegistryInterface(const QString &ifname);
33 
34 	QVBoxLayout *vboxLayout;
35 	QTreeWidget *interfaceWidget;
36 	WpaGui *wpagui;
37 };
38 
39 #endif /* ADDINTERFACE_H */
40