void onDeleteButtonClicked(Popup &popup, int buttonId);
void onCopyTextItemPressed(PopupListItem &item);
void onForwardItemPressed(PopupListItem &item);
- void onShareItemPressed(PopupListItem &item);
void onSaveAttachmentsItemPressed(PopupListItem &item);
// MbeRecipients:
#include "ContactViewer.h"
#include "FileUtils.h"
#include "SaveAttachmentsPopup.h"
-#include "FileShare.h"
#include <sstream>
#include <iomanip>
bool hasAttachment = !m_Msg->getAttachmentList().isEmpty() || m_Msg->getMediaCount() > 0;
if(hasAttachment)
- {
popup.appendItem(msg("IDS_MSG_OPT_SAVE_ATTACHMENTS_ABB"), POPUPLIST_ITEM_PRESSED_CB(Viewer, onSaveAttachmentsItemPressed), this);
- popup.appendItem(msg("IDS_COM_BUTTON_SHARE"), POPUPLIST_ITEM_PRESSED_CB(Viewer, onShareItemPressed), this);
- }
popup.show();
}
popup->show();
}
-void Viewer::onShareItemPressed(PopupListItem &item)
-{
- MSG_LOG("");
- item.getParent().destroy();
-
- SmilPage *page = m_pSmilPlayer->getCurrentPage();
- if(page)
- FileShare::launch(page->getAttachments());
-}
-
void Viewer::onRecipItemClicked(Evas_Object *obj, void *eventInfo)
{
MSG_LOG("");