void notifyContentChanged();
void updateTextMetricIfNeeded();
void showTooLargePopup(const std::list <std::string> &tooBigFiles);
- void showTooMuchAttachedPopup(int willBeAttached);
void showTooMuchAttachedPopup();
void showMaxCharactersPopup();
void showResizingPopup();
PopupList &createPopupList(const std::string &title);
void onTooLargePopupDel(Evas_Object *obj, void *eventInfo);
- void onTooMuchAttachedPopupDel(Evas_Object *obj, void *eventInfo);
void onResizingPopupDel(Evas_Object *obj, void *eventInfo);
std::string createVcfFile(const AppControlComposeRef &cmd);
WorkingDirRef m_WorkingDir;
Ecore_Job *m_pOnChangedJob;
bool m_TooLargePopupShow;
- bool m_TooMuchAttachedPopupShow;
bool m_ResizingPopupShow;
bool m_MmsRecipFlag;
AttachmentHandler m_AttachmentHandler;
, m_WorkingDir(workingDir)
, m_pOnChangedJob(nullptr)
, m_TooLargePopupShow(false)
- , m_TooMuchAttachedPopupShow(false)
, m_ResizingPopupShow(false)
, m_MmsRecipFlag(false)
, m_AttachmentHandler(workingDir)
}
}
-void Body::showTooMuchAttachedPopup(int willBeAttached)
-{
- if (!m_TooMuchAttachedPopupShow)
- {
- Popup &popup = m_App.getPopupManager().getPopup();
- popup.addEventCb(EVAS_CALLBACK_DEL, EVAS_EVENT_CALLBACK(Body, onTooMuchAttachedPopupDel), this);
- popup.addButton(msgt("IDS_MSG_BUTTON_OK_ABB"), Popup::OkButtonId);
- int maxCount = m_App.getMsgEngine().getSettings().getAttachmentsMaxCount();
- std::string content(msgArgs("IDS_MSGF_BODY_MAXIMUM_NUMBER_OF_ATTACHMENTS_HP1SS_EXCEEDED_ONLY_FIRST_P2SS_WILL_BE_ADDED", std::to_string(maxCount).c_str(), std::to_string(willBeAttached).c_str()));
- popup.setContent(content);
- popup.show();
- m_TooMuchAttachedPopupShow = true;
- }
-}
-
void Body::showTooMuchAttachedPopup()
{
- if (!m_TooMuchAttachedPopupShow)
- {
- Popup &popup = m_App.getPopupManager().getPopup();
- popup.addEventCb(EVAS_CALLBACK_DEL, EVAS_EVENT_CALLBACK(Body, onTooMuchAttachedPopupDel), this);
- popup.addButton(msgt("IDS_MSG_BUTTON_OK_ABB"), Popup::OkButtonId);
- int maxCount = m_App.getMsgEngine().getSettings().getAttachmentsMaxCount();
- std::string content(msgArgs("IDS_MSGF_POP_MAXIMUM_NUMBER_OF_ATTACHMENTS_HPS_EXCEEDED", std::to_string(maxCount).c_str()));
- popup.setContent(content);
- popup.show();
- m_TooMuchAttachedPopupShow = true;
- }
+ int maxCount = m_App.getMsgEngine().getSettings().getAttachmentsMaxCount();
+ std::string content(msgArgs("IDS_MSG_TPOP_CANT_ADD_MORE_THAN_PD_ATTACHMENTS", maxCount));
+ notification_status_message_post(content.c_str());
}
void Body::showResizingPopup()
m_TooLargePopupShow = false;
}
-void Body::onTooMuchAttachedPopupDel(Evas_Object *obj, void *eventInfo)
-{
- MSG_LOG("");
- m_TooMuchAttachedPopupShow = false;
-}
-
void Body::onResizingPopupDel(Evas_Object *obj, void *eventInfo)
{
MSG_LOG("");