msgid "WDS_MSG_TPOP_UNABLE_TO_RETRIEVE_MESSAGE_MOBILE_DATA_OFF_ABB"
msgstr "يتعذر استرداد الرسالة. إن بيانات المحمول متوقفة عن التشغيل."
+msgid "WDS_MSG_ACBUTTON_OK_ABB"
+msgstr "حسناً"
+
msgid "WDS_MSG_TPOP_UNABLE_TO_RETRIEVE_MESSAGE_MOBILE_DATA_OFF_ABB"
msgstr "Mesajı çıxarmaq olmadı. Mobil data sönülüdür."
+msgid "WDS_MSG_ACBUTTON_OK_ABB"
+msgstr "OK"
+
msgid "WDS_MSG_TPOP_UNABLE_TO_RETRIEVE_MESSAGE_MOBILE_DATA_OFF_ABB"
msgstr "Не може да се извлече съобщението. Моб. данни са изключ."
+msgid "WDS_MSG_ACBUTTON_OK_ABB"
+msgstr "OK"
+
msgid "WDS_MSG_TPOP_UNABLE_TO_RETRIEVE_MESSAGE_MOBILE_DATA_OFF_ABB"
msgstr "No es pot recuperar el missatge. Dades mòbils apagades."
+msgid "WDS_MSG_ACBUTTON_OK_ABB"
+msgstr "ACCEPTAR"
+
msgid "WDS_MSG_TPOP_UNABLE_TO_RETRIEVE_MESSAGE_MOBILE_DATA_OFF_ABB"
msgstr "Zprávu nelze načíst. Mobilní data jsou vypnutá."
+msgid "WDS_MSG_ACBUTTON_OK_ABB"
+msgstr "OK"
+
msgid "WDS_MSG_TPOP_UNABLE_TO_RETRIEVE_MESSAGE_MOBILE_DATA_OFF_ABB"
msgstr "Kan ikke hente besked. Mobile data er deaktiveret."
+msgid "WDS_MSG_ACBUTTON_OK_ABB"
+msgstr "OK"
+
msgid "WDS_MSG_TPOP_UNABLE_TO_RETRIEVE_MESSAGE_MOBILE_DATA_OFF_ABB"
msgstr "Nachricht abrufen nicht möglich. Mobile Daten deaktiviert."
+msgid "WDS_MSG_ACBUTTON_OK_ABB"
+msgstr "OK"
+
msgid "WDS_MSG_TPOP_UNABLE_TO_RETRIEVE_MESSAGE_MOBILE_DATA_OFF_ABB"
msgstr "Αδυν. ανάκτησης μηνύμ. Τα δεδ. κιν. τηλ. είναι ανενεργά."
+msgid "WDS_MSG_ACBUTTON_OK_ABB"
+msgstr "OK"
+
msgid "WDS_MSG_TPOP_UNABLE_TO_RETRIEVE_MESSAGE_MOBILE_DATA_OFF_ABB"
msgstr "Unable to retrieve message. Mobile data off."
+msgid "WDS_MSG_ACBUTTON_OK_ABB"
+msgstr "OK"
+
msgid "WDS_MSG_TPOP_UNABLE_TO_RETRIEVE_MESSAGE_MOBILE_DATA_OFF_ABB"
msgstr "Unable to retrieve message. Mobile data off."
+msgid "WDS_MSG_ACBUTTON_OK_ABB"
+msgstr "OK"
+
msgid "WDS_MSG_TPOP_UNABLE_TO_RETRIEVE_MESSAGE_MOBILE_DATA_OFF_ABB"
msgstr "Unable to retrieve message. Mobile data off."
+msgid "WDS_MSG_ACBUTTON_OK_ABB"
+msgstr "OK"
+
msgid "WDS_MSG_TPOP_UNABLE_TO_RETRIEVE_MESSAGE_MOBILE_DATA_OFF_ABB"
msgstr "Imposible recuperar mensaje. Datos móviles desactivados."
+msgid "WDS_MSG_ACBUTTON_OK_ABB"
+msgstr "ACEPTAR"
+
msgid "WDS_MSG_TPOP_UNABLE_TO_RETRIEVE_MESSAGE_MOBILE_DATA_OFF_ABB"
msgstr "No se recuperó el mensaje. Datos móviles desactivados."
+msgid "WDS_MSG_ACBUTTON_OK_ABB"
+msgstr "ACEPTAR"
+
msgid "WDS_MSG_TPOP_UNABLE_TO_RETRIEVE_MESSAGE_MOBILE_DATA_OFF_ABB"
msgstr "Sõn. ei saa laadida. Mob. andmeside on välja lülitatud."
+msgid "WDS_MSG_ACBUTTON_OK_ABB"
+msgstr "OK"
+
msgid "WDS_MSG_TPOP_UNABLE_TO_RETRIEVE_MESSAGE_MOBILE_DATA_OFF_ABB"
msgstr "Ezin da mezua eskuratu. Datu mugikorrak desaktibatuta."
+msgid "WDS_MSG_ACBUTTON_OK_ABB"
+msgstr "ADOS"
+
msgid "WDS_MSG_TPOP_UNABLE_TO_RETRIEVE_MESSAGE_MOBILE_DATA_OFF_ABB"
msgstr "Viestiä ei voi hakea. Mobiilidata on poistettu käytöstä."
+msgid "WDS_MSG_ACBUTTON_OK_ABB"
+msgstr "OK"
+
msgid "WDS_MSG_TPOP_UNABLE_TO_RETRIEVE_MESSAGE_MOBILE_DATA_OFF_ABB"
msgstr "Impossible récupérer message. Données mobiles désactivées."
+msgid "WDS_MSG_ACBUTTON_OK_ABB"
+msgstr "OK"
+
msgid "WDS_MSG_TPOP_UNABLE_TO_RETRIEVE_MESSAGE_MOBILE_DATA_OFF_ABB"
msgstr "Impossible récupérer message. Données mobiles désactivées."
+msgid "WDS_MSG_ACBUTTON_OK_ABB"
+msgstr "OK"
+
msgid "WDS_MSG_TPOP_UNABLE_TO_RETRIEVE_MESSAGE_MOBILE_DATA_OFF_ABB"
msgstr "Ní féidir teachtaireacht a aisghabháil. Sonraí móib. as."
+msgid "WDS_MSG_ACBUTTON_OK_ABB"
+msgstr "OK"
+
msgid "WDS_MSG_TPOP_UNABLE_TO_RETRIEVE_MESSAGE_MOBILE_DATA_OFF_ABB"
msgstr "Non se pode recuperar a mensaxe. Datos móbiles desact."
+msgid "WDS_MSG_ACBUTTON_OK_ABB"
+msgstr "ACEPTAR"
+
msgid "WDS_MSG_TPOP_UNABLE_TO_RETRIEVE_MESSAGE_MOBILE_DATA_OFF_ABB"
msgstr "सन्देश पुनर्प्राप्त करने में असमर्थ। मोबाइल डाटा बंद है।"
+msgid "WDS_MSG_ACBUTTON_OK_ABB"
+msgstr "ओके"
+
msgid "WDS_MSG_TPOP_UNABLE_TO_RETRIEVE_MESSAGE_MOBILE_DATA_OFF_ABB"
msgstr "Nije moguće preuzeti poruku. Mobilni podaci isključeni."
+msgid "WDS_MSG_ACBUTTON_OK_ABB"
+msgstr "U REDU"
+
msgid "WDS_MSG_TPOP_UNABLE_TO_RETRIEVE_MESSAGE_MOBILE_DATA_OFF_ABB"
msgstr "Kikapcsolt Mobilinternet-kapcsolattal nem lehet letölteni."
+msgid "WDS_MSG_ACBUTTON_OK_ABB"
+msgstr "OK"
+
msgid "WDS_MSG_TPOP_UNABLE_TO_RETRIEVE_MESSAGE_MOBILE_DATA_OFF_ABB"
msgstr "Անհնար է առբերել հղրդգրությունը: Շարժ. տվյալներն անջ. են:"
+msgid "WDS_MSG_ACBUTTON_OK_ABB"
+msgstr "OK"
+
msgid "WDS_MSG_TPOP_UNABLE_TO_RETRIEVE_MESSAGE_MOBILE_DATA_OFF_ABB"
msgstr "Ekki er hægt að sækja skilaboð. Slökkt á farsímagögnum."
+msgid "WDS_MSG_ACBUTTON_OK_ABB"
+msgstr "Í LAGI"
+
msgid "WDS_MSG_TPOP_UNABLE_TO_RETRIEVE_MESSAGE_MOBILE_DATA_OFF_ABB"
msgstr "Impossibile recuperare il messaggio. Conness. dati spenta."
+msgid "WDS_MSG_ACBUTTON_OK_ABB"
+msgstr "OK"
+
msgid "WDS_MSG_TPOP_UNABLE_TO_RETRIEVE_MESSAGE_MOBILE_DATA_OFF_ABB"
msgstr "メッセージを取得できません。モバイルデータがOFFです。"
+msgid "WDS_MSG_ACBUTTON_OK_ABB"
+msgstr "OK"
+
msgid "WDS_MSG_TPOP_UNABLE_TO_RETRIEVE_MESSAGE_MOBILE_DATA_OFF_ABB"
msgstr "შეტყობინებას ვერ მიიღებთ. მობილური მონაცემები გამორთულია."
+msgid "WDS_MSG_ACBUTTON_OK_ABB"
+msgstr "OK"
+
msgid "WDS_MSG_TPOP_UNABLE_TO_RETRIEVE_MESSAGE_MOBILE_DATA_OFF_ABB"
msgstr "Хабарды қалпына келтіру мүм. емес. Ұялы деректер өшірулі."
+msgid "WDS_MSG_ACBUTTON_OK_ABB"
+msgstr "OK"
+
msgid "WDS_MSG_TPOP_UNABLE_TO_RETRIEVE_MESSAGE_MOBILE_DATA_OFF_ABB"
msgstr "모바일 데이터가 해제되어 메시지를 가져올 수 없습니다."
+msgid "WDS_MSG_ACBUTTON_OK_ABB"
+msgstr "확인"
+
msgid "WDS_MSG_TPOP_UNABLE_TO_RETRIEVE_MESSAGE_MOBILE_DATA_OFF_ABB"
msgstr "Neįmanoma gauti žinutės. Mobilieji duomenys išjungti."
+msgid "WDS_MSG_ACBUTTON_OK_ABB"
+msgstr "Gerai"
+
msgid "WDS_MSG_TPOP_UNABLE_TO_RETRIEVE_MESSAGE_MOBILE_DATA_OFF_ABB"
msgstr "Nevar izgūt ziņu. Mobilie dati ir izslēgti."
+msgid "WDS_MSG_ACBUTTON_OK_ABB"
+msgstr "Labi"
+
msgid "WDS_MSG_TPOP_UNABLE_TO_RETRIEVE_MESSAGE_MOBILE_DATA_OFF_ABB"
msgstr "Не може да се преземе пораката. Моб. податоци се исклуч."
+msgid "WDS_MSG_ACBUTTON_OK_ABB"
+msgstr "OK"
+
msgid "WDS_MSG_TPOP_UNABLE_TO_RETRIEVE_MESSAGE_MOBILE_DATA_OFF_ABB"
msgstr "Kan ikke hente melding. Mobildata er av."
+msgid "WDS_MSG_ACBUTTON_OK_ABB"
+msgstr "OK"
+
msgid "WDS_MSG_TPOP_UNABLE_TO_RETRIEVE_MESSAGE_MOBILE_DATA_OFF_ABB"
msgstr "Kan bericht niet ophalen. Mobiele gegevens uit."
+msgid "WDS_MSG_ACBUTTON_OK_ABB"
+msgstr "OK"
+
msgid "WDS_MSG_TPOP_UNABLE_TO_RETRIEVE_MESSAGE_MOBILE_DATA_OFF_ABB"
msgstr "Nie można pobrać wiadomości. Dane komórkowe wyłączone."
+msgid "WDS_MSG_ACBUTTON_OK_ABB"
+msgstr "OK"
+
msgid "WDS_MSG_TPOP_UNABLE_TO_RETRIEVE_MESSAGE_MOBILE_DATA_OFF_ABB"
msgstr "Não é possível recuperar msg. Dados móveis desligados."
+msgid "WDS_MSG_ACBUTTON_OK_ABB"
+msgstr "OK"
+
msgid "WDS_MSG_TPOP_UNABLE_TO_RETRIEVE_MESSAGE_MOBILE_DATA_OFF_ABB"
msgstr "Impossível obter mensagem. Dados móveis desligados."
+msgid "WDS_MSG_ACBUTTON_OK_ABB"
+msgstr "OK"
+
msgid "WDS_MSG_TPOP_UNABLE_TO_RETRIEVE_MESSAGE_MOBILE_DATA_OFF_ABB"
msgstr "Mesajul nu se poate prelua. Date mobile oprite."
+msgid "WDS_MSG_ACBUTTON_OK_ABB"
+msgstr "OK"
+
msgid "WDS_MSG_TPOP_UNABLE_TO_RETRIEVE_MESSAGE_MOBILE_DATA_OFF_ABB"
msgstr "Не удалось получить сообщение. Мобильн. данные отключены."
+msgid "WDS_MSG_ACBUTTON_OK_ABB"
+msgstr "OK"
+
msgid "WDS_MSG_TPOP_UNABLE_TO_RETRIEVE_MESSAGE_MOBILE_DATA_OFF_ABB"
msgstr "Správa sa nedá načítať. Mobil. dátové pripoj. je vypnuté."
+msgid "WDS_MSG_ACBUTTON_OK_ABB"
+msgstr "OK"
+
msgid "WDS_MSG_TPOP_UNABLE_TO_RETRIEVE_MESSAGE_MOBILE_DATA_OFF_ABB"
msgstr "Sporočila ni mogoče pridobiti. Mob. pod. so izklopljeni."
+msgid "WDS_MSG_ACBUTTON_OK_ABB"
+msgstr "V REDU"
+
msgid "WDS_MSG_TPOP_UNABLE_TO_RETRIEVE_MESSAGE_MOBILE_DATA_OFF_ABB"
msgstr "Nije moguće primiti poruku. Mobilni podaci su isključeni."
+msgid "WDS_MSG_ACBUTTON_OK_ABB"
+msgstr "OK"
+
msgid "WDS_MSG_TPOP_UNABLE_TO_RETRIEVE_MESSAGE_MOBILE_DATA_OFF_ABB"
msgstr "Det går inte att hämta meddelandet. Mobildata avstängt."
+msgid "WDS_MSG_ACBUTTON_OK_ABB"
+msgstr "OK"
+
msgid "WDS_MSG_TPOP_UNABLE_TO_RETRIEVE_MESSAGE_MOBILE_DATA_OFF_ABB"
msgstr "Mesaj alınamıyor. Mobil veri kapalı."
+msgid "WDS_MSG_ACBUTTON_OK_ABB"
+msgstr "Tamam"
+
msgid "WDS_MSG_TPOP_UNABLE_TO_RETRIEVE_MESSAGE_MOBILE_DATA_OFF_ABB"
msgstr "Не вдалося отримати повідомлення. Мобільні дані вимкнено."
+msgid "WDS_MSG_ACBUTTON_OK_ABB"
+msgstr "OK"
+
msgid "WDS_MSG_TPOP_UNABLE_TO_RETRIEVE_MESSAGE_MOBILE_DATA_OFF_ABB"
msgstr "Xabarni qayta olib bo‘lmaydi. Mobil internet o‘chiq."
+msgid "WDS_MSG_ACBUTTON_OK_ABB"
+msgstr "OK"
+
msgid "WDS_MSG_TPOP_UNABLE_TO_RETRIEVE_MESSAGE_MOBILE_DATA_OFF_ABB"
msgstr "由于手机流量已关闭,无法获取信息。"
+msgid "WDS_MSG_ACBUTTON_OK_ABB"
+msgstr "确定"
+
msgid "WDS_MSG_TPOP_UNABLE_TO_RETRIEVE_MESSAGE_MOBILE_DATA_OFF_ABB"
msgstr "無法取回訊息。流動數據已關閉。"
+msgid "WDS_MSG_ACBUTTON_OK_ABB"
+msgstr "確定"
+
msgid "WDS_MSG_TPOP_UNABLE_TO_RETRIEVE_MESSAGE_MOBILE_DATA_OFF_ABB"
msgstr "無法擷取訊息。行動數據已關閉。"
+msgid "WDS_MSG_ACBUTTON_OK_ABB"
+msgstr "確定"
+
--- /dev/null
+/*
+ * 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 BodyFrame_h_
+#define BodyFrame_h_
+
+#include "FrameController.h"
+#include "DefaultLayout.h"
+#include "ComposerLayout.h"
+#include "MsgBodyView.h"
+#include "Popup.h"
+
+namespace Msg {
+ class BodyFrame
+ : public FrameController {
+
+ public:
+ BodyFrame(NaviFrameController &parent);
+ virtual ~BodyFrame();
+
+ private:
+ // NaviFrameItem:
+ void onAttached(ViewItem &item) override;
+
+ // Hw buttons:
+ void onHwBackButtonPreessed(Evas_Object *obj, void *event);
+
+ private:
+ void prepareLayouts();
+ void prepareBody();
+ void updateTextCounter();
+
+ // Popup:
+ void showMaxCharactersPopup();
+ void showDisableFlightModePopup();
+ void showSendingProgressPopup();
+ void showSentPopup();
+ void showSendingFailedPopup();
+ void showUnableToSendMessagePopup();
+ void showMmsTextLimitExceededPopup();
+ void showUnableToSendMmsPopup();
+
+ // Popup callback:
+ void onCancelButtonClicked(Popup &popup);
+ void onTurnOffFlightModeClicked(Popup &popup);
+ void onAllowTransmissionTextLClicked(Popup &popup);
+ void onEnableDataRoamingClicked(Popup &popup);
+
+ private:
+ DefaultLayout *m_pBaseLayout;
+ ComposerLayout *m_pLayout;
+ MsgBodyView *m_pBody;
+ };
+}
+
+#endif /* BodyFrame */
+++ /dev/null
-/*
- * 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 ComposerFrame_h_
-#define ComposerFrame_h_
-
-#include "FrameController.h"
-#include "DefaultLayout.h"
-#include "ComposerLayout.h"
-#include "MsgBodyView.h"
-
-namespace Msg {
- class ComposerFrame
- : public FrameController {
-
- public:
- ComposerFrame(NaviFrameController &parent);
- virtual ~ComposerFrame();
-
- private:
- // NaviFrameItem:
- void onAttached(ViewItem &item) override;
-
- // Hw buttons:
- void onHwBackButtonPreessed(Evas_Object *obj, void *event);
-
- private:
- void prepareLayouts();
- void prepareBody();
- void updateTextCounter();
-
- private:
- DefaultLayout *m_pBaseLayout;
- ComposerLayout *m_pLayout;
- MsgBodyView *m_pBody;
- };
-}
-
-#endif /* ComposerFrame */
--- /dev/null
+/*
+ * 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 "BodyFrame.h"
+#include "Callback.h"
+#include "StandardPopup.h"
+#include "ToastPopup.h"
+#include "IconTextPopup.h"
+
+using namespace Msg;
+
+BodyFrame::BodyFrame(NaviFrameController &parent)
+ : FrameController(parent)
+ , m_pBaseLayout(nullptr)
+ , m_pLayout(nullptr)
+ , m_pBody(nullptr)
+{
+ MSG_LOG("");
+ prepareLayouts();
+ prepareBody();
+}
+
+BodyFrame::~BodyFrame()
+{
+ MSG_LOG("");
+}
+
+void BodyFrame::prepareLayouts()
+{
+ if (!m_pBaseLayout) {
+ m_pBaseLayout = new DefaultLayout(getParent());
+ m_pBaseLayout->addHwButtonEvent(EEXT_CALLBACK_BACK, makeCbFirst(&BodyFrame::onHwBackButtonPreessed), this);
+ }
+
+ if (!m_pLayout) {
+ m_pLayout = new ComposerLayout(*m_pBaseLayout);
+ m_pBaseLayout->setContent(*m_pLayout);
+ }
+}
+
+void BodyFrame::prepareBody()
+{
+ if (!m_pBody) {
+ m_pBody = new MsgBodyView(*m_pLayout);
+ updateTextCounter();
+ m_pLayout->setBody(*m_pBody);
+ }
+}
+
+void BodyFrame::updateTextCounter()
+{
+ // TODO: implementation
+ m_pBody->setCounterText(1, 160);
+ m_pBody->disabledSendButton(false);
+}
+
+void BodyFrame::showMaxCharactersPopup()
+{
+ ToastPopup::toast(msgt("WDS_WIFI_TPOP_MAXIMUM_NUMBER_OF_CHARACTERS_REACHED"));
+}
+
+void BodyFrame::showDisableFlightModePopup()
+{
+ auto *popup = new StandardPopup(StandardPopup::buttons2Style);
+ popup->setText(msgt("WDS_MSG_POP_UNABLE_TO_SEND_MESSAGE_TURN_OFF_FLIGHT_MODE"));
+ popup->addLeftButton(CANCEL_BUTTON_POPUP, makeCbLast(&BodyFrame::onCancelButtonClicked), this);
+ popup->addRightButton(OK_BUTTON_POPUP, makeCbLast(&BodyFrame::onTurnOffFlightModeClicked), this);
+ popup->show();
+}
+
+void BodyFrame::showSendingProgressPopup()
+{
+ auto *popup = new IconTextPopup;
+ popup->setIcon(IconTextPopup::ProgressIcon);
+ popup->setText(msgt("IDS_MSG_BODY_SENDING_ING_M_STATUS_ABB"));
+ popup->show();
+}
+
+void BodyFrame::showSentPopup()
+{
+ auto *popup = new IconTextPopup;
+ popup->setIcon(IconTextPopup::CheckIcon);
+ popup->setText(msgt("WDS_WNOTI_TPOP_SENT_ABB"));
+ popup->setTimeOut();
+ popup->show();
+}
+
+void BodyFrame::showSendingFailedPopup()
+{
+ auto *popup = new IconTextPopup;
+ popup->setIcon(IconTextPopup::FailedIcon);
+ popup->setText(msgt("WDS_MSG_TPOP_SENDING_FAILED_ABB"));
+ popup->setTimeOut();
+ popup->show();
+}
+
+void BodyFrame::showUnableToSendMessagePopup()
+{
+ auto *popup = new StandardPopup(StandardPopup::buttons1Style);
+ popup->setText(msgt("WDS_MSG_BODY_UNABLE_TO_SEND_MESSAGE_IT_WILL_BE_SENT_WHEN_SERVICE_BECOMES_AVAILABLE"));
+ popup->addBottomButton(msgt("WDS_MSG_ACBUTTON_OK_ABB"));
+ popup->show();
+}
+
+void BodyFrame::showMmsTextLimitExceededPopup()
+{
+ auto *popup = new StandardPopup(StandardPopup::buttons2Style);
+ // TODO: remove later
+ int numberOfCharacters = 2048;
+ int numberOfMmsMsg = 2;
+
+ std::string popupMessage = msgArgs("WDS_MSG_BODY_MAXIMUM_NUMBER_OF_CHARACTERS_HPD_EXCEEDED", numberOfCharacters);
+ popupMessage += "<br>";
+ popupMessage += msgArgs("WDS_MSG_BODY_MESSAGE_WILL_BE_SENT_AS_PD_MMS_MESSAGES_AND_1_SMS_MESSAGE", numberOfMmsMsg);
+
+ popup->setText(popupMessage);
+ popup->addLeftButton(CANCEL_BUTTON_POPUP, makeCbLast(&BodyFrame::onCancelButtonClicked), this);
+ popup->addRightButton(OK_BUTTON_POPUP, makeCbLast(&BodyFrame::onAllowTransmissionTextLClicked), this);
+ popup->show();
+}
+
+void BodyFrame::showUnableToSendMmsPopup()
+{
+ auto *popup = new StandardPopup(StandardPopup::buttons2Style);
+ popup->setText(msgt("WDS_MSG_BODY_UNABLE_TO_SEND_MMS_ENABLE_DATA_ROAMING"));
+ popup->addLeftButton(CANCEL_BUTTON_POPUP, makeCbLast(&BodyFrame::onCancelButtonClicked), this);
+ popup->addRightButton(OK_BUTTON_POPUP, makeCbLast(&BodyFrame::onEnableDataRoamingClicked), this);
+ popup->show();
+}
+
+void BodyFrame::onCancelButtonClicked(Popup &popup)
+{
+ popup.destroy();
+}
+
+void BodyFrame::onTurnOffFlightModeClicked(Popup &popup)
+{
+ MSG_LOG("");
+}
+
+void BodyFrame::onAllowTransmissionTextLClicked(Popup &popup)
+{
+ MSG_LOG("");
+}
+
+void BodyFrame::onEnableDataRoamingClicked(Popup &popup)
+{
+ MSG_LOG("");
+}
+
+void BodyFrame::onAttached(ViewItem &item)
+{
+ MSG_LOG("");
+ FrameController::onAttached(item);
+ setContent(*m_pBaseLayout);
+}
+
+void BodyFrame::onHwBackButtonPreessed(Evas_Object *obj, void *event_info)
+{
+ MSG_LOG("");
+ pop();
+}
+++ /dev/null
-/*
- * 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 "ComposerFrame.h"
-#include "Callback.h"
-
-using namespace Msg;
-
-ComposerFrame::ComposerFrame(NaviFrameController &parent)
- : FrameController(parent)
- , m_pBaseLayout(nullptr)
- , m_pLayout(nullptr)
- , m_pBody(nullptr)
-{
- MSG_LOG("");
- prepareLayouts();
- prepareBody();
-}
-
-ComposerFrame::~ComposerFrame()
-{
- MSG_LOG("");
-}
-
-void ComposerFrame::prepareLayouts()
-{
- if (!m_pBaseLayout) {
- m_pBaseLayout = new DefaultLayout(getParent());
- m_pBaseLayout->addHwButtonEvent(EEXT_CALLBACK_BACK, makeCbFirst(&ComposerFrame::onHwBackButtonPreessed), this);
- }
-
- if (!m_pLayout) {
- m_pLayout = new ComposerLayout(*m_pBaseLayout);
- m_pBaseLayout->setContent(*m_pLayout);
- }
-}
-
-void ComposerFrame::prepareBody()
-{
- if (!m_pBody) {
- m_pBody = new MsgBodyView(*m_pLayout);
- updateTextCounter();
- m_pLayout->setBody(*m_pBody);
- }
-}
-
-void ComposerFrame::updateTextCounter()
-{
- // TODO: implementation
- m_pBody->setCounterText(1, 160);
- m_pBody->disabledSendButton(false);
-}
-
-void ComposerFrame::onAttached(ViewItem &item)
-{
- MSG_LOG("");
- FrameController::onAttached(item);
- setContent(*m_pBaseLayout);
-}
-
-void ComposerFrame::onHwBackButtonPreessed(Evas_Object *obj, void *event_info)
-{
- MSG_LOG("");
- pop();
-}
* limitations under the License.
*/
+#include "BodyFrame.h"
#include "RecipFrame.h"
#include "Callback.h"
-#include "ComposerFrame.h"
#include "RecipInputFrame.h"
#include "DefaultLayout.h"
#include "BottomButton.h"
{
MSG_LOG("");
if (m_Recip.isValid()) {
- auto *composerFrame = new ComposerFrame(getParent());
+ auto *composerFrame = new BodyFrame(getParent());
getParent().push(*composerFrame);
} else {
ToastPopup::toast("Invalid recipient."); // TODO: localization