• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/wpa_supplicant-0.7.3/wpa_supplicant/wpa_gui-qt4/
1/*
2 * wpa_gui - AddInterface class
3 * Copyright (c) 2008, Jouni Malinen <j@w1.fi>
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 ADDINTERFACE_H
16#define ADDINTERFACE_H
17
18#include <QObject>
19
20#include <QtGui/QDialog>
21#include <QtGui/QTreeWidget>
22#include <QtGui/QVBoxLayout>
23
24class WpaGui;
25
26class AddInterface : public QDialog
27{
28	Q_OBJECT
29
30public:
31	AddInterface(WpaGui *_wpagui, QWidget *parent = 0);
32
33public slots:
34	virtual void interfaceSelected(QTreeWidgetItem *sel);
35
36private:
37	void addInterfaces();
38	bool addRegistryInterface(const QString &ifname);
39
40	QVBoxLayout *vboxLayout;
41	QTreeWidget *interfaceWidget;
42	WpaGui *wpagui;
43};
44
45#endif /* ADDINTERFACE_H */
46