void writeText(const Message &msg);
void writeAttachments(const MessageMms &msg);
void writeTextToFile();
- void addAttachment( const std::string &filePath, const std::string &fileName = "");
void runFileProcessing();
PopupList &createPopupList(const std::string &title);
addMedia(path);
}
-void Body::addAttachment(const std::string &filePath, const std::string &fileName)
-{
- std::string newFilePath = m_WorkingDir->addFile(filePath);
- if(!newFilePath.empty())
- getComposeItem().addAttachment(newFilePath);
-}
-
void Body::onMaxLengthReached()
{
MSG_LOG("");
{
m_BubbleEntityList.push_back(entity);
updateBubblePart();
- getOwner()->showItem(*this, ELM_GENLIST_ITEM_SCROLLTO_BOTTOM);
show(true);
+ navigate();
if(m_pListener)
m_pListener->onAttachmentAdded({filePath});
}
{
ListItem *item = m_pList->getLastItem();
if(item)
- m_pList->showItem(*item, ELM_GENLIST_ITEM_SCROLLTO_TOP);
+ m_pList->showItem(*item, ELM_GENLIST_ITEM_SCROLLTO_BOTTOM);
}
ConvListItem *ConvList::getItem(MsgId msgId) const
virtual ~ComposeListViewItem();
void show(bool show);
+ void navigate();
protected:
virtual Evas_Object *getBubbleContent() = 0;
return m_Visibility;
}
+void ComposeListViewItem::navigate()
+{
+ getOwner()->showItem(*this, ELM_GENLIST_ITEM_SCROLLTO_BOTTOM);
+}
+
void ComposeListViewItem::show(bool show)
{
// FIXME: setFilter() do not works properly