Index: sources/ApplicationPost.h =================================================================== diff -u -re1c454bcf26e1f4dd9aaffe05daeca138eb743b3 -r6c6f1f5d466badd9b4fd67be7c907234c342b2a2 --- sources/ApplicationPost.h (.../ApplicationPost.h) (revision e1c454bcf26e1f4dd9aaffe05daeca138eb743b3) +++ sources/ApplicationPost.h (.../ApplicationPost.h) (revision 6c6f1f5d466badd9b4fd67be7c907234c342b2a2) @@ -6,8 +6,8 @@ * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. * * \file ApplicationPost.h - * \author (last) Behrouz NematiPour - * \date (last) 24-Aug-2022 + * \author (last) Vy + * \date (last) 13-Apr-2023 * \author (original) Behrouz NematiPour * \date (original) 26-Aug-2020 * @@ -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();