Index: sources/ApplicationController.h =================================================================== diff -u -r3e75c2111c13a7b39c55519cc6797a323fee4644 -r6c6f1f5d466badd9b4fd67be7c907234c342b2a2 --- sources/ApplicationController.h (.../ApplicationController.h) (revision 3e75c2111c13a7b39c55519cc6797a323fee4644) +++ sources/ApplicationController.h (.../ApplicationController.h) (revision 6c6f1f5d466badd9b4fd67be7c907234c342b2a2) @@ -1,13 +1,13 @@ /*! * - * Copyright (c) 2020-2022 Diality Inc. - All Rights Reserved. + * Copyright (c) 2020-2023 Diality Inc. - All Rights Reserved. * \copyright * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. * * \file ApplicationController.h * \author (last) Behrouz NematiPour - * \date (last) 15-Oct-2022 + * \date (last) 19-Dec-2022 * \author (original) Behrouz NematiPour * \date (original) 26-Aug-2020 * @@ -73,13 +73,14 @@ void initThread(QThread &vThread); void quitThread(); + void initSetttings(); + void keepAlive(); void createFakeSequencedLongMessage (QVariantList &vData, const int vFakeDataLen); void createFakeSeqAtBeginLongMessage(QVariantList &vData, const int vFakeDataLen); - void settingsInit(); - + void postDoneRequest(); void versionsRequest(bool vPass); private slots: // Should be private for thread safety and is connected internally. @@ -97,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); @@ -105,21 +108,29 @@ void onFailedTransmit(Sequence seq); - void onSettingsInit(); 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 @@ -148,6 +159,26 @@ * \details This signal will be emitted when the settings are read and ready to be used. */ void didSettingsDone (); + /*! + * \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 failed since it needs POST info for the Encrypted partition. + * \param vPass - true if passed. + */ + void didPOSTPass (bool vPass); + /*! + * \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 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 @@ -157,7 +188,6 @@ ACTION_RECEIVE_MODEL_BRIDGE_DEFINITIONS ACTION_RECEIVE_PRIVATE_SLOT_NOEMIT(UIPostFinalResultHDRequestData) { - onPOSTDone(_post.isDone()); emit didActionReceive(vData); }