From 616cf8debc3fb47cf41b8023c7a7ca643456f68f Mon Sep 17 00:00:00 2001 From: "so.yu" Date: Tue, 16 Apr 2013 22:14:21 +0900 Subject: [PATCH] Apply new keys for argument consistency Change-Id: I577af27957c48d38b2655e0f7d4fc6a5549ac7a7 Signed-off-by: so.yu --- src/CertificateSelectorForm.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/CertificateSelectorForm.cpp b/src/CertificateSelectorForm.cpp index 94c031d..0dc36ca 100644 --- a/src/CertificateSelectorForm.cpp +++ b/src/CertificateSelectorForm.cpp @@ -52,6 +52,8 @@ static const int ITEM_HEIGHT = 112; // in 720X1280px resolution static const int ITEM_LEFT_MARGIN = 26; // in 720X1280px resolution static const wchar_t EMPTY_LIST_STRING[] = L"No Certificate"; static const wchar_t TITLE_STRING[] = L"USER CERTIFICATES"; +static const wchar_t CERT_ID_KEY[] = L"http://tizen.org/appcontrol/data/cert/cert_id"; +static const wchar_t OLD_CERT_ID_KEY[] = L"Id"; CertificateSelectorForm::CertificateSelectorForm(void) : __reqId(-1) @@ -87,7 +89,10 @@ CertificateSelectorForm::Finish(bool isSelected, int certId) AppLog("The current value of isSelected is true."); TryCatchResult(certId >= 0, , E_INVALID_ARG, "[%s] Invalid Certificate ID.", GetErrorMessage(E_INVALID_ARG)); - pMap->Add(new (std::nothrow) String(L"Id"), new (std::nothrow) String(Integer(certId).ToString())); + pMap->Add(new (std::nothrow) String(OLD_CERT_ID_KEY), new (std::nothrow) String(Integer(certId).ToString())); + TryCatchResult(!IsFailed(r), , r, "[%s] Propagating.", GetErrorMessage(r)); + + pMap->Add(new (std::nothrow) String(CERT_ID_KEY), new (std::nothrow) String(Integer(certId).ToString())); TryCatchResult(!IsFailed(r), , r, "[%s] Propagating.", GetErrorMessage(r)); // send result -- 2.7.4