source: src-qt4/pc-netmanager/src/wificonfig/wifiselectiondialog.h @ 0cfe72f

9.1-release9.2-releasereleng/10.0releng/10.0.1
Last change on this file since 0cfe72f was 0cfe72f, checked in by Kris Moore <kris@…>, 13 months ago

Add all the changes for related using of split pcbsd-utils libs

  • 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#include "pcbsd-ui.h"
13
14class wifiselectiondialog : public QDialog, private Ui::wifiselectiondialog
15{
16        Q_OBJECT
17
18public:
19        wifiselectiondialog() : QDialog()
20        {
21          setupUi(this);
22        }
23
24   void init(QString device);
25   void scanWifi();
26   void initEdit(QString selectedSSID, bool usingBSSID);
27   void initEdit(QString selectedSSID, bool usingBSSID, QString editWEPKey, int editWEPIndex, bool editWEPHex);
28   void initEdit(QString selectedSSID, bool usingBSSID, QString editWPAPersonalKey);
29   void initEdit(QString selectedSSID, bool usingBSSID, int editWPAEType, QString editWPAEIdent, QString editWPAECACert, QString editWPAEClientCert, QString editWPAEPrivKeyFile, QString editWPAEPassword, int keyMgmt);
30   void setWPAOnly(bool);
31
32
33public slots:
34
35private slots:
36    void slotCancel();
37    void slotConnect();
38    void slotOpenWifiScan();
39    void slotSSIDChanged(QString newSSID);
40    void slotConfigWEP();
41    void slotWEPChanged( QString newKey, int newIndex, bool hexkey );
42    void slotCheckSecurityRadio();
43    void slotCheckWhichSecurity();
44    void slotConfigWPAP();
45    void slotConfigWPAE();
46    void slotWPAPChanged( QString newKey );
47    void slotWPAEChanged( int type, QString EAPIdent, QString CACert, QString ClientCert, QString PrivKeyFile, QString PrivKeyPass, int keyMgmt );
48
49private:
50    QString DeviceName;
51    QString SSID;
52    QString EditingSSID;
53
54    // Setup our dialogs
55    wifiscanssid *dialogWifiscanssid;
56    wepConfig *dialogWEP;
57    dialogWPAPersonal *dialogWPAP;
58    dialogWPAE *libWPAE;
59
60    // WEP variables
61    QString WEPKey;
62    int WEPIndex;
63    bool WEPHex;
64
65    // WPA Personal Key variable
66    QString WPAPersonalKey;
67
68    // WPAE Variables
69    int WPAEType;
70    QString WPAEIdent;
71    QString WPAECACert;
72    QString WPAEClientCert;
73    QString WPAEPrivKeyFile;
74    QString WPAEPassword;
75    int WPAEKeyMgmt;
76
77signals:
78   void signalDeleteSSID(QString);
79   void signalSavedOpen(QString, bool);
80   void signalSavedWEP(QString, bool, QString, int, bool );
81   void signalSavedWPA(QString, bool, QString);
82   void signalSavedWPAE(QString, bool, int, QString, QString, QString, QString, QString, int);
83
84} ;
85#endif // WIFISELECTIONDIALOG_H
86
Note: See TracBrowser for help on using the repository browser.