summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorso.yu <so.yu@samsung.com>2013-06-24 13:29:04 +0900
committerso.yu <so.yu@samsung.com>2013-06-24 13:29:12 +0900
commit27d9c6e10bbcfae1339354d755d7e4c583d07585 (patch)
tree65c75fc4844a3315b8f6faa2bfead453fab0e09d
parent37a0ba2573d6e57d88daa2366aa8be26117cf92c (diff)
downloadcertificate-selector-27d9c6e10bbcfae1339354d755d7e4c583d07585.tar.gz
certificate-selector-27d9c6e10bbcfae1339354d755d7e4c583d07585.tar.bz2
certificate-selector-27d9c6e10bbcfae1339354d755d7e4c583d07585.zip
Change a form style instead of the deprecated one.
Change-Id: I4608d28a9f74f8125f621ca31e7085a52b6a13f2 Signed-off-by: so.yu <so.yu@samsung.com>
-rw-r--r--src/CertificateSelectorForm.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/CertificateSelectorForm.cpp b/src/CertificateSelectorForm.cpp
index 05b9438..e87967e 100644
--- a/src/CertificateSelectorForm.cpp
+++ b/src/CertificateSelectorForm.cpp
@@ -30,9 +30,8 @@
#include <FGrpDimension.h>
#include <FGrpRectangle.h>
#include <FUiCtrlCustomItem.h>
-#include <FUiCtrlFooter.h>
#include <FUiCtrlForm.h>
-#include <FUiCtrlFooter.h>
+#include <FUiCtrlHeader.h>
#include <FUiCtrlListItemBase.h>
#include <FUiCtrlListView.h>
#include <FSecCert_CertService.h>
@@ -118,7 +117,7 @@ CertificateSelectorForm::Initialize(RequestId reqId)
{
result r = E_SUCCESS;
- r = Construct(FORM_STYLE_INDICATOR | FORM_STYLE_TITLE);
+ r = Construct(FORM_STYLE_INDICATOR | FORM_STYLE_HEADER);
TryReturnResult(!IsFailed(r), E_SYSTEM, E_SYSTEM, "[%s] Failed to construct CertificateSelectorForm.", GetErrorMessage(E_SYSTEM));
__reqId = reqId;
@@ -134,9 +133,12 @@ CertificateSelectorForm::OnInitializing(void)
int count = 0;
int certCount = 0;
int invalidCount = 0;
- Footer* pFooter = null;
+ Header* pHeader = null;
- r = SetTitleText(TITLE_STRING, ALIGNMENT_LEFT);
+ // Set-up header
+ pHeader = GetHeader();
+ TryReturnResult(pHeader != null, E_SYSTEM, E_SYSTEM, "[%s] Header instance is not available.", GetErrorMessage(E_SYSTEM));
+ r = pHeader->SetTitleText(TITLE_STRING);
TryReturnResult(!IsFailed(r), r, r, "[%s] Propagating.", GetErrorMessage(r));
SetFormBackEventListener(this);