TizenRefApp-6479 Revert commit with share-panel usage added 70/73470/1
authorDenis Dolzhenko <d.dolzhenko@samsung.com>
Wed, 8 Jun 2016 08:15:50 +0000 (11:15 +0300)
committerDenis Dolzhenko <d.dolzhenko@samsung.com>
Wed, 8 Jun 2016 08:15:50 +0000 (11:15 +0300)
Change-Id: If440b8381310c9191d828467940579a53872cd13
Signed-off-by: Denis Dolzhenko <d.dolzhenko@samsung.com>
src/Viewer/Controller/inc/Viewer.h
src/Viewer/Controller/src/Viewer.cpp

index 16f35dd..475c097 100644 (file)
@@ -87,7 +87,6 @@ namespace Msg
             void onDeleteButtonClicked(Popup &popup, int buttonId);
             void onCopyTextItemPressed(PopupListItem &item);
             void onForwardItemPressed(PopupListItem &item);
-            void onShareItemPressed(PopupListItem &item);
             void onSaveAttachmentsItemPressed(PopupListItem &item);
 
             // MbeRecipients:
index fb0f874..2e02b9a 100644 (file)
@@ -27,7 +27,6 @@
 #include "ContactViewer.h"
 #include "FileUtils.h"
 #include "SaveAttachmentsPopup.h"
-#include "FileShare.h"
 
 #include <sstream>
 #include <iomanip>
@@ -283,10 +282,7 @@ void Viewer::onHwMoreButtonClicked()
 
     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();
 }
@@ -420,16 +416,6 @@ void Viewer::onSaveAttachmentsItemPressed(PopupListItem &item)
     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("");