Remove unused classes. 06/142606/3
authorDenis Dolzhenko <d.dolzhenko@samsung.com>
Fri, 4 Aug 2017 12:32:57 +0000 (15:32 +0300)
committerDenis Dolzhenko <d.dolzhenko@samsung.com>
Fri, 4 Aug 2017 14:22:02 +0000 (17:22 +0300)
Change-Id: I0dde3fca81e8e11463c810b1cb1a7685553d9baf
Signed-off-by: Denis Dolzhenko <d.dolzhenko@samsung.com>
23 files changed:
project_def.prop
src/Common/AppControl/inc/ContactEditor.h [deleted file]
src/Common/AppControl/inc/Share.h [deleted file]
src/Common/AppControl/src/ContactEditor.cpp [deleted file]
src/Common/AppControl/src/Share.cpp [deleted file]
src/Common/Controller/inc/App.h
src/Common/Controller/src/App.cpp
src/Common/Utils/inc/ThumbnailMaker.h [deleted file]
src/Common/Utils/src/ThumbnailMaker.cpp [deleted file]
src/Common/View/inc/MbeRecipientViewItem.h [deleted file]
src/Common/View/inc/MbeRecipientsView.h [deleted file]
src/Common/View/inc/PopupAttachmentListItem.h [deleted file]
src/Common/View/inc/PopupList.h [deleted file]
src/Common/View/inc/PopupListItem.h [deleted file]
src/Common/View/inc/PopupManager.h
src/Common/View/inc/SelectAllListItem.h [deleted file]
src/Common/View/src/MbeRecipientsView.cpp [deleted file]
src/Common/View/src/PopupAttachmentListItem.cpp [deleted file]
src/Common/View/src/PopupList.cpp [deleted file]
src/Common/View/src/PopupListItem.cpp [deleted file]
src/Common/View/src/PopupManager.cpp
src/Common/View/src/SelectAllListItem.cpp [deleted file]
src/MsgThread/View/src/ThreadListViewItem.cpp

index 686baf6c81ff44f057e6114565201ef48f1b8b0a..b838b12710da48dc9530e3677e6ceadacf3d49d8 100644 (file)
@@ -9,7 +9,7 @@ type = app
 profile = wearable-4.0
 
 # C/CPP Sources
-USER_SRCS = src/Common/MsgEngine/src/MsgThreadItem.cpp src/Common/Utils/src/VCalendarParser.cpp src/Common/MsgEngine/src/dummy/MsgStorageDummy.cpp src/Composer/View/src/ContactListViewItem.cpp src/Conversation/Controller/src/ConvFrame.cpp src/Common/MsgEngine/src/dummy/MessageDummy.cpp src/Common/MsgEngine/src/private/MsgAddressPrivate.cpp src/MainApp/MainApp.cpp src/Conversation/View/src/BubbleIconTextLayoutItem.cpp src/Common/MsgEngine/src/private/MsgReportPrivate.cpp src/Conversation/View/src/BubbleTextViewItem.cpp src/Composer/Controller/src/ContactFrame.cpp src/Common/Utils/src/MediaPlayer.cpp src/Conversation/Controller/src/BubbleVideoEntity.cpp src/Common/View/src/ListItem.cpp src/Common/MsgEngine/src/dummy/MsgConvMediaDummy.cpp src/Composer/Controller/src/MsgInputSelector.cpp src/Common/MsgEngine/src/private/MsgTransportPrivate.cpp src/Common/Utils/src/MediaPlayerProvider.cpp src/Conversation/View/src/BubbleViewItem.cpp src/Conversation/Controller/src/BubbleContactEntity.cpp src/Common/View/src/MoreOption.cpp src/Common/AppControl/src/SettingsLauncher.cpp src/Common/MsgEngine/src/Message.cpp src/Conversation/View/src/BubbleItemContainer.cpp src/Common/AppControl/src/AppControlDefault.cpp src/Common/View/src/ListView.cpp src/Common/MsgEngine/src/MessageMms.cpp src/Common/MsgEngine/src/private/MsgConvMediaPrivate.cpp src/Common/MsgEngine/src/MsgTransport.cpp src/Composer/Controller/src/SendingOptionsFrame.cpp src/Common/ContactManager/src/ContactRecord.cpp src/Common/MsgEngine/src/private/MsgSentStatusPrivate.cpp src/Common/Utils/src/WorkingDir.cpp src/Common/View/src/BasePopup.cpp src/Settings/Controller/src/BlockedMsgListItem.cpp src/Common/Utils/src/FileUtils.cpp src/Settings/Controller/src/SettingsFrame.cpp src/Conversation/View/src/BubbleImageViewItem.cpp src/Settings/View/src/BlockedMsgListViewItem.cpp src/Conversation/View/src/BubbleSubjectViewItem.cpp src/Common/MsgEngine/src/MessageSMS.cpp src/Common/MsgEngine/src/private/MessagePrivate.cpp src/Conversation/Controller/src/ConvList.cpp src/Common/View/src/InputLayout.cpp src/Common/View/src/MbeRecipientsView.cpp src/MsgThread/Controller/src/ThreadListItem.cpp src/Common/View/src/Entry.cpp src/Common/View/src/Popup.cpp src/Settings/Controller/src/SettingsBlockedNumbersFrame.cpp src/Common/ContactManager/src/ContactVCardParser.cpp src/Conversation/Controller/src/ConvListItem.cpp src/Common/AppControl/src/AppControlCompose.cpp src/Common/MsgEngine/src/MsgUtils.cpp src/Common/Recipient/src/Recipient.cpp src/Common/Utils/src/PhoneNumberUtils.cpp src/Common/MsgEngine/src/private/MessageSMSPrivate.cpp src/Conversation/View/src/ConvReplyListItem.cpp src/Common/View/src/ToastPopup.cpp src/Common/View/src/View.cpp src/Common/MsgEngine/src/private/MsgConversationItemPrivate.cpp src/Common/Controller/src/FrameController.cpp src/Common/AppControl/src/AppControlCommand.cpp src/Composer/View/src/MsgBodyView.cpp src/Common/MsgEngine/src/dummy/MsgAddressDummy.cpp src/Conversation/Controller/src/BubbleSubjectEntity.cpp src/Common/MsgEngine/src/dummy/MsgComposerDummy.cpp src/Common/MsgEngine/src/private/MsgThreadItemPrivate.cpp src/Common/View/src/StandardPopup.cpp src/Common/MsgEngine/src/MsgEngine.cpp src/Common/AppControl/src/AppControlParser.cpp src/Common/AppControl/src/ContactPicker.cpp src/Common/View/src/NaviFrameView.cpp src/Common/AppControl/src/FileViewer.cpp src/Conversation/View/src/ConvDateLineListItem.cpp src/Common/MsgEngine/src/dummy/MsgPageDummy.cpp src/Conversation/Controller/src/RecipListFrame.cpp src/Common/Utils/src/PathUtils.cpp src/Common/View/src/CtxPopup.cpp src/Common/AppControl/src/VoiceCall.cpp src/Common/MsgEngine/src/MsgSettings.cpp src/Common/MsgEngine/src/dummy/MsgConversationItemDummy.cpp src/Common/ContactManager/src/ContactVCardGenerator.cpp src/Common/AppControl/src/AppControlLauncher.cpp src/Common/Utils/src/LoggerImpl.cpp src/Common/ContactManager/src/ContactManager.cpp src/Common/View/src/SelectButton.cpp src/Conversation/Controller/src/BubbleEntityFactory.cpp src/Settings/View/src/BlockedNumberListViewItem.cpp src/Common/MsgEngine/src/private/MsgAttachmentPrivate.cpp src/Settings/View/src/SettingsMenuListItem.cpp src/Common/View/src/ViewItem.cpp src/Common/MsgEngine/src/private/MsgMediaPrivate.cpp src/Conversation/Controller/src/BubbleAudioEntity.cpp src/Composer/Controller/src/Composer.cpp src/Common/Controller/src/InputFrame.cpp src/Conversation/View/src/BubbleAudioViewItem.cpp src/Composer/View/src/RecipFieldView.cpp src/Common/AppControl/src/Share.cpp src/MsgThread/Controller/src/MsgThreadFrame.cpp src/Common/View/src/StandardWindow.cpp src/Common/MsgEngine/src/MsgConversationItem.cpp src/Common/MsgEngine/src/dummy/MsgUtilsDummy.cpp src/Common/View/src/LineListViewItem.cpp src/Composer/View/src/AlwaysSendAsTextListViewItem.cpp src/Common/MsgEngine/src/private/MessageMmsPrivate.cpp src/Settings/Controller/src/SettingsBlockedMsgDetailFrame.cpp src/Settings/Controller/src/SettingsBlockedMessagesFrame.cpp src/Common/MsgEngine/src/dummy/MsgMediaDummy.cpp src/Common/View/src/DefaultLayout.cpp src/Composer/Controller/src/RecipFrame.cpp src/Settings/Controller/src/SettingsMenuBlockListFrame.cpp src/Common/MsgEngine/src/dummy/MsgSettingsDummy.cpp src/Common/View/src/PopupListItem.cpp src/Common/MsgEngine/src/dummy/MsgAttachmentDummy.cpp src/Common/MsgEngine/src/dummy/MessageSMSDummy.cpp src/Common/View/src/BottomButton.cpp src/Common/Controller/src/NaviFrameController.cpp src/Common/MsgEngine/src/dummy/MsgTransportDummy.cpp src/MsgThread/Controller/src/ThreadList.cpp src/Common/Utils/src/TextDecorator.cpp src/Common/MsgEngine/src/dummy/MessageMmsDummy.cpp src/Common/MsgEngine/src/MsgStorage.cpp src/Common/View/src/SelectAllListItem.cpp src/Common/AppControl/src/AppControlHandle.cpp src/Common/AppControl/src/ContactViewer.cpp src/Conversation/View/src/ConvListViewItem.cpp src/Common/Utils/src/ThumbnailMaker.cpp src/Common/View/src/NaviFrameItem.cpp src/Composer/Controller/src/MsgBodyFrame.cpp src/Common/View/src/PopupList.cpp src/Settings/View/src/SettingsBlockedMsgDetailView.cpp src/Common/Controller/src/App.cpp src/Common/View/src/PopupAttachmentListItem.cpp src/Common/MsgEngine/src/private/MsgComposerPrivate.cpp src/Common/Utils/src/MediaUtils.cpp src/Common/MsgEngine/src/dummy/MsgThreadItemDummy.cpp src/Composer/View/src/SendingOptionListViewItem.cpp src/Common/View/src/TitleListItem.cpp src/Common/Utils/src/TimeUtils.cpp src/Conversation/Controller/src/BubbleCalEventEntity.cpp src/Common/Controller/src/ConnectivityChecker.cpp src/Common/MsgEngine/src/private/MsgSettingsPrivate.cpp src/Composer/Controller/src/RecipInputFrame.cpp src/Common/View/src/IconTextPopup.cpp src/MainApp/main.cpp src/Settings/Controller/src/BlockedNumberListItem.cpp src/Common/View/src/NoContentLayout.cpp src/Common/SystemSettingsManager/src/SystemSettingsManager.cpp src/Common/MsgEngine/src/dummy/MsgReportDummy.cpp src/Composer/Controller/src/ContactListItem.cpp src/Common/MsgEngine/src/MsgPage.cpp src/Common/AppControl/src/ContactEditor.cpp src/Common/AppControl/src/InputSelector.cpp src/Common/MsgEngine/src/private/MsgUtilsPrivate.cpp src/Common/View/src/PopupManager.cpp src/MsgThread/View/src/ThreadComposeListViewItem.cpp src/Common/MsgEngine/src/private/MsgStoragePrivate.cpp src/Common/View/src/SearchBar.cpp src/MsgThread/View/src/ThreadListViewItem.cpp src/Common/MsgEngine/src/private/MsgPagePrivate.cpp src/Common/AppControl/src/AppControlUtils.cpp 
+USER_SRCS = src/Common/MsgEngine/src/MsgThreadItem.cpp src/Common/Utils/src/VCalendarParser.cpp src/Common/MsgEngine/src/dummy/MsgStorageDummy.cpp src/Composer/View/src/ContactListViewItem.cpp src/Conversation/Controller/src/ConvFrame.cpp src/Common/MsgEngine/src/dummy/MessageDummy.cpp src/Common/MsgEngine/src/private/MsgAddressPrivate.cpp src/MainApp/MainApp.cpp src/Conversation/View/src/BubbleIconTextLayoutItem.cpp src/Common/MsgEngine/src/private/MsgReportPrivate.cpp src/Conversation/View/src/BubbleTextViewItem.cpp src/Composer/Controller/src/ContactFrame.cpp src/Common/Utils/src/MediaPlayer.cpp src/Conversation/Controller/src/BubbleVideoEntity.cpp src/Common/View/src/ListItem.cpp src/Common/MsgEngine/src/dummy/MsgConvMediaDummy.cpp src/Composer/Controller/src/MsgInputSelector.cpp src/Common/MsgEngine/src/private/MsgTransportPrivate.cpp src/Common/Utils/src/MediaPlayerProvider.cpp src/Conversation/View/src/BubbleViewItem.cpp src/Conversation/Controller/src/BubbleContactEntity.cpp src/Common/View/src/MoreOption.cpp src/Common/AppControl/src/SettingsLauncher.cpp src/Common/MsgEngine/src/Message.cpp src/Conversation/View/src/BubbleItemContainer.cpp src/Common/AppControl/src/AppControlDefault.cpp src/Common/View/src/ListView.cpp src/Common/MsgEngine/src/MessageMms.cpp src/Common/MsgEngine/src/private/MsgConvMediaPrivate.cpp src/Common/MsgEngine/src/MsgTransport.cpp src/Composer/Controller/src/SendingOptionsFrame.cpp src/Common/ContactManager/src/ContactRecord.cpp src/Common/MsgEngine/src/private/MsgSentStatusPrivate.cpp src/Common/Utils/src/WorkingDir.cpp src/Common/View/src/BasePopup.cpp src/Settings/Controller/src/BlockedMsgListItem.cpp src/Common/Utils/src/FileUtils.cpp src/Settings/Controller/src/SettingsFrame.cpp src/Conversation/View/src/BubbleImageViewItem.cpp src/Settings/View/src/BlockedMsgListViewItem.cpp src/Conversation/View/src/BubbleSubjectViewItem.cpp src/Common/MsgEngine/src/MessageSMS.cpp src/Common/MsgEngine/src/private/MessagePrivate.cpp src/Conversation/Controller/src/ConvList.cpp src/Common/View/src/InputLayout.cpp src/MsgThread/Controller/src/ThreadListItem.cpp src/Common/View/src/Entry.cpp src/Common/View/src/Popup.cpp src/Settings/Controller/src/SettingsBlockedNumbersFrame.cpp src/Common/ContactManager/src/ContactVCardParser.cpp src/Conversation/Controller/src/ConvListItem.cpp src/Common/AppControl/src/AppControlCompose.cpp src/Common/MsgEngine/src/MsgUtils.cpp src/Common/Recipient/src/Recipient.cpp src/Common/Utils/src/PhoneNumberUtils.cpp src/Common/MsgEngine/src/private/MessageSMSPrivate.cpp src/Conversation/View/src/ConvReplyListItem.cpp src/Common/View/src/ToastPopup.cpp src/Common/View/src/View.cpp src/Common/MsgEngine/src/private/MsgConversationItemPrivate.cpp src/Common/Controller/src/FrameController.cpp src/Common/AppControl/src/AppControlCommand.cpp src/Composer/View/src/MsgBodyView.cpp src/Common/MsgEngine/src/dummy/MsgAddressDummy.cpp src/Conversation/Controller/src/BubbleSubjectEntity.cpp src/Common/MsgEngine/src/dummy/MsgComposerDummy.cpp src/Common/MsgEngine/src/private/MsgThreadItemPrivate.cpp src/Common/View/src/StandardPopup.cpp src/Common/MsgEngine/src/MsgEngine.cpp src/Common/AppControl/src/AppControlParser.cpp src/Common/AppControl/src/ContactPicker.cpp src/Common/View/src/NaviFrameView.cpp src/Common/AppControl/src/FileViewer.cpp src/Conversation/View/src/ConvDateLineListItem.cpp src/Common/MsgEngine/src/dummy/MsgPageDummy.cpp src/Conversation/Controller/src/RecipListFrame.cpp src/Common/Utils/src/PathUtils.cpp src/Common/View/src/CtxPopup.cpp src/Common/AppControl/src/VoiceCall.cpp src/Common/MsgEngine/src/MsgSettings.cpp src/Common/MsgEngine/src/dummy/MsgConversationItemDummy.cpp src/Common/ContactManager/src/ContactVCardGenerator.cpp src/Common/AppControl/src/AppControlLauncher.cpp src/Common/Utils/src/LoggerImpl.cpp src/Common/ContactManager/src/ContactManager.cpp src/Common/View/src/SelectButton.cpp src/Conversation/Controller/src/BubbleEntityFactory.cpp src/Settings/View/src/BlockedNumberListViewItem.cpp src/Common/MsgEngine/src/private/MsgAttachmentPrivate.cpp src/Settings/View/src/SettingsMenuListItem.cpp src/Common/View/src/ViewItem.cpp src/Common/MsgEngine/src/private/MsgMediaPrivate.cpp src/Conversation/Controller/src/BubbleAudioEntity.cpp src/Composer/Controller/src/Composer.cpp src/Common/Controller/src/InputFrame.cpp src/Conversation/View/src/BubbleAudioViewItem.cpp src/Composer/View/src/RecipFieldView.cpp src/MsgThread/Controller/src/MsgThreadFrame.cpp src/Common/View/src/StandardWindow.cpp src/Common/MsgEngine/src/MsgConversationItem.cpp src/Common/MsgEngine/src/dummy/MsgUtilsDummy.cpp src/Common/View/src/LineListViewItem.cpp src/Composer/View/src/AlwaysSendAsTextListViewItem.cpp src/Common/MsgEngine/src/private/MessageMmsPrivate.cpp src/Settings/Controller/src/SettingsBlockedMsgDetailFrame.cpp src/Settings/Controller/src/SettingsBlockedMessagesFrame.cpp src/Common/MsgEngine/src/dummy/MsgMediaDummy.cpp src/Common/View/src/DefaultLayout.cpp src/Composer/Controller/src/RecipFrame.cpp src/Settings/Controller/src/SettingsMenuBlockListFrame.cpp src/Common/MsgEngine/src/dummy/MsgSettingsDummy.cpp src/Common/MsgEngine/src/dummy/MsgAttachmentDummy.cpp src/Common/MsgEngine/src/dummy/MessageSMSDummy.cpp src/Common/View/src/BottomButton.cpp src/Common/Controller/src/NaviFrameController.cpp src/Common/MsgEngine/src/dummy/MsgTransportDummy.cpp src/MsgThread/Controller/src/ThreadList.cpp src/Common/Utils/src/TextDecorator.cpp src/Common/MsgEngine/src/dummy/MessageMmsDummy.cpp src/Common/MsgEngine/src/MsgStorage.cpp src/Common/AppControl/src/AppControlHandle.cpp src/Common/AppControl/src/ContactViewer.cpp src/Conversation/View/src/ConvListViewItem.cpp src/Common/View/src/NaviFrameItem.cpp src/Composer/Controller/src/MsgBodyFrame.cpp src/Settings/View/src/SettingsBlockedMsgDetailView.cpp src/Common/Controller/src/App.cpp src/Common/MsgEngine/src/private/MsgComposerPrivate.cpp src/Common/Utils/src/MediaUtils.cpp src/Common/MsgEngine/src/dummy/MsgThreadItemDummy.cpp src/Composer/View/src/SendingOptionListViewItem.cpp src/Common/View/src/TitleListItem.cpp src/Common/Utils/src/TimeUtils.cpp src/Conversation/Controller/src/BubbleCalEventEntity.cpp src/Common/Controller/src/ConnectivityChecker.cpp src/Common/MsgEngine/src/private/MsgSettingsPrivate.cpp src/Composer/Controller/src/RecipInputFrame.cpp src/Common/View/src/IconTextPopup.cpp src/MainApp/main.cpp src/Settings/Controller/src/BlockedNumberListItem.cpp src/Common/View/src/NoContentLayout.cpp src/Common/SystemSettingsManager/src/SystemSettingsManager.cpp src/Common/MsgEngine/src/dummy/MsgReportDummy.cpp src/Composer/Controller/src/ContactListItem.cpp src/Common/MsgEngine/src/MsgPage.cpp src/Common/AppControl/src/InputSelector.cpp src/Common/MsgEngine/src/private/MsgUtilsPrivate.cpp src/Common/View/src/PopupManager.cpp src/MsgThread/View/src/ThreadComposeListViewItem.cpp src/Common/MsgEngine/src/private/MsgStoragePrivate.cpp src/Common/View/src/SearchBar.cpp src/MsgThread/View/src/ThreadListViewItem.cpp src/Common/MsgEngine/src/private/MsgPagePrivate.cpp src/Common/AppControl/src/AppControlUtils.cpp 
 
 # EDC Sources
 USER_EDCS =  
diff --git a/src/Common/AppControl/inc/ContactEditor.h b/src/Common/AppControl/inc/ContactEditor.h
deleted file mode 100644 (file)
index 354c7dc..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * Copyright 2016 Samsung Electronics Co., Ltd
- *
- * Licensed under the Flora License, Version 1.1 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://floralicense.org/license/
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef ContactEditor_h_
-#define ContactEditor_h_
-
-#include "AppControlLauncher.h"
-
-#include <string>
-
-namespace Msg {
-       class IContactEditorListener;
-
-       /**
-        *@brief An utility-class aimed to launch contacts-application with add-operation and edit-operation passed via app-control.
-        */
-       class ContactEditor
-               : public AppControlHandle {
-               public:
-                       enum Operation
-                       {
-                               EditOp,
-                               CreateOp
-                       };
-
-               public:
-                       ContactEditor();
-                       virtual ~ContactEditor();
-
-                       /**
-                        * @brief Launches add-operation.
-                        * @param[in] address number or email
-                        * @return true in case of success, otherwise returns false.
-                        */
-                        bool launch(const std::string &address, Operation operation);
-               private:
-                        bool launch(const std::string &address, const char *operation, const char *addressType);
-       };
-}
-
-#endif /* ContactEditor */
diff --git a/src/Common/AppControl/inc/Share.h b/src/Common/AppControl/inc/Share.h
deleted file mode 100644 (file)
index 4cef95f..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Copyright 2016 Samsung Electronics Co., Ltd
- *
- * Licensed under the Flora License, Version 1.1 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://floralicense.org/license/
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef Share_h_
-#define Share_h_
-
-#include "AppControlLauncher.h"
-
-#include <list>
-#include <string>
-
-namespace Msg {
-       class Share
-               : public AppControlHandle {
-               public:
-                       Share();
-                       virtual ~Share();
-
-                       bool launch(const std::list<std::string> &files);
-                       bool launch(const std::string &text);
-
-               private:
-                       void removeFiles();
-                       void addFiles(const std::list<std::string> &files);
-
-               private:
-                       std::list<std::string> m_FileList;
-       };
-}
-
-#endif /* Share_h_ */
diff --git a/src/Common/AppControl/src/ContactEditor.cpp b/src/Common/AppControl/src/ContactEditor.cpp
deleted file mode 100644 (file)
index 1173945..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-/*
- * Copyright 2016 Samsung Electronics Co., Ltd
- *
- * Licensed under the Flora License, Version 1.1 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://floralicense.org/license/
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include "ContactEditor.h"
-#include "Logger.h"
-#include "MsgUtils.h"
-#include "AppControlUtils.h"
-
-using namespace Msg;
-
-namespace
-{
-       const char* mimeContact = "application/vnd.tizen.contact";
-}
-
-ContactEditor::ContactEditor()
-{
-       app_control_set_mime(m_Handle, mimeContact);
-}
-
-ContactEditor::~ContactEditor()
-{
-       terminate();
-}
-
-bool ContactEditor::launch(const std::string &address, Operation operation)
-{
-       bool res = false;
-       if (!address.empty())
-       {
-               const char *op = nullptr;
-               if (operation == EditOp)
-                       op = APP_CONTROL_OPERATION_EDIT;
-               else if (operation == CreateOp)
-                       op = APP_CONTROL_OPERATION_ADD;
-
-               if (op)
-               {
-                       if (MsgUtils::isValidNumber(address))
-                               res = launch(address, op, APP_CONTROL_DATA_PHONE);
-                       else if (MsgUtils::isValidEmail(address))
-                               res = launch(address, op, APP_CONTROL_DATA_EMAIL);
-               }
-       }
-       return res;
-}
-
-bool ContactEditor::launch(const std::string &address, const char *operation, const char *addressType)
-{
-       app_control_set_operation(m_Handle, operation);
-       app_control_add_extra_data(m_Handle, addressType, address.c_str());
-       return AppControlHandle::launch();
-}
diff --git a/src/Common/AppControl/src/Share.cpp b/src/Common/AppControl/src/Share.cpp
deleted file mode 100644 (file)
index a38429d..0000000
+++ /dev/null
@@ -1,81 +0,0 @@
-/*
- * Copyright 2016 Samsung Electronics Co., Ltd
- *
- * Licensed under the Flora License, Version 1.1 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://floralicense.org/license/
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include "AppControlUtils.h"
-#include "Logger.h"
-#include "Share.h"
-#include "FileUtils.h"
-
-#include <app_control.h>
-#include <vector>
-
-using namespace Msg;
-
-Share::Share()
-{
-}
-
-Share::~Share()
-{
-       removeFiles();
-}
-
-void Share::removeFiles()
-{
-       for (auto &&file : m_FileList)
-       {
-               FileUtils::remove(file);
-       }
-       m_FileList.clear();
-}
-
-void Share::addFiles(const std::list<std::string> &files)
-{
-       removeFiles();
-       for (auto &&file : files)
-       {
-               m_FileList.push_back(FileUtils::addFileToDataDir(file));
-       }
-}
-
-bool Share::launch(const std::list<std::string> &files)
-{
-       if (files.empty() || getLauncher().isLaunchInProgress())
-               return false;
-
-       addFiles(files);
-       std::vector<const char*> nativePaths;
-       for (const std::string &file : m_FileList)
-       {
-               if (!file.empty())
-                       nativePaths.push_back(file.c_str());
-       }
-
-       app_control_set_operation(m_Handle, APP_CONTROL_OPERATION_MULTI_SHARE);
-       app_control_add_extra_data_array(m_Handle, APP_CONTROL_DATA_PATH, nativePaths.data(), nativePaths.size());
-       return getLauncher().launch(*this);
-}
-
-bool Share::launch(const std::string &text)
-{
-       if (text.empty() || getLauncher().isLaunchInProgress())
-               return false;
-
-       app_control_set_operation(m_Handle, APP_CONTROL_OPERATION_SHARE_TEXT);
-       app_control_add_extra_data(m_Handle, APP_CONTROL_DATA_TEXT, text.c_str());
-       return AppControlHandle::launch();
-}
-
index 4a0272d8cf723dac1db779508e06ba5a98d0f2ec..6c8b0851d592104107292b292ece87e0a51ffb5e 100644 (file)
@@ -57,9 +57,6 @@ namespace Msg {
                        ContactManager &getContactManager();
                        const ContactManager &getContactManager() const;
 
-                       ThumbnailMaker &getThumbnailMaker();
-                       const ThumbnailMaker &getThumbnailMaker() const;
-
                        SystemSettingsManager &getSysSettingsManager();
                        const SystemSettingsManager &getSysSettingsManager() const;
 
index da81632f6af75a837f5686f4a4487ba243d34e57..169ce317feeb930f3df8da2d8390b0b0a8c74290 100644 (file)
@@ -31,7 +31,6 @@
 #include "Config.h"
 #include "SystemSettingsManager.h"
 #include "PopupManager.h"
-#include "ThumbnailMaker.h"
 #include "AppControlLauncher.h"
 
 #include <assert.h>
@@ -181,18 +180,6 @@ const PopupManager &App::getPopupManager() const
        return const_cast<App*>(this)->getPopupManager();
 }
 
-ThumbnailMaker &App::getThumbnailMaker()
-{
-       if (!m_pThumbnailMaker)
-               m_pThumbnailMaker = new ThumbnailMaker(*this);
-       return *m_pThumbnailMaker;
-}
-
-const ThumbnailMaker &App::getThumbnailMaker() const
-{
-       return const_cast<App*>(this)->getThumbnailMaker();
-}
-
 SystemSettingsManager &App::getSysSettingsManager()
 {
        if (!m_pSysSettingsManager)
@@ -282,7 +269,6 @@ bool App::onCreate()
        getMsgEngine();
        getSysSettingsManager();
        getContactManager();
-       getThumbnailMaker();
 
        m_pNaviFrame = new NaviFrameController(*this);
        m_pWindow->setContent(*m_pNaviFrame);
diff --git a/src/Common/Utils/inc/ThumbnailMaker.h b/src/Common/Utils/inc/ThumbnailMaker.h
deleted file mode 100644 (file)
index ddcdfd4..0000000
+++ /dev/null
@@ -1,83 +0,0 @@
-/*
- * Copyright 2016 Samsung Electronics Co., Ltd
- *
- * Licensed under the Flora License, Version 1.1 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://floralicense.org/license/
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef ThumbnailMaker_h_
-#define ThumbnailMaker_h_
-
-#include <Evas.h>
-#include <string>
-#include <unordered_map>
-#include "MsgAddress.h"
-#include "ContactManager.h"
-
-namespace Msg
-{
-       class App;
-       typedef long ThumbId;
-       const ThumbId invalidThumbId = -1;
-
-       class ThumbnailMaker
-               : public IContactManagerListener
-       {
-               public:
-                       enum DefaultThumbs
-                       {
-                               SingleThumb = 0, // Static thumb
-                               GroupThumb,             // Static thumb
-                               OwnerThumb,             // Mutable thumb
-                               MaxDefaultThumb
-                       };
-
-               public:
-                       ThumbnailMaker(App &app);
-                       virtual ~ThumbnailMaker();
-                       ThumbnailMaker(ThumbnailMaker&) = delete;
-                       ThumbnailMaker &operator=(ThumbnailMaker&) = delete;
-
-                       ThumbId getThumbId(const MsgAddress &address);
-                       ThumbId getThumbId(const std::string &address);
-                       ThumbId getThumbId(DefaultThumbs thumb);
-                       Evas_Object *getThumb(Evas_Object *parent, ThumbId id, int thumbSize);
-                       Evas_Object *getThumb(Evas_Object *parent, const std::string &path, int thumbSize);
-
-               private:
-                       typedef std::unordered_map<std::string, ThumbId> ContactsMap;
-                       typedef std::unordered_map<ThumbId, Evas_Object*> OriginsMap;
-
-               private:
-                       void invalidate();
-                       ThumbId getThumbIdFromFile(const std::string &path);
-                       Evas_Object *makeMask(Evas_Object *parent, int size);
-                       Evas_Object *makeImage(Evas_Object *parent, const std::string &path, int size);
-                       Evas_Object *makeOriginThumb(Evas_Object *parent, const std::string &path);
-                       Evas_Object *makeDefaultOriginThumb(Evas_Object *parent, const std::string &path);
-                       const std::string &defaultThumbsToStr(DefaultThumbs thumb);
-                       std::string defaultThumbsToPath(DefaultThumbs thumb);
-
-                       //IContactManagerListener
-                       void onContactChanged() override;
-
-               private:
-                       const int maxStaticThumbId = GroupThumb;
-
-                       App &m_App;
-                       ContactsMap m_ContactsMap;
-                       OriginsMap m_OriginsMap;
-                       ThumbId m_CurrentId;
-       };
-}
-
-#endif /* ThumbnailMaker_h_ */
diff --git a/src/Common/Utils/src/ThumbnailMaker.cpp b/src/Common/Utils/src/ThumbnailMaker.cpp
deleted file mode 100644 (file)
index 45e5ef0..0000000
+++ /dev/null
@@ -1,233 +0,0 @@
-/*
- * Copyright 2016 Samsung Electronics Co., Ltd
- *
- * Licensed under the Flora License, Version 1.1 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://floralicense.org/license/
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include "ThumbnailMaker.h"
-#include "PathUtils.h"
-#include "Logger.h"
-#include "App.h"
-#include <Elementary.h>
-#include <stdlib.h>
-
-using namespace Msg;
-
-const int defaultCache = 512;
-#define DEFAULT_THUMB_SIZE ELM_SCALE_SIZE(98)
-#define COLOR_BLUE 61, 185, 204, 255
-#define RAND (rand() % 220)
-#define COLOR_RAND RAND, RAND, RAND, 255
-#define MSG_THUMB_STYLE_LIST   "list_ic_user_thumb_masking"
-
-
-ThumbnailMaker::ThumbnailMaker(App &app)
-       : m_App(app)
-       , m_ContactsMap()
-       , m_OriginsMap()
-       , m_CurrentId(-1)
-{
-       m_App.getContactManager().addListener(*this);
-       m_ContactsMap.reserve(defaultCache);
-       m_OriginsMap.reserve(defaultCache);
-
-       for (int i = 0; i <= maxStaticThumbId; i++) {
-               getThumbId((DefaultThumbs)i);
-       }
-}
-
-ThumbnailMaker::~ThumbnailMaker()
-{
-       m_App.getContactManager().removeListener(*this);
-}
-
-ThumbId ThumbnailMaker::getThumbId(const MsgAddress &address)
-{
-       return getThumbId(address.getAddress());
-}
-
-ThumbId ThumbnailMaker::getThumbId(const std::string &address)
-{
-       ContactAddressRef contact = m_App.getContactManager().getContactAddress(address);
-       return contact ? getThumbIdFromFile(contact->getThumbnailPath()) : getThumbId(SingleThumb);
-}
-
-ThumbId ThumbnailMaker::getThumbIdFromFile(const std::string &path)
-{
-       if (path.empty()) {
-               return getThumbId(SingleThumb);
-       } else {
-               auto it = m_ContactsMap.find(path);
-               if (it != m_ContactsMap.end())
-                       return it->second;
-
-               Evas_Object *origin = makeOriginThumb(m_App.getWindow(), path);
-               m_OriginsMap[++m_CurrentId] = origin;
-               m_ContactsMap[path] = m_CurrentId;
-               return m_CurrentId;
-       }
-}
-
-ThumbId ThumbnailMaker::getThumbId(DefaultThumbs thumb)
-{
-       auto it = m_ContactsMap.find(defaultThumbsToStr(thumb));
-       if (it != m_ContactsMap.end()) {
-               return it->second;
-       } else {
-               Evas_Object *origin = nullptr;
-               if (thumb != OwnerThumb) {
-                       origin = makeDefaultOriginThumb(m_App.getWindow(), defaultThumbsToPath(thumb));
-               } else {
-                       ContactMyProfileRef ownerProfile = m_App.getContactManager().getOwnerProfile();
-                       origin = ownerProfile ? makeOriginThumb(m_App.getWindow(), ownerProfile->getThumbnailPath()) :
-                                                                       makeDefaultOriginThumb(m_App.getWindow(), defaultThumbsToPath(SingleThumb));
-               }
-               m_OriginsMap[++m_CurrentId] = origin;
-               m_ContactsMap[defaultThumbsToStr(thumb)] = m_CurrentId;
-               return m_CurrentId;
-       }
-}
-
-Evas_Object *ThumbnailMaker::getThumb(Evas_Object *parent, ThumbId id, int thumbSize)
-{
-       auto it = m_OriginsMap.find(id);
-       if (it == m_OriginsMap.end())
-       {
-               MSG_LOG_ERROR("Invalid thumbnail id");
-               return nullptr;
-       }
-
-       Evas_Object *origin = it->second;
-       Evas_Object *ic = evas_object_image_filled_add(evas_object_evas_get(parent));
-       evas_object_image_source_set(ic, origin);
-       int scaledThumbSize = ELM_SCALE_SIZE(thumbSize);
-       evas_object_size_hint_min_set(ic, scaledThumbSize, scaledThumbSize);
-       evas_object_size_hint_max_set(ic, scaledThumbSize, scaledThumbSize);
-       View::expand(ic);
-       evas_object_show(ic);
-       return ic;
-}
-
-Evas_Object *ThumbnailMaker::getThumb(Evas_Object *parent, const std::string &path, int thumbSize)
-{
-       int scaledThumbSize = ELM_SCALE_SIZE(thumbSize);
-
-       Evas_Object *ic = makeMask(parent, scaledThumbSize);
-       Evas_Object *img = makeImage(ic, path, scaledThumbSize);
-       elm_object_part_content_set(ic, "content", img);
-       return ic;
-}
-
-Evas_Object *ThumbnailMaker::makeOriginThumb(Evas_Object *parent, const std::string &path)
-{
-       Evas_Object *ic = makeMask(parent, DEFAULT_THUMB_SIZE);
-       Evas_Object *img = makeImage(ic, path, DEFAULT_THUMB_SIZE);
-       elm_object_part_content_set(ic, "content", img);
-       evas_object_move(ic, -DEFAULT_THUMB_SIZE, -DEFAULT_THUMB_SIZE);
-       return ic;
-}
-
-Evas_Object *ThumbnailMaker::makeDefaultOriginThumb(Evas_Object *parent, const std::string &path)
-{
-       Evas_Object *img = makeImage(parent, path, DEFAULT_THUMB_SIZE);
-       evas_object_color_set(img, COLOR_BLUE);
-       evas_object_resize(img, DEFAULT_THUMB_SIZE, DEFAULT_THUMB_SIZE);
-       evas_object_move(img, -DEFAULT_THUMB_SIZE, -DEFAULT_THUMB_SIZE);
-       evas_object_show(img);
-       return img;
-}
-
-Evas_Object *ThumbnailMaker::makeImage(Evas_Object *parent, const std::string &path, int size)
-{
-       Evas_Object *img = elm_image_add(parent);
-       elm_image_file_set(img, path.c_str(), nullptr);
-       evas_object_size_hint_min_set(img, size, size);
-       evas_object_size_hint_max_set(img, size, size);
-       elm_image_aspect_fixed_set(img, true);
-       elm_image_fill_outside_set(img, true);
-       return img;
-}
-
-Evas_Object *ThumbnailMaker::makeMask(Evas_Object *parent, int size)
-{
-       Evas_Object *ic = elm_layout_add(parent);
-       static std::string edjePath = PathUtils::getResourcePath(THUMBNAIL_EDJ_PATH);
-       elm_layout_file_set(ic, edjePath.c_str(), MSG_THUMB_STYLE_LIST);
-       evas_object_resize(ic, size, size);
-       evas_object_show(ic);
-       return ic;
-}
-
-void ThumbnailMaker::invalidate()
-{
-       MSG_LOG("");
-
-       // m_OriginsMap:
-       auto originsIt = m_OriginsMap.begin();
-
-       for (; originsIt != m_OriginsMap.end();) {
-               if (originsIt->first > maxStaticThumbId) {
-                       MSG_LOG(originsIt->first);
-                       evas_object_del(originsIt->second);
-                       originsIt = m_OriginsMap.erase(originsIt);
-               } else {
-                       ++originsIt;
-               }
-       }
-
-       // m_ContactsMap:
-       auto contactsIt = m_ContactsMap.begin();
-       for (; contactsIt != m_ContactsMap.end();) {
-               if (contactsIt->second > maxStaticThumbId)
-                       contactsIt = m_ContactsMap.erase(contactsIt);
-               else
-                       ++contactsIt;
-       }
-}
-
-const std::string &ThumbnailMaker::defaultThumbsToStr(DefaultThumbs thumb)
-{
-       static const std::string sThumb = "SingleThumb";
-       static const std::string gThumb = "GroupThumb";
-       static const std::string oThumb = "OwnerThumb";
-       static const std::string emptyThumb = "";
-       switch (thumb)
-       {
-               case SingleThumb:
-                       return sThumb;
-               case GroupThumb:
-                       return gThumb;
-               case OwnerThumb:
-                       return oThumb;
-               default :
-                       return emptyThumb;
-       }
-}
-
-std::string ThumbnailMaker::defaultThumbsToPath(DefaultThumbs thumb)
-{
-       switch (thumb)
-       {
-               case SingleThumb:
-                       return PathUtils::getResourcePath(THUMB_CONTACT_IMG_PATH);
-               case GroupThumb:
-                       return PathUtils::getResourcePath(THUMB_GROUP_IMG_PATH);
-               default :
-                       return "";
-       }
-}
-
-void ThumbnailMaker::onContactChanged()
-{
-       invalidate();
-}
diff --git a/src/Common/View/inc/MbeRecipientViewItem.h b/src/Common/View/inc/MbeRecipientViewItem.h
deleted file mode 100644 (file)
index d3a8e3c..0000000
+++ /dev/null
@@ -1,120 +0,0 @@
-/*
- * Copyright 2016 Samsung Electronics Co., Ltd
- *
- * Licensed under the Flora License, Version 1.1 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://floralicense.org/license/
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef MbeRecipientItem_h_
-#define MbeRecipientItem_h_
-
-#include "ViewItem.h"
-#include "MsgAddress.h"
-
-namespace Msg
-{
-       class MbeRecipientsView;
-
-       /**
-        * @brief Wraps all basic multibutton entry item operations.
-        */
-       class MbeRecipientItem
-               : public ViewItem
-       {
-               friend class MbeRecipientsView;
-
-               public:
-                       /**
-                        * @brief Constructs instance of MbeRecipientItem with a specified display-name, address etc.
-                        * @param[in] address recipient-address(phone number or email).
-                        * @param[in] dispName displayable mbe-item text.
-                        * @param[in] addressType type of recipient address.
-                        * @param[in] recipType type of recipient.
-                        */
-                       MbeRecipientItem(const std::string &address, const std::string &dispName,
-                                       MsgAddress::AddressType addressType, MsgAddress::RecipientType recipType = MsgAddress::To);
-
-                       /**
-                        * @brief Gets recipient's display-name.
-                        * @return display-name.
-                        */
-                       const std::string &getDispName() const;
-
-                       /**
-                        * @brief Gets recipient address.
-                        * @return recipient address.
-                        */
-                       const std::string &getAddress() const;
-
-                       /**
-                        * @brief Gets address-type.
-                        * @return address-type.
-                        */
-                       MsgAddress::AddressType getAddressType() const;
-
-                       /**
-                        * @brief Gets recipient type.
-                        * @return recipient type.
-                        */
-                       MsgAddress::RecipientType getRecipType() const;
-
-                       /**
-                        * @brief Sets new display name.
-                        * @param[in] dispName new display name.
-                        */
-                       void setDispName(const std::string &dispName);
-
-               private:
-                       std::string m_Address;
-                       std::string m_DispName;
-                       MsgAddress::AddressType m_AddressType;
-                       MsgAddress::RecipientType m_RecipType;
-       };
-
-       inline MbeRecipientItem::MbeRecipientItem(const std::string &address, const std::string &dispName,
-                       MsgAddress::AddressType addressType, MsgAddress::RecipientType recipType)
-               : m_Address(address)
-               , m_DispName(dispName)
-               , m_AddressType(addressType)
-               , m_RecipType(recipType)
-       {
-       }
-
-       inline const std::string &MbeRecipientItem::getDispName() const
-       {
-               return m_DispName;
-       }
-
-       inline const std::string &MbeRecipientItem::getAddress() const
-       {
-               return m_Address;
-       }
-
-       inline MsgAddress::AddressType MbeRecipientItem::getAddressType() const
-       {
-               return m_AddressType;
-       }
-
-       inline MsgAddress::RecipientType MbeRecipientItem::getRecipType() const
-       {
-               return m_RecipType;
-       }
-
-       inline void MbeRecipientItem::setDispName(const std::string &dispName)
-       {
-               m_DispName = dispName;
-               if (getElmObjItem())
-                       setText(dispName);
-       }
-}
-
-#endif /* MbeRecipientItem_h_ */
diff --git a/src/Common/View/inc/MbeRecipientsView.h b/src/Common/View/inc/MbeRecipientsView.h
deleted file mode 100644 (file)
index e0271ea..0000000
+++ /dev/null
@@ -1,107 +0,0 @@
-/*
- * Copyright 2016 Samsung Electronics Co., Ltd
- *
- * Licensed under the Flora License, Version 1.1 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://floralicense.org/license/
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef MbeRecipientsView_h_
-#define MbeRecipientsView_h_
-
-#include "View.h"
-#include "MbeRecipientViewItem.h"
-
-#include <vector>
-
-namespace Msg
-{
-       class IMbeRecipientsListener;
-
-       /**
-        * @brief Wraps all basic multibutton entry(mbe) operations.
-        */
-       class MbeRecipientsView
-               : public View
-       {
-               public:
-                       MbeRecipientsView(Evas_Object *parent);
-                       virtual ~MbeRecipientsView();
-
-                       /**
-                        * @brief Appends new item into mbe.
-                        * @param[in] item new item to be appended.
-                        */
-                       void appendItem(MbeRecipientItem &item);
-
-                       /**
-                        * @brief Gets number of mbe items.
-                        * @return items count.
-                        */
-                       int getItemsCount() const;
-
-                       /**
-                        * @brief Gets mbe items collection.
-                        * @return mbe items.
-                        */
-                       std::vector<MbeRecipientItem*> getItems() const;
-
-                       /**
-                        * @brief Gets mbe's selected item.
-                        * @return selected item or nullptr if no item is selected.
-                        */
-                       MbeRecipientItem *getSelectedItem() const;
-
-                       /**
-                        * @brief Checks whether mbe is empty or not.
-                        * @return true if mbe is empty false otherwise.
-                        */
-                       bool isEmpty() const;
-
-                       /**
-                        * @brief Removes all mbe items.
-                        */
-                       void clear();
-
-                       void setListener(IMbeRecipientsListener *pListener);
-               private:
-                       void onMbeItemClicked(Evas_Object *obj, void *eventInfo);
-                       void onMbeChanged(Evas_Object *obj, void *eventInfo);
-
-
-               private:
-                       IMbeRecipientsListener *m_pListener;
-                       MbeRecipientItem *m_pSelectedItem;
-                       Ecore_Job *m_pChangedJob;
-       };
-
-       /**
-        * @brief A listener class that should be implemented by all mbe event subscribers.
-        */
-       class IMbeRecipientsListener
-       {
-       public:
-               virtual ~IMbeRecipientsListener() {};
-
-               /**
-                * @brief Notification about some mbe item being clicked.
-                * @param[in] item clicked item.
-                */
-               virtual void onMbeItemClicked(MbeRecipientItem &item) {};
-
-               /**
-                * @brief Notification about mbe content being changed(Item was added or deleted).
-                */
-               virtual void onMbeChanged() {};
-       };
-}
-
-#endif /* MbeRecipientsView_h_ */
diff --git a/src/Common/View/inc/PopupAttachmentListItem.h b/src/Common/View/inc/PopupAttachmentListItem.h
deleted file mode 100644 (file)
index 8508826..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Copyright 2016 Samsung Electronics Co., Ltd
- *
- * Licensed under the Flora License, Version 1.1 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://floralicense.org/license/
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef PopupAttachmentListItem_h_
-#define PopupAttachmentListItem_h_
-
-#include "PopupListItem.h"
-
-namespace Msg
-{
-
-       /**
-        * @brief A class of popup-for attach files
-        */
-       class PopupAttachmentListItem
-               : public PopupCheckListItem
-       {
-               public:
-                       PopupAttachmentListItem(PopupList &parent, const std::string &text, const std::string &path,
-                                       PopupListItemPressedCb cb, void *userData);
-                       virtual ~PopupAttachmentListItem();
-
-               public:
-                       const std::string &getFilePath() const;
-
-               private:
-                       std::string m_FilePath;
-       };
-}
-#endif /* PopupAttachmentListItem_h_ */
diff --git a/src/Common/View/inc/PopupList.h b/src/Common/View/inc/PopupList.h
deleted file mode 100644 (file)
index 856d6db..0000000
+++ /dev/null
@@ -1,78 +0,0 @@
-/*
- * Copyright 2016 Samsung Electronics Co., Ltd
- *
- * Licensed under the Flora License, Version 1.1 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://floralicense.org/license/
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef PopupList_h_
-#define PopupList_h_
-
-#include "Popup.h"
-#include "ListView.h"
-#include "PopupListItem.h"
-
-namespace Msg
-{
-       /**
-        * @brief A popup with list of available popup items.
-        */
-       class PopupList
-               : public Popup
-               , private IListViewListener
-       {
-               public:
-                       PopupList();
-                       virtual ~PopupList();
-
-                       /**
-                        * @brief Appends specified existing item to popup list.
-                        * @param[in] item an item created outside to be appended.
-                        */
-                       void appendItem(PopupListItem &item);
-
-                       /**
-                        * @brief Creates an item with a single string based on specified parameters and appends it to popup list.
-                        * @param[in] text a text displayed on popup list item.
-                        * @param[in] cb a callback raised by tap on this item.
-                        * @param[in] userData user data passed to item's on-press callback.
-                        */
-                       void appendItem(const std::string &text, PopupListItemPressedCb cb, void *userData);
-
-                       /**
-                        * Creates an item with a single string and a stored filepath based on specified parameters and appends it to popup list.
-                        * @param[in] text a text displayed on popup list item.
-                        * @param[in] path filepath.
-                        * @param[in] cb a callback raised by tap on this item.
-                        * @param[in] userData user data passed to item's on-press callback.
-                        */
-                       void appendItem(const std::string &text, const std::string &path, PopupListItemPressedCb cb, void *userData);
-
-                       /**
-                        * @brief Gets nested list-view.
-                        * @return list-view.
-                        */
-                       ListView &getListView();
-                       const ListView &getListView() const;
-
-               private:
-                       void onListItemSelected(ListItem &listItem) override;
-
-                       void create();
-                       Evas_Object *createList(Evas_Object *parent);
-
-               private:
-                       ListView *m_pList;
-       };
-}
-
-#endif /* PopupList_h_ */
diff --git a/src/Common/View/inc/PopupListItem.h b/src/Common/View/inc/PopupListItem.h
deleted file mode 100644 (file)
index a220c49..0000000
+++ /dev/null
@@ -1,80 +0,0 @@
-/*
- * Copyright 2016 Samsung Electronics Co., Ltd
- *
- * Licensed under the Flora License, Version 1.1 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://floralicense.org/license/
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef PopupListItem_h_
-#define PopupListItem_h_
-
-#include "ListItem.h"
-
-namespace Msg
-{
-       class PopupList;
-       class PopupListItem;
-
-       /** @brief Callback raised when popup-list item was clicked.*/
-       typedef void (*PopupListItemPressedCb)(PopupListItem &item, void *userData);
-       #define POPUPLIST_ITEM_PRESSED_CB(ClassName, method) [](PopupListItem &item, void *userData) \
-       {                                                                                                                                                                                       \
-               static_cast<ClassName*>(userData)->method(item);                                                                                 \
-       }
-
-       /**
-        * @brief Generic Popup-list item class
-        */
-       class PopupListItem: public ListItem
-       {
-       public:
-               PopupListItem(PopupList &parent, PopupListItemPressedCb cb, void *userData);
-               PopupList &getParent();
-               void fireCallback();
-       private:
-               PopupList &m_Parent;
-               PopupListItemPressedCb m_Cb;
-               void *m_pUserData;
-       };
-
-       /**
-        * @brief A class of popup-item with single text displayed.
-        */
-       class PopupTextListItem: public PopupListItem
-       {
-       public:
-               PopupTextListItem(PopupList &parent, const std::string &text, PopupListItemPressedCb cb, void *userData);
-               virtual ~PopupTextListItem();
-       private:
-               std::string getText(ListItem &item, const char *part) override;
-       private:
-               std::string m_Text;
-       };
-
-       /**
-        * @brief A class of popup-item with text and check field.
-        */
-       class PopupCheckListItem: public PopupListItem
-       {
-               public:
-                       PopupCheckListItem(PopupList &parent, const std::string &text, PopupListItemPressedCb cb, void *userData);
-                       virtual ~PopupCheckListItem();
-
-               private:
-                       const char *getCheckPart(ListItem &item) override;
-                       std::string getText(ListItem &item, const char *part) override;
-               private:
-                       std::string m_Text;
-       };
-}
-
-#endif /* PopupListItem_h_ */
index 91d4814c56223ae5778589daf5b76d7270486d1f..b79d73a264dae06577d0d534a248459c678d5062 100644 (file)
@@ -17,7 +17,6 @@
 #ifndef PopupManager_h_
 #define PopupManager_h_
 
-#include "PopupList.h"
 #include "BasePopup.h"
 
 #include <efl_extension.h>
diff --git a/src/Common/View/inc/SelectAllListItem.h b/src/Common/View/inc/SelectAllListItem.h
deleted file mode 100644 (file)
index 2a54c75..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Copyright 2016 Samsung Electronics Co., Ltd
- *
- * Licensed under the Flora License, Version 1.1 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://floralicense.org/license/
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef SelectAllListItem_h_
-#define SelectAllListItem_h_
-
-#include "ListItem.h"
-
-#include <string>
-
-namespace Msg
-{
-       class SelectAllListItem
-               : public ListItem
-       {
-               public:
-                       SelectAllListItem();
-                       virtual ~SelectAllListItem();
-
-               private:
-                       const char *getCheckPart(ListItem &item) override;
-                       std::string getText(ListItem &item, const char *part) override;
-
-               private:
-                       std::string m_Text;
-       };
-}
-
-#endif // SelectAllListItem_h_
diff --git a/src/Common/View/src/MbeRecipientsView.cpp b/src/Common/View/src/MbeRecipientsView.cpp
deleted file mode 100644 (file)
index 70cf9f9..0000000
+++ /dev/null
@@ -1,117 +0,0 @@
-/*
- * Copyright 2016 Samsung Electronics Co., Ltd
- *
- * Licensed under the Flora License, Version 1.1 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://floralicense.org/license/
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include "MbeRecipientsView.h"
-#include "Callback.h"
-
-using namespace Msg;
-
-MbeRecipientsView::MbeRecipientsView(Evas_Object *parent)
-       : m_pListener(nullptr)
-       , m_pSelectedItem(nullptr)
-       , m_pChangedJob(nullptr)
-{
-       setEo(elm_multibuttonentry_add(parent));
-       elm_multibuttonentry_editable_set(getEo(), false);
-       elm_multibuttonentry_expanded_set(getEo(), true);
-       elm_object_tree_focus_allow_set(getEo(), false);
-
-       addSmartCb("item,clicked", makeCbFirst(&MbeRecipientsView::onMbeItemClicked), this);
-       addSmartCb("item,added", makeCbFirst(&MbeRecipientsView::onMbeChanged), this);
-       addSmartCb("item,deleted", makeCbFirst(&MbeRecipientsView::onMbeChanged), this);
-}
-
-MbeRecipientsView::~MbeRecipientsView()
-{
-       if (m_pChangedJob)
-       {
-               ecore_job_del(m_pChangedJob);
-               m_pChangedJob = nullptr;
-       }
-}
-
-void MbeRecipientsView::appendItem(MbeRecipientItem &item)
-{
-       Elm_Object_Item *elmItem = elm_multibuttonentry_item_append(getEo(), item.getDispName().c_str(), nullptr, &item);
-       item.setElmObjItem(elmItem);
-}
-
-int MbeRecipientsView::getItemsCount() const
-{
-       unsigned int res = 0;
-       const Eina_List* items = elm_multibuttonentry_items_get(getEo());
-       if (items)
-               res = eina_list_count(items);
-       return res;
-}
-
-std::vector<MbeRecipientItem*> MbeRecipientsView::getItems() const
-{
-       std::vector<MbeRecipientItem*> res;
-
-       Elm_Object_Item *elmItem = elm_multibuttonentry_first_item_get(getEo());
-       while (elmItem)
-       {
-               MbeRecipientItem *item = static_cast<MbeRecipientItem*>(elm_object_item_data_get(elmItem));
-               res.push_back(item);
-               elmItem = elm_multibuttonentry_item_next_get(elmItem);
-       }
-
-       return res;
-}
-
-MbeRecipientItem *MbeRecipientsView::getSelectedItem() const
-{
-       MbeRecipientItem *pSelected = ViewItem::staticCast<MbeRecipientItem*>(elm_multibuttonentry_selected_item_get(getEo()));
-       return pSelected ? pSelected : m_pSelectedItem;
-}
-
-bool MbeRecipientsView::isEmpty() const
-{
-       return elm_multibuttonentry_first_item_get(getEo()) == nullptr;
-}
-
-void MbeRecipientsView::clear()
-{
-       elm_multibuttonentry_clear(getEo());
-}
-
-void MbeRecipientsView::setListener(IMbeRecipientsListener *pListener)
-{
-       m_pListener = pListener;
-}
-
-void MbeRecipientsView::onMbeItemClicked(Evas_Object *obj, void *eventInfo)
-{
-       m_pSelectedItem = ViewItem::staticCast<MbeRecipientItem*>(eventInfo);
-       if (m_pListener)
-               m_pListener->onMbeItemClicked(*m_pSelectedItem);
-}
-
-void MbeRecipientsView::onMbeChanged(Evas_Object *obj, void *eventInfo)
-{
-       if (!m_pChangedJob)
-               m_pChangedJob = ecore_job_add
-               (
-                       [](void *data)
-                       {
-                               MbeRecipientsView *self = static_cast<MbeRecipientsView*>(data);
-                               self->m_pChangedJob = nullptr;
-                               if (self->m_pListener)
-                                       self->m_pListener->onMbeChanged();
-                       },
-                       this);
-}
diff --git a/src/Common/View/src/PopupAttachmentListItem.cpp b/src/Common/View/src/PopupAttachmentListItem.cpp
deleted file mode 100644 (file)
index 660d72c..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * Copyright 2016 Samsung Electronics Co., Ltd
- *
- * Licensed under the Flora License, Version 1.1 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://floralicense.org/license/
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include "PopupAttachmentListItem.h"
-
-using namespace Msg;
-
-PopupAttachmentListItem::PopupAttachmentListItem(PopupList &parent, const std::string &text, const std::string &path,
-                       PopupListItemPressedCb cb, void *userData)
-       : PopupCheckListItem(parent, text, cb, userData)
-       , m_FilePath(path)
-{
-}
-
-PopupAttachmentListItem::~PopupAttachmentListItem()
-{
-}
-
-const std::string &PopupAttachmentListItem::getFilePath() const
-{
-       return m_FilePath;
-}
diff --git a/src/Common/View/src/PopupList.cpp b/src/Common/View/src/PopupList.cpp
deleted file mode 100644 (file)
index 6d42b33..0000000
+++ /dev/null
@@ -1,83 +0,0 @@
-/*
- * Copyright 2016 Samsung Electronics Co., Ltd
- *
- * Licensed under the Flora License, Version 1.1 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://floralicense.org/license/
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include "PopupList.h"
-#include "PopupAttachmentListItem.h"
-#include <string.h>
-
-using namespace Msg;
-
-PopupList::PopupList()
-       : Popup()
-       , m_pList(nullptr)
-{
-       create();
-}
-
-PopupList::~PopupList()
-{
-}
-
-void PopupList::appendItem(PopupListItem &item)
-{
-       m_pList->appendItem(item);
-}
-
-void PopupList::appendItem(const std::string &text, PopupListItemPressedCb cb, void *userData)
-{
-       m_pList->appendItem(*new PopupTextListItem(*this, text, cb, userData));
-}
-
-void PopupList::appendItem(const std::string &text, const std::string &path, PopupListItemPressedCb cb, void *userData)
-{
-       m_pList->appendItem(*new PopupAttachmentListItem(*this, text, path, cb, userData));
-}
-
-void PopupList::create()
-{
-       elm_object_style_set(getEo(), "theme_bg");
-       Evas_Object *list = createList(getEo());
-       Popup::setContent(list);
-
-       //set popup's behavior
-       setDismissByOutsideTapFlag(true);
-}
-
-Evas_Object *PopupList::createList(Evas_Object *parent)
-{
-       m_pList = new ListView(parent);
-       m_pList->setListener(this);
-       m_pList->show();
-       m_pList->setMultiSelection(false);
-       m_pList->setMode(ELM_LIST_EXPAND);
-       return *m_pList;
-}
-
-ListView &PopupList::getListView()
-{
-       return *m_pList;
-}
-
-const ListView &PopupList::getListView() const
-{
-       return *m_pList;
-}
-
-void PopupList::onListItemSelected(ListItem &listItem)
-{
-       PopupListItem &it = static_cast<PopupListItem&>(listItem);
-       it.fireCallback();
-}
diff --git a/src/Common/View/src/PopupListItem.cpp b/src/Common/View/src/PopupListItem.cpp
deleted file mode 100644 (file)
index bc7a5ae..0000000
+++ /dev/null
@@ -1,79 +0,0 @@
-/*
- * Copyright 2016 Samsung Electronics Co., Ltd
- *
- * Licensed under the Flora License, Version 1.1 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://floralicense.org/license/
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include "PopupListItem.h"
-
-using namespace Msg;
-
-const ListItemStyleRef listItemStyle = ListItemStyle::create("type1");
-
-PopupListItem::PopupListItem(PopupList &parent, PopupListItemPressedCb cb, void *userData)
-       : ListItem(listItemStyle)
-       , m_Parent(parent)
-       , m_Cb(cb)
-       , m_pUserData(userData)
-{
-}
-
-void PopupListItem::fireCallback()
-{
-       if (m_Cb)
-               m_Cb(*this, m_pUserData);
-}
-
-PopupList &PopupListItem::getParent()
-{
-       return m_Parent;
-}
-
-PopupTextListItem::PopupTextListItem(PopupList &parent, const std::string &text, PopupListItemPressedCb cb, void *userData)
-       : PopupListItem(parent, cb, userData)
-       , m_Text(text)
-{
-}
-
-PopupTextListItem::~PopupTextListItem()
-{
-}
-
-std::string PopupTextListItem::getText(ListItem &item, const char *part)
-{
-       if (strcmp(part, "elm.text") == 0)
-               return m_Text;
-       return std::string();
-}
-
-PopupCheckListItem::PopupCheckListItem(PopupList &parent, const std::string &text, PopupListItemPressedCb cb, void *userData)
-       : PopupListItem(parent, cb, userData)
-       , m_Text(text)
-{
-}
-
-PopupCheckListItem::~PopupCheckListItem()
-{
-}
-
-const char *PopupCheckListItem::getCheckPart(ListItem &item)
-{
-       return "elm.swallow.end";
-}
-
-std::string PopupCheckListItem::getText(ListItem &item, const char *part)
-{
-       if (strcmp(part, "elm.text") == 0)
-               return m_Text;
-       return std::string();
-}
index 940eeef899fab462c6adaed3ec9a8b8493d56874..c3d3db929bb777b5e38848210ed434034d1ac04f 100644 (file)
@@ -17,6 +17,7 @@
 #include "PopupManager.h"
 #include "Window.h"
 #include "Callback.h"
+#include "Logger.h"
 
 #include <efl_extension.h>
 #include <algorithm>
diff --git a/src/Common/View/src/SelectAllListItem.cpp b/src/Common/View/src/SelectAllListItem.cpp
deleted file mode 100644 (file)
index cf31200..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * Copyright 2016 Samsung Electronics Co., Ltd
- *
- * Licensed under the Flora License, Version 1.1 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://floralicense.org/license/
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include "SelectAllListItem.h"
-#include "Config.h"
-
-#include <string.h>
-
-using namespace Msg;
-
-namespace
-{
-       ListItemStyleRef style = ListItemStyle::create("type1");
-       const char *textPart = "elm.text";
-       const char *checkPart = "elm.swallow.end";
-}
-
-SelectAllListItem::SelectAllListItem()
-       : ListItem(style, ELM_GENLIST_ITEM_NONE)
-{
-}
-
-SelectAllListItem::~SelectAllListItem()
-{
-}
-
-const char *SelectAllListItem::getCheckPart(ListItem &item)
-{
-       return checkPart;
-}
-
-std::string SelectAllListItem::getText(ListItem &item, const char *part)
-{
-       if (strcmp(part, textPart) == 0)
-       {
-               return msg("WDS_MSG_OPT_SELECT_ALL_ABB");
-       }
-
-       return "";
-}
-
-
index a80036540b26fdb54aff6933070b5ee3d09fdcd3..3839dec623f96c4db5d1b4eaeea07db9b060ed4d 100644 (file)
@@ -17,7 +17,6 @@
 #include "ThreadListViewItem.h"
 #include "Logger.h"
 #include "PathUtils.h"
-#include "ThumbnailMaker.h"
 #include "ListView.h"
 #include "TextDecorator.h"
 #include "Resource.h"