]> git.ipfire.org Git - thirdparty/hostap.git/blob - wpa_supplicant/wpa_gui-qt4/networkconfig.h
P2P: Start group with user configured params after accepting invitation
[thirdparty/hostap.git] / wpa_supplicant / wpa_gui-qt4 / networkconfig.h
1 /*
2 * wpa_gui - NetworkConfig class
3 * Copyright (c) 2005-2006, 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 NETWORKCONFIG_H
10 #define NETWORKCONFIG_H
11
12 #include <QObject>
13 #include "ui_networkconfig.h"
14
15 class WpaGui;
16
17 class NetworkConfig : public QDialog, public Ui::NetworkConfig
18 {
19 Q_OBJECT
20
21 public:
22 NetworkConfig(QWidget *parent = 0, const char *name = 0,
23 bool modal = false, Qt::WindowFlags fl = 0);
24 ~NetworkConfig();
25
26 virtual void paramsFromScanResults(QTreeWidgetItem *sel);
27 virtual void setWpaGui(WpaGui *_wpagui);
28 virtual int setNetworkParam(int id, const char *field,
29 const char *value, bool quote);
30 virtual void paramsFromConfig(int network_id);
31 virtual void newNetwork();
32
33 public slots:
34 virtual void authChanged(int sel);
35 virtual void addNetwork();
36 virtual void encrChanged(const QString &sel);
37 virtual void writeWepKey(int network_id, QLineEdit *edit, int id);
38 virtual void removeNetwork();
39 virtual void eapChanged(int sel);
40 virtual void useWps();
41
42 protected slots:
43 virtual void languageChange();
44
45 private:
46 WpaGui *wpagui;
47 int edit_network_id;
48 bool new_network;
49 QString bssid;
50
51 virtual void wepEnabled(bool enabled);
52 virtual void getEapCapa();
53 };
54
55 #endif /* NETWORKCONFIG_H */