Index: sources/ApplicationController.cpp =================================================================== diff -u -re4a0e2fc4c7ae0cbce0d670772276bf7f5ff3845 -raa8f2c87c14c68d1fda6da2540d47144990a596c --- sources/ApplicationController.cpp (.../ApplicationController.cpp) (revision e4a0e2fc4c7ae0cbce0d670772276bf7f5ff3845) +++ sources/ApplicationController.cpp (.../ApplicationController.cpp) (revision aa8f2c87c14c68d1fda6da2540d47144990a596c) @@ -90,10 +90,10 @@ void ApplicationController::initConnections() { - connect(&_post , SIGNAL(didWiFi ()), - &_WifiInterface , SLOT( doStart ())); - connect(&_post , SIGNAL( didBluetooth()), - this , SLOT(onPOSTBluetooth())); + connect(&_post , SIGNAL( didWiFi (bool)), + this , SLOT(onPOSTWiFi (bool))); + connect(&_post , SIGNAL( didBluetooth(bool)), + this , SLOT(onPOSTBluetooth(bool))); connect(&_post , SIGNAL( didFail (Gui::GuiAlarmID )), this , SLOT(onPOSTFail (Gui::GuiAlarmID ))); @@ -503,13 +503,29 @@ onActionReceive(SettingsData()); } + /*! + * \brief ApplicationController::onPOSTWiFi + * \details Starts the WiFi Interface + */ +void ApplicationController::onPOSTWiFi(bool vPass) { + if (vPass) { + _WifiInterface.doStart(); + } +} + +/*! * \brief ApplicationController::onPOSTBluetooth * \details Starts the Bluetooth Interface */ -void ApplicationController::onPOSTBluetooth() { - _BluetoothInterface.valid(true); - _BluetoothInterface.doStart(); +void ApplicationController::onPOSTBluetooth(bool vPass) { + if (vPass) { + _BluetoothInterface.valid(true); + _BluetoothInterface.doStart(); + } + else { + _BluetoothInterface.doNotifyStatePOSTError(); + } } @@ -530,9 +546,7 @@ AdjustUIPostFinalResultRequestData data; data.mResult = vPass; emit didAdjustment(data); - QString message = "ApplicationPost Done :" + QTime::currentTime().toString("HH:mm:ss.zzz"); - qDebug() << message; - LOG_DEBUG(message); + LOG_DEBUG("ApplicationPost Done :" + QTime::currentTime().toString("HH:mm:ss.zzz")); } /*!