, __itemCount(0)
, __isInstalled(false)
, __isUpdatable(false)
+ , __pPackageAppInfo(null)
{
}
result
DetailForm::OnInitializing(void)
{
+ // 1. get initial variable
result r = E_SUCCESS;
AppResource* pAppResource = Application::GetInstance()->GetAppResource();
- // Set Image Control
+
+ // 2. Set Image Control
SetListItemImage(pAppResource);
- // Header Item set
+ // 3. Header Item set
__pHeader = GetHeader();
__pHeader->SetTitleIcon(__pHeaderImage);
- // Footer Item Set
+
+ // 4. Footer Item Set
FooterItem footerItem1;
footerItem1.Construct(IDA_INSTALL_BTN);
footerItem1.SetText(L"Install");
-
Footer* pFooter = GetFooter();
SetFormBackEventListener(this);
pFooter->AddActionEventListener(*this);
pFooter->AddItem(footerItem1);
- // initialize variable
+ // 5. initialize variable
__itemCount = 0;
__isUpdatable = false;
__isInstalled = false;
__isValidPackage = true;
- // parsing tpk package info then get and set item count
+
+ // 6. parsing tpk and set validation value
r = ParsingTPK();
if (r != E_SUCCESS)
{
__isValidPackage = false;
}
-
- // Install Confirmation Popup
+ // 7. set confirmation Popup for installation
SetPopupControl();
+ // 8. draw other body control contents
SetInfoTextBox();
CreateTableView();
- // Set Disable Controls and Open Popup
+ // 9. draw confirmation Popup for installation
ConfirmPopupOn();
+ // 10. show controls
__pTextBox->SetShowState(false);
__pList->SetShowState(false);
DetailForm::OnTerminating(void)
{
result r = E_SUCCESS;
-
delete __pTargetPackageInfo;
delete __pPrivilegeList;
delete __pPackageAppInfo;
int
DetailForm::GetGroupCount(void)
{
+ AppLog(" ========== group count ===========");
return 1;
}
int
DetailForm::GetItemCount(int groupIndex)
{
+ AppLog(" ========== item count ===========");
return __itemCount;
}
Tizen::Ui::Controls::TableViewGroupItem*
DetailForm::CreateGroupItem(int groupIndex, int itemWidth)
{
+ AppLog(" ========== create group ===========");
TableViewGroupItem* pItem;
pItem = new (std::nothrow) TableViewGroupItem();
pItem->Construct(Dimension(itemWidth, 10));
Tizen::Ui::Controls::TableViewItem*
DetailForm::CreateItem(int groupIndex, int itemIndex, int itemWidth)
{
+ AppLog(" ========== create group ===========");
String name;
String description;
TableViewItem* pItem = new (std::nothrow) TableViewItem();