~ubuntu-branches/ubuntu/gutsy/wpasupplicant/gutsy

« back to all changes in this revision

Viewing changes to wpa_supplicant/wpa_gui-qt4/wpagui.h

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler, Alexander Sack
  • Date: 2007-08-26 16:06:57 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20070826160657-2m8pxoweuxe8f93t
Tags: 0.6.0+0.5.8-0ubuntu1
* New upstream release
* remove patch 11_erroneous_manpage_ref, applied upstream
* remove patch 25_wpas_dbus_unregister_iface_fix, applied upstream

[ Alexander Sack ]
* bumping upstream version to replace development version 0.6.0 with
  this package from stable release branch.
* attempt to fix wierd timeout and high latency issues by going
  back to stable upstream version (0.5.9) (LP: #140763,
  LP: #141233).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * wpa_gui - WpaGui class
3
 
 * Copyright (c) 2005-2006, 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 WPAGUI_H
16
 
#define WPAGUI_H
17
 
 
18
 
#include <QObject>
19
 
#include "ui_wpagui.h"
20
 
 
21
 
class UserDataRequest;
22
 
 
23
 
 
24
 
class WpaGui : public QMainWindow, public Ui::WpaGui
25
 
{
26
 
        Q_OBJECT
27
 
 
28
 
public:
29
 
        WpaGui(QWidget *parent = 0, const char *name = 0,
30
 
               Qt::WFlags fl = Qt::WType_TopLevel);
31
 
        ~WpaGui();
32
 
 
33
 
        virtual int ctrlRequest(const char *cmd, char *buf, size_t *buflen);
34
 
        virtual void triggerUpdate();
35
 
 
36
 
public slots:
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();
44
 
        virtual void scan();
45
 
        virtual void eventHistory();
46
 
        virtual void ping();
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);
55
 
 
56
 
protected slots:
57
 
        virtual void languageChange();
58
 
 
59
 
private:
60
 
        ScanResults *scanres;
61
 
        bool networkMayHaveChanged;
62
 
        char *ctrl_iface;
63
 
        EventHistory *eh;
64
 
        struct wpa_ctrl *ctrl_conn;
65
 
        QSocketNotifier *msgNotifier;
66
 
        QTimer *timer;
67
 
        int pingsToStatusUpdate;
68
 
        WpaMsgList msgs;
69
 
        char *ctrl_iface_dir;
70
 
        struct wpa_ctrl *monitor_conn;
71
 
        UserDataRequest *udr;
72
 
 
73
 
        int openCtrlConnection(const char *ifname);
74
 
};
75
 
 
76
 
#endif /* WPAGUI_H */