Index: sources/gui/GuiController.cpp =================================================================== diff -u -re07cde120d7476c4add90c4f86cf55af9ea830de -r64484a210332da6b2dcf3f0a23cb6c59f4caaf98 --- sources/gui/GuiController.cpp (.../GuiController.cpp) (revision e07cde120d7476c4add90c4f86cf55af9ea830de) +++ sources/gui/GuiController.cpp (.../GuiController.cpp) (revision 64484a210332da6b2dcf3f0a23cb6c59f4caaf98) @@ -70,7 +70,6 @@ connect(&_ApplicationController, SIGNAL(didActionReceive (GuiActionType, const QVariantList &)), this , SLOT( onActionReceive (GuiActionType, const QVariantList &))); - // From OS : USB Drive has been removed physically. // USB drive connect(&_ApplicationController, SIGNAL(didUSBDriveMount ()), @@ -167,55 +166,10 @@ */ void GuiController::doActionTransmit(GuiActionType vAction, const QVariantList &vData) { - // This is a sample code and currently does nothing - // The handleTransmit is a place holder and currently has not been used. - if (! handleTransmit(vAction, vData)) { - emit didActionTransmit(vAction, vData); - } + emit didActionTransmit(vAction, vData); } /*! - * \brief GuiController::handleTransmit - * \details If an action request from Gui can be handled in Gui Controller - * without passing to HD, then can be handled here. - * \param vAction - the Requested action - * \param vData - Data of the action - * \return if handled returns true to not to pass to the lower level (Application Controller) - * to not to send to HD then. - */ -bool GuiController::handleTransmit(GuiActionType vAction, const QVariantList &vData) -{ - // This is a sample code and currently does nothing - Q_UNUSED(vAction) - Q_UNUSED(vData) - - // This is an example implementation of how to handle actions - // which does not require HD approval in GuiController - // Process the GuiView Request. - // It can be processed in GuiController take action and notify GuiView -// switch (vAction) { -// case GuiActionType::ID_PowerOffWarning: -// //qApp->quit(); - -// // GUI Controller decides (loop back) -// //if (vData == GuiActionData::NoData){ -// // // PowerOff noData is a request -// // emit didActionReceive (vAction, GuiActionData::Accepted); -// // return true; -// //} -// break; - - //case Another_Command_Which_does not_Require_HD_Approval: - //return true; - //break; -// default: -// break; - -// } - return false; -} - -/*! * \brief Action commanded by HD * \details An action has been commanded by HD, * Gui requires to be notified to perform the action.