2008-02-27 20:34:43 -05:00
|
|
|
/*
|
|
|
|
* wpa_gui - NetworkConfig class
|
|
|
|
* Copyright (c) 2005-2006, Jouni Malinen <j@w1.fi>
|
|
|
|
*
|
2012-02-11 09:46:35 -05:00
|
|
|
* This software may be distributed under the terms of the BSD license.
|
|
|
|
* See README for more details.
|
2008-02-27 20:34:43 -05:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef NETWORKCONFIG_H
|
|
|
|
#define NETWORKCONFIG_H
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
#include "ui_networkconfig.h"
|
|
|
|
|
|
|
|
class WpaGui;
|
|
|
|
|
|
|
|
class NetworkConfig : public QDialog, public Ui::NetworkConfig
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
NetworkConfig(QWidget *parent = 0, const char *name = 0,
|
2015-05-08 17:01:01 -04:00
|
|
|
bool modal = false, Qt::WindowFlags fl = 0);
|
2008-02-27 20:34:43 -05:00
|
|
|
~NetworkConfig();
|
|
|
|
|
|
|
|
virtual void paramsFromScanResults(QTreeWidgetItem *sel);
|
|
|
|
virtual void setWpaGui(WpaGui *_wpagui);
|
|
|
|
virtual int setNetworkParam(int id, const char *field,
|
|
|
|
const char *value, bool quote);
|
|
|
|
virtual void paramsFromConfig(int network_id);
|
|
|
|
virtual void newNetwork();
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
virtual void authChanged(int sel);
|
|
|
|
virtual void addNetwork();
|
|
|
|
virtual void encrChanged(const QString &sel);
|
|
|
|
virtual void writeWepKey(int network_id, QLineEdit *edit, int id);
|
|
|
|
virtual void removeNetwork();
|
2008-10-01 09:43:36 -04:00
|
|
|
virtual void eapChanged(int sel);
|
2008-12-16 16:43:08 -05:00
|
|
|
virtual void useWps();
|
2008-02-27 20:34:43 -05:00
|
|
|
|
|
|
|
protected slots:
|
|
|
|
virtual void languageChange();
|
|
|
|
|
|
|
|
private:
|
|
|
|
WpaGui *wpagui;
|
|
|
|
int edit_network_id;
|
|
|
|
bool new_network;
|
2008-12-16 16:43:08 -05:00
|
|
|
QString bssid;
|
2008-02-27 20:34:43 -05:00
|
|
|
|
|
|
|
virtual void wepEnabled(bool enabled);
|
|
|
|
virtual void getEapCapa();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* NETWORKCONFIG_H */
|