Index: sources/gui/GuiController.cpp =================================================================== diff -u -rf2e4eba6e85c5d36537be782926f23cc9dc01037 -rba15fce14caf76166c286da95974c69f8a24d4b8 --- sources/gui/GuiController.cpp (.../GuiController.cpp) (revision f2e4eba6e85c5d36537be782926f23cc9dc01037) +++ sources/gui/GuiController.cpp (.../GuiController.cpp) (revision ba15fce14caf76166c286da95974c69f8a24d4b8) @@ -167,55 +167,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_PowerOff: - //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.