void init();
template<typename T>
T *getTopFrame() const;
- bool execCmd(const AppControlCommand &cmd);
+ bool prepare(const AppControlCommand &cmd);
bool isUnreadNotificationSingle(AppControlDefault::DefaultType type) const;
NaviFrameView::destroy();
}
-bool NaviFrameController::execCmd(const AppControlCommand &cmd)
+bool NaviFrameController::prepare(const AppControlCommand &cmd)
{
MSG_LOG("Execute app. control command: ", cmd.getOperationMsg());
void NaviFrameController::execCmd(const AppControlDefaultRef &cmd)
{
- if(execCmd(*cmd))
+ if(prepare(*cmd))
{
AppControlDefault::DefaultType type = cmd->getDefaultType();
{
if(type == AppControlDefault::ViewType || type == AppControlDefault::ReplyType || isUnreadNotificationSingle(type))
{
- Conversation *conversation = new Conversation(*this);
- push(*conversation);
- ecore_main_loop_iterate(); // FIXME: Fix EFL(TSAM-2158) and remove it
- conversation->execCmd(cmd);
+ Conversation *conversation = new Conversation(*this);
+ push(*conversation);
+ conversation->execCmd(cmd);
}
}
}
void NaviFrameController::execCmd(const AppControlComposeRef &cmd)
{
- if(execCmd(*cmd))
+ if(prepare(*cmd))
{
Conversation *conv = getTopFrame<Conversation>();
if(conv)
{
Conversation *conv = new Conversation(*this);
push(*conv);
- ecore_main_loop_iterate(); // FIXME: Fix EFL(TSAM-2158) and remove it
conv->execCmd(cmd);
}
}
static void processSignal(Evas_Object *obj);
/**
- * @brief Process all edje signals for object
+ * @brief Process edje signals for object
*/
void processSignal();
/**
+ * @brief Process all edje signals
+ */
+ static void processSignals();
+
+ /**
* @brief Sets user-data associated with specified key-string.
* @param[in] key a string-key.
* @param[in] data to be stored.
processSignal(m_pEo);
}
+ inline void View::processSignals()
+ {
+ edje_message_signal_process();
+ }
+
inline void View::setText(const char *text, const char *part)
{
elm_object_part_text_set(m_pEo, part, text);
m_TransitionStatus = !isEmpty();
Elm_Object_Item *it = elm_naviframe_item_push(getEo(), nullptr, nullptr, nullptr, content, naviTitleStyleEmpty);
item.setElmObjItem(it);
+ processSignal();
}
void NaviFrameView::push(NaviFrameItem &item, View &content)