Index: sources/ApplicationPost.h =================================================================== diff -u -r7c86f3854db9ad02d95681203198d75a0d65c9fa -rc73feffa73c7fe073a7a7581144f5806dfc91beb --- sources/ApplicationPost.h (.../ApplicationPost.h) (revision 7c86f3854db9ad02d95681203198d75a0d65c9fa) +++ sources/ApplicationPost.h (.../ApplicationPost.h) (revision c73feffa73c7fe073a7a7581144f5806dfc91beb) @@ -70,6 +70,18 @@ const QString _postmsg_shasum = "App shasum" ; // POSTMSG_SHASUM="App shasum" const QString _postmsg_cloudsync = "CloudSync" ; // POSTMSG_CLOUDSYNC="CloudSync" + const quint8 _macAddrssLen = 17 ; // ff:ff:ff:ff:ff:ff + const quint8 _macAppearLen = 200 ; // the mac address shall be found within the next 200 characters. + const QString _devEthernet = "eth0:" ; + const QString _devWireless = "wlan0:" ; + const QString _devBluetooth = "hci0:" ; + const QString _macEthernetLabel = "link/ether " ; // the last space is important + const QString _macWirelessLabel = "link/ether " ; // the last space is important + const QString _macBluetoothLabel = "BD Address: "; // the last space is important + QString _macEthernet = "" ; + QString _macWireless = "" ; + QString _macBluetooth = "" ; + const int _yearMinimum = 2022 ; // The year to check for minimum // tests // Severity @@ -101,20 +113,24 @@ bool checkYear (); public: - bool isShaSum () { return _isShaSum ; } - bool isCANBus () { return _isCANBus ; } - bool isDisplay () { return _isDisplay ; } - bool isTouch () { return _isTouch ; } - bool isSDCard () { return _isSDCard ; } - bool isRtc () { return _isRtc ; } - bool isWiFi () { return _isWiFi ; } - bool isBluetooth () { return _isBluetooth ; } - bool isCloudSync () { return _isCloudSync ; } - bool isEthernet () { return _isEthernet ; } - bool isSound () { return _isSound ; } - bool isYearCheck () { return _isYearCheck ; } - bool isDone () { return _isDone ; } + bool isShaSum () const { return _isShaSum ; } + bool isCANBus () const { return _isCANBus ; } + bool isDisplay () const { return _isDisplay ; } + bool isTouch () const { return _isTouch ; } + bool isSDCard () const { return _isSDCard ; } + bool isRtc () const { return _isRtc ; } + bool isWiFi () const { return _isWiFi ; } + bool isBluetooth () const { return _isBluetooth ; } + bool isCloudSync () const { return _isCloudSync ; } + bool isEthernet () const { return _isEthernet ; } + bool isSound () const { return _isSound ; } + bool isYearCheck () const { return _isYearCheck ; } + bool isDone () const { return _isDone ; } + QString macEthernet () const { return _macEthernet ; } + QString macWireless () const { return _macWireless ; } + QString macBluetooth () const { return _macBluetooth ; } + public: explicit ApplicationPost(QObject *parent = nullptr); void start();