Set timeout to MessageBox.
authorSungWan Kim <sw0726.kim@samsung.com>
Sun, 14 Apr 2013 04:41:52 +0000 (13:41 +0900)
committerSungWan Kim <sw0726.kim@samsung.com>
Sun, 14 Apr 2013 04:41:52 +0000 (13:41 +0900)
Change-Id: I73a1c1e1dc6124f77f5cd9cde30d3bfb3af05535
Signed-off-by: SungWan Kim <sw0726.kim@samsung.com>
inc/ClTypes.h
src/ClEventEditorForm.cpp
src/ClReminderForm.cpp
src/ClRepeatForm.cpp
src/ClSettingForm.cpp
src/ClTypes.cpp

index 9bf592b..a40421d 100644 (file)
@@ -279,6 +279,8 @@ extern const wchar_t* VALUE_SOCIAL_ITEM_ID;
 
 extern const wchar_t* VCS_EXPORT_PATH;
 
+extern const int MESSAGE_BOX_TIME_OUT;
+
 // enums
 enum OperationType
 {
index 6502f53..772265d 100644 (file)
@@ -1139,7 +1139,7 @@ EventEditorForm::OnDateChanged(const Control& source, int year, int month, int d
        if (r != E_SUCCESS)
        {
                MessageBox msgBox;
-               msgBox.Construct(L"", ResourceManager::GetString(IDS_CLD_POP_INVALID_TIME), MSGBOX_STYLE_NONE);
+               msgBox.Construct(L"", ResourceManager::GetString(IDS_CLD_POP_INVALID_TIME), MSGBOX_STYLE_NONE, MESSAGE_BOX_TIME_OUT);
                int modalResult;
                msgBox.ShowAndWait(modalResult);
        }
@@ -1211,7 +1211,7 @@ EventEditorForm::OnTimeChanged(const Control& source, int hour, int minute)
        if (r != E_SUCCESS)
        {
                MessageBox msgBox;
-               msgBox.Construct(L"", ResourceManager::GetString(IDS_CLD_POP_INVALID_TIME), MSGBOX_STYLE_NONE);
+               msgBox.Construct(L"", ResourceManager::GetString(IDS_CLD_POP_INVALID_TIME), MSGBOX_STYLE_NONE, MESSAGE_BOX_TIME_OUT);
                int modalResult;
                msgBox.ShowAndWait(modalResult);
        }
index 135e105..8c545ad 100644 (file)
@@ -118,7 +118,7 @@ ReminderForm::ValidatePastedText(const String& pastedText, String& replacedText)
 CATCH:
        replacedText = L"";
        MessageBox msgBox;
-       msgBox.Construct(L"", ResourceManager::GetString(IDS_CLD_POP_INVALID_TIME), MSGBOX_STYLE_NONE);
+       msgBox.Construct(L"", ResourceManager::GetString(IDS_CLD_POP_INVALID_TIME), MSGBOX_STYLE_NONE, MESSAGE_BOX_TIME_OUT);
        msgBox.ShowAndWait(value);
        return true;
 }
index b494db2..86e58f8 100644 (file)
@@ -123,7 +123,7 @@ RepeatForm::ValidatePastedText(const String& pastedText, String& replacedText)
 CATCH:
        replacedText = L"";
        MessageBox msgBox;
-       msgBox.Construct(L"", ResourceManager::GetString(IDS_CLD_BODY_REPEAT_WARNING), MSGBOX_STYLE_NONE);
+       msgBox.Construct(L"", ResourceManager::GetString(IDS_CLD_BODY_REPEAT_WARNING), MSGBOX_STYLE_NONE, MESSAGE_BOX_TIME_OUT);
        msgBox.ShowAndWait(value);
        return true;
 }
index b353fcf..2167d1e 100644 (file)
@@ -154,7 +154,7 @@ SettingForm::OnAppControlCompleteResponseReceived(const AppId& appId, const Stri
                                else
                                {
                                        MessageBox msgBox;
-                                       msgBox.Construct(L"", ResourceManager::GetString(IDS_RSSR_BODY_FAILED_TO_IMPORT_FILE), MSGBOX_STYLE_NONE);
+                                       msgBox.Construct(L"", ResourceManager::GetString(IDS_RSSR_BODY_FAILED_TO_IMPORT_FILE), MSGBOX_STYLE_NONE, MESSAGE_BOX_TIME_OUT);
                                        int modalResult;
                                        msgBox.ShowAndWait(modalResult);
                                }
@@ -162,7 +162,7 @@ SettingForm::OnAppControlCompleteResponseReceived(const AppId& appId, const Stri
                        else
                        {
                                MessageBox msgBox;
-                               msgBox.Construct(L"", ResourceManager::GetString(IDS_RSSR_BODY_FAILED_TO_IMPORT_FILE), MSGBOX_STYLE_NONE);
+                               msgBox.Construct(L"", ResourceManager::GetString(IDS_RSSR_BODY_FAILED_TO_IMPORT_FILE), MSGBOX_STYLE_NONE, MESSAGE_BOX_TIME_OUT);
                                int modalResult;
                                msgBox.ShowAndWait(modalResult);
                        }
index 1227b4c..dc89916 100644 (file)
@@ -271,3 +271,5 @@ const wchar_t* VALUE_CALENDAR_MULTIPLE_SELECTION_MODE = L"multiple";
 const wchar_t* VALUE_SOCIAL_ITEM_ID = L"item_id";
 
 const wchar_t* VCS_EXPORT_PATH = L"/tmp/Cl%d%02d%02d%02d%02d%02d.vcs";
+
+const int MESSAGE_BOX_TIME_OUT = 1500;