Index: sources/device/DeviceController.h =================================================================== diff -u -ra2a273600d25e863214833ead3324a63fb4759f1 -r6e18f1d24b8cc3d84d26f46f36f73deb34e54371 --- sources/device/DeviceController.h (.../DeviceController.h) (revision a2a273600d25e863214833ead3324a63fb4759f1) +++ sources/device/DeviceController.h (.../DeviceController.h) (revision 6e18f1d24b8cc3d84d26f46f36f73deb34e54371) @@ -205,6 +205,7 @@ const int _pendingInterval = 60 ; // 1m int _pendingCounter = 0 ; // QString _pendingLog = ""; + QString _interface = "wlan0"; const qint8 _minRequiredAvailableSpacePercent = 10; @@ -221,6 +222,7 @@ bool _hasThread = false; bool _hasSalt = false; + bool _wifiAvailable = false; //TODO: all of these should use the TimesProcess (instead of QProcess) // to be able to kill the process automatically after the set time out. @@ -283,6 +285,9 @@ void findPendingLogs(); + void checkWiFi(); + void checkWifiConnectionReady(); + bool logBackup(const QString &vFileName); bool logUpload(const QString &vFileName); @@ -368,7 +373,6 @@ void didSettingsPartitionStateChange(bool vIsReady, bool vIsReadOnly); void didActionReceive( const DeviceBrightnessResponseData &vBrightness ); - void didActionReceive( const DeviceRootSSHAccessResponseData &vRootSSHAccess); void didWatchFileChange(const QString &vFile); @@ -431,6 +435,15 @@ */ void didLogUpload ( bool vPass, const QString &vFileName ); + /*! + * \brief didWiFiIP + * \details notifies UI when WiFi netowrk data has changed + * \param vData - WiFi data to display on UI + * \param vWifiError - Let UI know the message cominmg is a error not IP + + */ + void didWiFiIP ( const QString &vData, bool vWifiError); + private: // ----- USB void usbCheck (); @@ -449,6 +462,18 @@ void wifiInfoRequest(); void wifiConnectRequest(const DeviceWifiConnectRequestData &vData); + // ----- Factory Reset + void factoryResetRequest(); + + // ----- Decommission + void decommissionRequest(const DeviceDecommissionRequestData &vData); + + // ----- RootSSHAccess + void rootSSHAccessRequest(const DeviceRootSSHAccessRequestData &vData); + + // ----- DateTime + void dateTimeRequest(const DeviceDateTimeRequestData &vData); + SAFE_CALL_EX2(doAddWatch, const QString &, bool) }; }