source: src-qt4/pc-netmanager/src/wificonfig/wifiselectiondialog.h @ 1f0939e

9.1-release9.2-releasereleng/10.0releng/10.0.1releng/10.0.2releng/10.0.3
Last change on this file since 1f0939e was 1f0939e, checked in by Kris Moore <kris@…>, 17 months ago
  • Initial merge of code from PC-BSD SVN repo for my private (pre-release) hacking
  • Property mode set to 100644
File size: 2.4 KB
Line 
1#ifndef WIFISELECTIONDIALOG_H
2#define WIFISELECTIONDIALOG_H
3
4#include <qfile.h>
5#include <qmessagebox.h>
6#include <qdialog.h>
7#include "wepconfig.h"
8#include "dialogwpapersonal.h"
9#include "wifiscanssid.h"
10#include "ui_wifiselectiondialog.h"
11#include "pcbsd-utils.h"
12
13class wifiselectiondialog : public QDialog, private Ui::wifiselectiondialog
14{
15        Q_OBJECT
16
17public:
18        wifiselectiondialog() : QDialog()
19        {
20          setupUi(this);
21        }
22
23   void init(QString device);
24   void scanWifi();
25   void initEdit(QString selectedSSID, bool usingBSSID);
26   void initEdit(QString selectedSSID, bool usingBSSID, QString editWEPKey, int editWEPIndex, bool editWEPHex);
27   void initEdit(QString selectedSSID, bool usingBSSID, QString editWPAPersonalKey);
28   void initEdit(QString selectedSSID, bool usingBSSID, int editWPAEType, QString editWPAEIdent, QString editWPAECACert, QString editWPAEClientCert, QString editWPAEPrivKeyFile, QString editWPAEPassword, int keyMgmt);
29   void setWPAOnly(bool);
30
31
32public slots:
33
34private slots:
35    void slotCancel();
36    void slotConnect();
37    void slotOpenWifiScan();
38    void slotSSIDChanged(QString newSSID);
39    void slotConfigWEP();
40    void slotWEPChanged( QString newKey, int newIndex, bool hexkey );
41    void slotCheckSecurityRadio();
42    void slotCheckWhichSecurity();
43    void slotConfigWPAP();
44    void slotConfigWPAE();
45    void slotWPAPChanged( QString newKey );
46    void slotWPAEChanged( int type, QString EAPIdent, QString CACert, QString ClientCert, QString PrivKeyFile, QString PrivKeyPass, int keyMgmt );
47
48private:
49    QString DeviceName;
50    QString SSID;
51    QString EditingSSID;
52
53    // Setup our dialogs
54    wifiscanssid *dialogWifiscanssid;
55    wepConfig *dialogWEP;
56    dialogWPAPersonal *dialogWPAP;
57    dialogWPAE *libWPAE;
58
59    // WEP variables
60    QString WEPKey;
61    int WEPIndex;
62    bool WEPHex;
63
64    // WPA Personal Key variable
65    QString WPAPersonalKey;
66
67    // WPAE Variables
68    int WPAEType;
69    QString WPAEIdent;
70    QString WPAECACert;
71    QString WPAEClientCert;
72    QString WPAEPrivKeyFile;
73    QString WPAEPassword;
74    int WPAEKeyMgmt;
75
76signals:
77   void signalDeleteSSID(QString);
78   void signalSavedOpen(QString, bool);
79   void signalSavedWEP(QString, bool, QString, int, bool );
80   void signalSavedWPA(QString, bool, QString);
81   void signalSavedWPAE(QString, bool, int, QString, QString, QString, QString, QString, int);
82
83} ;
84#endif // WIFISELECTIONDIALOG_H
85
Note: See TracBrowser for help on using the repository browser.