void
_FormImpl::SetFormBackEventListener(const IFormBackEventListener* pFormBackEventListener)
{
- bool isBackButton = false;
-
- Tizen::System::SystemInfo::GetValue(L"http://tizen.org/feature/input.keys.back", isBackButton);
-
- if(!isBackButton)
- {
- SysTryReturnVoidResult(NID_UI_CTRL, GetFooter() || GetHeader(), E_INVALID_STATE, "[E_INVALID_STATE] Footer isn't constructed.");
- }
-
__pFormBackEventListener = const_cast <IFormBackEventListener*>(pFormBackEventListener);
GetCore().SetFormBackEventListener(this);
result r = GetLastResult();
void
_FormImpl::SetFormMenuEventListener(const IFormMenuEventListener* pFormMenuEventListener)
{
- bool isMenuButton = false;
-
- Tizen::System::SystemInfo::GetValue(L"http://tizen.org/feature/input.keys.menu", isMenuButton);
-
- if(!isMenuButton)
- {
- SysTryReturnVoidResult(NID_UI_CTRL, GetFooter() || GetHeader(), E_INVALID_STATE, "[E_INVALID_STATE] Footer isn't constructed.");
- }
__pFormMenuEventListener = const_cast <IFormMenuEventListener*>(pFormMenuEventListener);
GetCore().SetFormMenuEventListener(this);
result r = GetLastResult();