Index: sources/gui/GuiView.cpp =================================================================== diff -u -r7823da721f8041d6d39c37cd040e162ea9d35e7f -r9ef6badf8e172436bba2bfad1642ae7e469e0361 --- sources/gui/GuiView.cpp (.../GuiView.cpp) (revision 7823da721f8041d6d39c37cd040e162ea9d35e7f) +++ sources/gui/GuiView.cpp (.../GuiView.cpp) (revision 9ef6badf8e172436bba2bfad1642ae7e469e0361) @@ -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 GuiView.cpp * \author (last) Behrouz NematiPour - * \date (last) 28-Sep-2022 + * \date (last) 16-Oct-2022 * \author (original) Behrouz NematiPour * \date (original) 26-Aug-2020 * @@ -48,6 +48,8 @@ // It should be defined in the class which wants to connect to signal. connect(this , SIGNAL(didActionTransmit(GuiActionType,const QVariantList &)), &_GuiController, SLOT( doActionTransmit(GuiActionType,const QVariantList &))); + connect(this , SIGNAL(didQuitApplication()), + &_GuiController, SLOT( doQuitApplication())); // From UI : USB drive umount connect(this , SIGNAL(didUSBDriveUmount()), @@ -77,6 +79,9 @@ &_GuiController, SLOT( doExportService (const GuiStringIndexMap &))); connect(this , SIGNAL(didExportTreatment (const GuiStringIndexMap &)), &_GuiController, SLOT( doExportTreatment (const GuiStringIndexMap &))); + + connect(&_GuiController, SIGNAL(didPOSTPass (bool)), + this , SLOT( onPOSTPass (bool))); } /*! @@ -280,7 +285,7 @@ */ bool GuiView::doExportListSelect(quint32 vIndex) { - bool contains = _exportList.contains(vIndex);; + bool contains = _exportList.contains(vIndex); return contains; } @@ -374,3 +379,17 @@ // TODO : the space check should also be done for the USB as destination but needs calculation and will be done later. // usbIsLow ( vPercent <= Storage::Available_Space_Percent ); } + +void GuiView::onPOSTPass(bool vPass) +{ + manufactMode( gEnableManufacturing && vPass ); + postPass(vPass); +} + +/*! + * \brief GuiView::doQuitApplication + * \details emit the didQuitApplication signal to ask ApplicationController to Quit the application gracefully. + */ +void GuiView::doQuitApplication() { + emit didQuitApplication(); +}