virtual bool OnPreviewKeyPressed(Tizen::Ui::Control& source, const Tizen::Ui::KeyEventInfo& keyEventInfo);
virtual bool OnPreviewKeyReleased(Tizen::Ui::Control& source, const Tizen::Ui::KeyEventInfo& keyEventInfo);
+ virtual void OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList * pArgs);
private:
void ShowDeletePopup(void);
void HideDeletePopup(void);
static const int FONT_SIZE_EMPTY_COMMENT = 32;
+static const RequestId REQ_ID_MOVE_TO_GROUP_LIST = 1000;
+
static const unsigned int COLOR_EMPTY_COMMENT = Color32<102, 102, 102>::Value;
static const unsigned int COLOR_DELETE_BUTTON_NORMAL = Color32<213, 82, 82>::Value;
static const unsigned int COLOR_DELETE_BUTTON_PRESSED = Color32<194, 71, 71>::Value;
}
else
{
- __pPresentationModel->InitializeGroupContactList(__categoryId);
+ result r = __pPresentationModel->InitializeGroupContactList(__categoryId);
+ if (r == E_FAILURE)
+ {
+ SendUserEvent(REQ_ID_MOVE_TO_GROUP_LIST, null);
+ return;
+ }
}
}
__pEmptyCommentLabel->SetShowState(true);
}
}
+ else
+ {
+ if (previousSceneId.Equals(IDSCN_CONTACT_SELECTOR, true))
+ {
+ SendUserEvent(REQ_ID_MOVE_TO_GROUP_LIST, null);
+ return;
+ }
+ }
__pPresentationModel->AddContactChangeListener(*this);
pContactsApp->AddContactsAppChangeEventListener(*this);
}
__pAppControl = null;
}
+void
+GroupContactListForm::OnUserEventReceivedN (RequestId requestId, Tizen::Base::Collection::IList* pArgs)
+{
+ if (requestId == REQ_ID_MOVE_TO_GROUP_LIST)
+ {
+ SceneManager::GetInstance()->GoBackward(BackwardSceneTransition(IDSCN_GROUP_LIST));
+ }
+}
+
int
GroupContactListForm::GetGroupCount(void)
{