Home | History | Annotate | Download | only in wpa_gui-qt4
      1 /*
      2  * wpa_gui - AddInterface class
      3  * Copyright (c) 2008, Jouni Malinen <j (at) 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 
     24 class WpaGui;
     25 
     26 class AddInterface : public QDialog
     27 {
     28 	Q_OBJECT
     29 
     30 public:
     31 	AddInterface(WpaGui *_wpagui, QWidget *parent = 0);
     32 
     33 public slots:
     34 	virtual void interfaceSelected(QTreeWidgetItem *sel);
     35 
     36 private:
     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