Index: sources/gui/GuiView.cpp =================================================================== diff -u -r552f811f7ba3b62ecbaa6eab9343b90e3f790c12 -r6c6f1f5d466badd9b4fd67be7c907234c342b2a2 --- sources/gui/GuiView.cpp (.../GuiView.cpp) (revision 552f811f7ba3b62ecbaa6eab9343b90e3f790c12) +++ sources/gui/GuiView.cpp (.../GuiView.cpp) (revision 6c6f1f5d466badd9b4fd67be7c907234c342b2a2) @@ -49,6 +49,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()), @@ -78,6 +80,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))); } /*! @@ -281,7 +286,7 @@ */ bool GuiView::doExportListSelect(quint32 vIndex) { - bool contains = _exportList.contains(vIndex);; + bool contains = _exportList.contains(vIndex); return contains; } @@ -387,3 +392,17 @@ // TODO to be removed when model added for export log return Storage::FileHandler::isPathSymLink(vFilePath); } + +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(); +}