}
r = __pAlarmImpl->SetAlarmEventListener(&listener);
+ if(r != E_SUCCESS)
+ {
+ delete __pAlarmImpl;
+ __pAlarmImpl = null;
+ }
SysTryReturnResult(NID_SYS, !IsFailed(r), r, "Construction is failed");
return E_SUCCESS;
const DateTime
Alarm::GetStartTime(void) const
{
+ SysAssertf(__pAlarmImpl != null, "Not yet constructed. Construct() should be called before use.");
return __pAlarmImpl->GetStartTime();
}
int
Alarm::GetPeriod(void) const
{
+ SysAssertf(__pAlarmImpl != null, "Not yet constructed. Construct() should be called before use.");
return __pAlarmImpl->GetPeriod();
}
const DateTime*
Alarm::GetEndTime(void) const
{
+ SysAssertf(__pAlarmImpl != null, "Not yet constructed. Construct() should be called before use.");
return __pAlarmImpl->GetEndTime();
}