3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
\r
5 // Licensed under the Flora License, Version 1.0 (the License);
\r
6 // you may not use this file except in compliance with the License.
\r
7 // You may obtain a copy of the License at
\r
9 // http://www.tizenopensource.org/license
\r
11 // Unless required by applicable law or agreed to in writing, software
\r
12 // distributed under the License is distributed on an AS IS BASIS,
\r
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
14 // See the License for the specific language governing permissions and
\r
15 // limitations under the License.
\r
18 #include "EmailListener.h"
\r
20 using namespace Osp::Base;
\r
21 using namespace Osp::Ui::Controls;
\r
24 EmailListener::OnEmailMessageSent(result r)
\r
29 AppLog("Called OnEmailMessageSent...");
\r
34 AppLog("The operation was successful.");
\r
35 strMsg = L"email message sent successfully.";
\r
39 AppLog("[%s] exception occurred.", GetErrorMessage(r));
\r
40 strMsg.Format(100, L"[%s] exception occurred.\n email application is failed to send email.", GetErrorMessage(r));
\r
44 ListenerMessageBox(strMsg);
\r
48 EmailListener::ListenerMessageBox(String text)
\r
50 result r = E_SUCCESS;
\r
52 MessageBox* pMessage = null;
\r
53 pMessage = new (std::nothrow) MessageBox();
\r
54 if (pMessage == null)
\r
59 r = pMessage->Construct(L"Message Sender", text, MSGBOX_STYLE_OK, 3000);
\r
62 AppLogException("[%s] occurred. ListenerMessageBox failed.", GetErrorMessage(r));
\r
68 pMessage->ShowAndWait(ModalResult);
\r