Index: sources/ApplicationController.h =================================================================== diff -u -rc73feffa73c7fe073a7a7581144f5806dfc91beb -r8d5fe7d63e3d86e9d89d5f824347d34479e4e9ec --- sources/ApplicationController.h (.../ApplicationController.h) (revision c73feffa73c7fe073a7a7581144f5806dfc91beb) +++ sources/ApplicationController.h (.../ApplicationController.h) (revision 8d5fe7d63e3d86e9d89d5f824347d34479e4e9ec) @@ -7,7 +7,7 @@ * * \file ApplicationController.h * \author (last) Behrouz NematiPour - * \date (last) 19-Dec-2022 + * \date (last) 18-Jul-2023 * \author (original) Behrouz NematiPour * \date (original) 26-Aug-2020 * @@ -98,6 +98,8 @@ void onSDCardSpaceChange(bool vReady, qint64 vTotal, qint64 vAvailable, quint8 vPercent); void onSDCardSpaceTooLow(quint8 vAvailablePercent); + void onCryptSetupMount (bool vPass); + void onExportLog (const GuiStringIndexMap &vExportList); void onExportService (const GuiStringIndexMap &vExportList); void onExportTreatment (const GuiStringIndexMap &vExportList); @@ -108,18 +110,27 @@ void onSettingsUpdate(); + void onPOSTEthernet (bool vPass); void onPOSTWiFi (bool vPass); void onPOSTBluetooth (bool vPass); void onPOSTCloudSync (bool vPass); void onPOSTFail (Gui::GuiAlarmID vAlarmID); void onPOSTDone (bool vPass); + void onQuitApplication (); + signals: - void didPOSTWiFi (bool vPass); + void didPOSTEthernet (bool vPass); + void didPOSTWireless (bool vPass); void didPOSTBluetooth (bool vPass); void didPOSTCloudSync (bool vPass); + void didPOSTEthernetData (const QString &vMacAddress); + void didPOSTWirelessData (const QString &vMacAddress); + void didPOSTBluetoothData (const QString &vMacAddress); + void didPOSTCloudSyncData (const QString &vNetAddress); + signals: void didActionReceive (GuiActionType vAction, const QVariantList &vData); // UI <= HD/DG void didActionTransmit(GuiActionType vAction, const QVariantList &vData); // UI => HD/DG @@ -151,17 +162,23 @@ /*! * \brief didPOSTPass * \details This signal will be emitted when UI is done with the POST and will let other layers to know the result. - * As an example the Manufacturing will not start if the POST filed since it needs POST info for hte Encrypted partition. + * As an example the Manufacturing or update will not start if the POST failed since it needs POST info for the Encrypted partition. * \param vPass - true if passed. */ void didPOSTPass (bool vPass); /*! - * \brief didPOSTInformationReady - * \details this signall will be emitted in case the UI POST is successfull, BEFORE the didPOSTDone. - * \note note that this will be called before the didPOSTDone, to give the opportunity to the observer to update the required information before being notified for the POST result, - * so in case there are things to be done on POST success, the data is ready. + * \brief didKeepAliveBegin + * \details this signal will be emitted by ApplicationController + * when it is done with all the messaging and has nothing to say + * just to keep the conversation alive and let HD know UI is alive. */ - void didPOSTInformationReady(const QString &vMacEthernet, const QString &vMacWreless, const QString &vMacBluetooth); + void didKeepAliveBegin (); + /*! + * \brief didQuitApplication + * \details this signal is a placeholder for any farther notification to any class which needs to close itself. + * it will be used to let the other classes to stop and move to main thread. + */ + void didQuitApplication (); // Device Signal/Slots DEVICE_APP_BRIDGE_DEFINITION_LIST @@ -171,6 +188,7 @@ ACTION_RECEIVE_MODEL_BRIDGE_DEFINITIONS ACTION_RECEIVE_PRIVATE_SLOT_NOEMIT(UIPostFinalResultHDRequestData) { + onPOSTDone(_post.isDone()); emit didActionReceive(vData); }