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

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

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

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