--- /dev/null
+/*
+ * Copyright (c) 2009-2016 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * 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 _LAUNCH_SETTINGS_H_
+#define _LAUNCH_SETTINGS_H_
+
+namespace Msg
+{
+ class LaunchSettings
+ {
+ public:
+ static void launch();
+ };
+}
+
+#endif /* _LAUNCH_SETTINGS_H_ */
--- /dev/null
+/*
+ * Copyright (c) 2009-2015 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * 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 "LaunchSettings.h"
+#include <app.h>
+
+using namespace Msg;
+
+void LaunchSettings::launch()
+{
+ app_control_h h;
+ app_control_create(&h);
+ app_control_set_operation(h, APP_CONTROL_OPERATION_SETTING);
+ app_control_set_app_id(h, "org.tizen.setting");
+ app_control_send_launch_request(h, NULL, NULL);
+ app_control_destroy(h);
+}
// Popup callbacks:
void onPopupDel(Evas_Object *popup, void *eventInfo);
void onMsgSendErrorButtonClicked(Popup &popup, int buttonId);
+ void onMsgSettingsButtonClicked(Popup &popup, int buttonId);
void onNoRecipCancelButtonClicked(Popup &popup, int buttonId);
void onNoRecipDiscardButtonClicked(Popup &popup, int buttonId);
void onDeleteItemPressed(PopupListItem &item);
#include "VoiceCall.h"
#include "Viewer.h"
#include "PopupRecipientListItem.h"
+#include "LaunchSettings.h"
#include <Elementary.h>
#include <sstream>
{
auto &popupMngr = getApp().getPopupManager();
Popup &popup = popupMngr.getPopup();
+ popup.setTitle(msgt("IDS_MSG_HEADER_COULDNT_SEND_MESSAGE_ABB"));
popup.addEventCb(EVAS_CALLBACK_DEL, EVAS_EVENT_CALLBACK(Conversation, onPopupDel), this);
- popup.addButton(msgt("IDS_MSG_BUTTON_OK_ABB"), Popup::OkButtonId, POPUP_BUTTON_CB(Conversation, onMsgSendErrorButtonClicked), this);
+ popup.addButton(msgt("IDS_MSG_BUTTON_CANCEL_ABB2"), Popup::CancelButtonId, POPUP_BUTTON_CB(Conversation, onMsgSendErrorButtonClicked), this);
+ popup.addButton(msgt("IDS_MSGF_BODY_SETTINGS"), Popup::OkButtonId, POPUP_BUTTON_CB(Conversation, onMsgSettingsButtonClicked), this);
popup.setContent(msgt("IDS_MSGC_POP_MOBILE_DATA_IS_DISABLED_ENABLE_MOBILE_DATA_AND_TRY_AGAIN"));
popup.show();
}
popup.destroy();
}
+void Conversation::onMsgSettingsButtonClicked(Popup &popup, int buttonId)
+{
+ MSG_LOG("");
+ LaunchSettings::launch();
+ popup.destroy();
+}
+
void Conversation::onNoRecipCancelButtonClicked(Popup &popup, int buttonId)
{
m_pBody->setFocus(true);