source: src-qt4/pc-netmanager/src/NetworkManager/networkman.h @ c9d1400

9.2-releaseenter/10releng/10.0releng/10.0.1releng/10.0.2releng/10.0.3releng/10.1releng/10.1.1releng/10.1.2
Last change on this file since c9d1400 was c9d1400, checked in by Kris Moore <kris@…>, 23 months ago

Update NetworkManager?, now it runs via single-instance and has a '-installer' mode option,
for use during the system installer

  • Property mode set to 100644
File size: 2.5 KB
Line 
1#ifndef NETMAN_H
2#define NETMAN_H
3
4#define IFCONFIG QString("/sbin/ifconfig")
5
6#include <qdialog.h>
7#include <QListWidgetItem>
8#include <QProcess>
9#include "ui_networkman.h"
10#include <pcbsd-netif.h>
11#include <pcbsd-utils.h>
12
13class NetworkMan : public QDialog, private Ui::NetworkMan
14{
15        Q_OBJECT
16
17public:
18        NetworkMan() : QDialog()
19        {
20          setupUi(this);
21        }
22
23    void setNotRoot();
24
25public slots:
26    void Init();
27    void setInstallerMode();
28
29private slots:
30    void detectDev();
31    void DevSelectionChanged();
32    void PropertiesSlot();
33    void restartNetwork();
34    void refreshDevices();
35    void slotSysTray();
36    void slotTimerRefresh();
37    void slotListRightClick( const QPoint &pos );
38    void slotDisableDevice();
39    void slotEnableDevice();
40    void slotShowInfoConfig();
41    void slotDoubleClick( QListWidgetItem * item );
42    void loadGlobals();
43    void slotSave();
44    void slotClose();
45    void slotCheckGlobalText();
46    void slotProxyUserChecked();
47    void slotPublicDNS1Clicked();
48    void slotPublicDNS2Clicked();
49    void slotIPV6DNS1Clicked();
50    void slotIPV6DNS2Clicked();
51    void slotSingleInstance();
52
53
54private:
55    bool InstallerMode;
56    QString Devs[100];
57    QString DevsParent[100];
58    QString DevsIP[100];
59    QString DevsStatus[100];
60    QString DevsMAC[100];
61    QProcess *GetDevList;
62    int workingDev;
63    QProcess *GetDevName;
64    QString DevsName[100];
65    QProcess *StartDHCP;
66    QProcess *KillDHClient;
67    QString DevsNetmask[100];
68    QString DevsType[100];
69    QProcess *ConfigDevice;
70    QProcess *ConfigSys;
71    QString username;
72    int firstUpdate;
73    QMenu *popup;
74    QString DevsUp[100];
75    bool Changed;
76    QColor colourWhite;
77    QColor colourRed;
78    int FreeBSDMajor;
79    void checkFreeBSDVer();
80    QString getLineFromCommandOutput( QString command );
81    QString getNameForIdent( QString ident );
82    QString getIpForIdent( QString ident );
83    QString getMacForIdent( QString ident );
84    QString getStatusForIdent( QString ident );
85    bool checkValue( QString File, QString Key, QString Value );
86    bool checkWifiWlans( QString Key );
87    void runCommand( QString command );
88    QString getNetmaskForIdent( QString ident );
89    QString getTypeForIdent( QString ident );
90    QString getUpStatusForIdent( QString ident );
91    QString getNextAvailWlan();
92    QString getWifiParent(QString dev);
93    void loadProxyConfig();
94    void saveProxyConfig();
95
96    QProcess *ExeProc;
97
98signals:
99        void changed(bool);
100
101} ;
102#endif // NETPROPERTIES_H
103
Note: See TracBrowser for help on using the repository browser.