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

« back to all changes in this revision

Viewing changes to wpa_gui-qt4/networkconfig.h

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2007-08-26 16:06:57 UTC
  • mto: This revision was merged to the branch mainline in revision 26.
  • Revision ID: james.westby@ubuntu.com-20070826160657-mxk5ivjjh65ptxlr
Tags: upstream-0.6.0+0.5.8
ImportĀ upstreamĀ versionĀ 0.6.0+0.5.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * wpa_gui - NetworkConfig 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 NETWORKCONFIG_H
 
16
#define NETWORKCONFIG_H
 
17
 
 
18
#include <QObject>
 
19
#include "ui_networkconfig.h"
 
20
 
 
21
class WpaGui;
 
22
 
 
23
class NetworkConfig : public QDialog, public Ui::NetworkConfig
 
24
{
 
25
        Q_OBJECT
 
26
 
 
27
public:
 
28
        NetworkConfig(QWidget *parent = 0, const char *name = 0,
 
29
                      bool modal = false, Qt::WFlags fl = 0);
 
30
        ~NetworkConfig();
 
31
 
 
32
        virtual void paramsFromScanResults(Q3ListViewItem *sel);
 
33
        virtual void setWpaGui(WpaGui *_wpagui);
 
34
        virtual int setNetworkParam(int id, const char *field,
 
35
                                    const char *value, bool quote);
 
36
        virtual void paramsFromConfig(int network_id);
 
37
        virtual void newNetwork();
 
38
 
 
39
public slots:
 
40
        virtual void authChanged(int sel);
 
41
        virtual void addNetwork();
 
42
        virtual void encrChanged(const QString &sel);
 
43
        virtual void writeWepKey(int network_id, QLineEdit *edit, int id);
 
44
        virtual void removeNetwork();
 
45
 
 
46
protected slots:
 
47
        virtual void languageChange();
 
48
 
 
49
private:
 
50
        WpaGui *wpagui;
 
51
        int edit_network_id;
 
52
        bool new_network;
 
53
 
 
54
        virtual void wepEnabled(bool enabled);
 
55
        virtual void getEapCapa();
 
56
};
 
57
 
 
58
#endif /* NETWORKCONFIG_H */