2
* wpa_gui - WpaGui class
3
* Copyright (c) 2005-2006, Jouni Malinen <jkmaline@cc.hut.fi>
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.
9
* Alternatively, this software may be distributed under the terms of BSD
12
* See README and COPYING for more details.
19
#include "ui_wpagui.h"
21
class UserDataRequest;
24
class WpaGui : public QMainWindow, public Ui::WpaGui
29
WpaGui(QWidget *parent = 0, const char *name = 0,
30
Qt::WFlags fl = Qt::WType_TopLevel);
33
virtual int ctrlRequest(const char *cmd, char *buf, size_t *buflen);
34
virtual void triggerUpdate();
37
virtual void parse_argv();
38
virtual void updateStatus();
39
virtual void updateNetworks();
40
virtual void helpIndex();
41
virtual void helpContents();
42
virtual void helpAbout();
43
virtual void disconnect();
45
virtual void eventHistory();
47
virtual void processMsg(char *msg);
48
virtual void processCtrlReq(const char *req);
49
virtual void receiveMsgs();
50
virtual void connectB();
51
virtual void selectNetwork(const QString &sel);
52
virtual void editNetwork();
53
virtual void addNetwork();
54
virtual void selectAdapter(const QString &sel);
57
virtual void languageChange();
61
bool networkMayHaveChanged;
64
struct wpa_ctrl *ctrl_conn;
65
QSocketNotifier *msgNotifier;
67
int pingsToStatusUpdate;
70
struct wpa_ctrl *monitor_conn;
73
int openCtrlConnection(const char *ifname);