source: src-qt4/pc-netmanager/src/wificonfig/wificonfigwidgetbase.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@…>, 18 months ago
  • Initial merge of code from PC-BSD SVN repo for my private (pre-release) hacking
  • Property mode set to 100644
File size: 3.4 KB
Line 
1#ifndef WIFICONFIGWIDGETBASE_H
2#define WIFICONFIGWIDGETBASE_H
3
4#include <qfile.h>
5#include <qmessagebox.h>
6#include <qdialog.h>
7#include <qwidget.h>
8#include <pcbsd-netif.h>
9#include <pcbsd-utils.h>
10#include "wifiselectiondialog.h"
11#include "wepconfig.h"
12#include "dialogwpapersonal.h"
13#include "ui_wificonfigwidgetbase.h"
14#include <QProcess>
15
16
17// Setup our encryption type defines
18#define NO_ENCRYPTION 0
19#define WEP_ENCRYPTION 1
20#define WPA_ENCRYPTION 2
21#define WPAE_ENCRYPTION 3
22
23#define KEYWPAEAP 0
24#define KEY8021X 1
25
26class wificonfigwidgetbase : public QWidget, private Ui::wificonfigwidgetbase
27{
28        Q_OBJECT
29
30public:
31        wificonfigwidgetbase() : QWidget()
32        {
33          setupUi(this);
34          WPAONLY=false;
35        }
36
37    void setDevice( QString Device );
38    void showInfo();
39    // Are we just editing WPA supplicant?
40    void setModeWPAOnly();
41
42
43public slots:
44
45private slots:
46    void slotClose();
47    void slotApply();
48    void slotCheckDHCPBox();
49    void slotAddHiddenProfile();
50    void slotAddNewProfile();
51    void slotEditProfile();
52    void slotRemoveProfile();
53    void slotRemoveProfileSSID(QString RemoveSSID);
54    void slotAddNewProfileSSID(QString ssidc);
55    void slotAddNewProfileOpen( QString SSID, bool isBSSID );
56    void slotAddNewProfileWEP( QString SSID, bool isBSSID, QString newKey, int newIndex, bool hexkey );
57    void slotAddNewProfileWPA( QString SSID, bool isBSSID, QString newKey );
58    void slotAddNewProfileWPAE( QString SSID, bool isBSSID, int type, QString EAPIdent, QString CACert, QString ClientCert, QString PrivKeyFile, QString PrivKeyPass, int keyMgmt );
59    void slotCheckDisabled();
60    void slotOK();
61    void slotMACClicked();
62    void loadInfo();
63    void slotFinishLoading();
64    void slotCheckGlobalText();
65    void slotRefreshSSIDList();
66    void slotMoveUp();
67    void slotMoveDown();
68    void slotRescan();
69    void slotWEPSave(QString newkey, int newIndex, bool hexkey );
70    void slotWPAPSave(QString newkey);
71
72private:
73    QString getLineFromCommandOutput( QString command );
74    QString getNetmaskForIdent( QString ident );
75    QString getOutErrorsForIdent( QString ident );
76    QString getOutPacketsForIdent( QString ident );
77    QString getInErrorsForIdent( QString ident );
78    QString getInPacketsForIdent( QString ident );
79    QString getStatusForIdent( QString ident );
80    QString getMacForIdent( QString ident );
81    QString getIpForIdent( QString ident );
82    QString getNameForIdent( QString ident );
83    QString getIPv6ForIdent( QString ident );
84    QString getGatewayForIdent( QString ident );
85    QString getMediaForIdent( QString ident );
86    QString getWifiParent( QString dev );
87    void loadCountryCodes();
88    void runCommand( QString Command );
89    void updateWPASupp();
90    QString DeviceName;
91    QString Country;
92   
93    dialogWPAPersonal *dialogWPA;
94    wepConfig *dialogWEP;
95    wifiselectiondialog *wifiselect;
96    QProcess *netifProc;
97
98    // Lets define our arrays for the SSID profiles
99    QString SSIDList[150];
100    int SSIDEncType[150];
101    bool BSSID[150];
102    QString WEPKey[150];
103    int WEPIndex[150];
104    bool WEPHex[150];
105    QString WPAPersonalKey[150];
106    QString WPAEIdent[150];
107    QString WPAECACert[150];
108    QString WPAEClientCert[150];
109    QString WPAEPrivKeyFile[150];
110    QString WPAEPassword[150];
111    int WPAEKeyMgmt[150];
112    int WPAEType[150];
113    bool usingLagg;
114    bool WPAONLY;
115
116signals:
117
118} ;
119#endif // WIFICONFIGWIDGETBASE_H
120
Note: See TracBrowser for help on using the repository browser.