// IConvListItemListener:
virtual void onEditDraftMsg(ConvListItem &item);
+ virtual void onForwardMsg(ConvListItem &item);
// SelectAll callback:
void onSelectAllChanged(Evas_Object *obj, void *eventInfo);
*/
virtual void onAllItemsDeleted(ConvList &list) {};
virtual void onEditDraftMsg(MsgId id) {};
+ virtual void onForwardMsg(MsgId id) {};
};
}
public:
virtual ~IConvListItemListener() {}
virtual void onEditDraftMsg(ConvListItem &item) {};
+ virtual void onForwardMsg(ConvListItem &item) {};
};
}
m_pListner->onAllItemsDeleted(*this);
}
+void ConvList::onForwardMsg(ConvListItem &item)
+{
+ if(m_pListner)
+ m_pListner->onForwardMsg(item.getMsgId());
+}
+
void ConvList::onEditDraftMsg(ConvListItem &item)
{
if(m_pListner)
void ConvListItem::onForwardItemPressed(ContextPopupItem &item)
{
MSG_LOG("");
+ item.getParent().destroy();
+ if(m_pListener)
+ m_pListener->onForwardMsg(*this);
}
void ConvListItem::onResendItemPressed(ContextPopupItem &item)
// ConvList callbacks:
virtual void onAllItemsDeleted(ConvList &list);
virtual void onEditDraftMsg(MsgId id);
+ virtual void onForwardMsg(MsgId id);
// IAttachPanelListener:
virtual void onFileSelected(AttachPanel &panel, const AttachPanel::FileList &files);
void write(const Message &msg);
void saveDraftMsg();
void editDraftMsg(MsgId id);
+ void forwardMsg(MsgId id);
void onNaviOkButtonClicked();
void onNaviCenterButtonClicked();
}
}
+void Conversation::forwardMsg(MsgId id)
+{
+ MessageRef msg = getMsgEngine().getStorage().getMessage(id);
+ if(msg)
+ {
+ setThreadId(ThreadId());
+ if(m_pBody)
+ m_pBody->write(*msg);
+ m_pRecipPanel->setEntryFocus(true);
+ }
+}
+
void Conversation::notifyConvertMsgType()
{
std::string notifText = m_IsMms ?
editDraftMsg(id);
}
+void Conversation::onForwardMsg(MsgId id)
+{
+ MSG_LOG("");
+ forwardMsg(id);
+}
+
void Conversation::onFileSelected(AttachPanel &panel, const AttachPanel::FileList &files)
{
MSG_LOG("");