devices/device_syncreference/ordevice_syncreference_layout.cxx
#include "ordevice_syncreference_device.h"
#include "ordevice_syncreference_layout.h"
#define ORDEVICETEMPLATE__LAYOUT ORDevice_SyncReference_Layout
ORDEVICETEMPLATE__CLASSSTR,
bool ORDevice_SyncReference_Layout::FBCreate()
{
mDevice = ((ORDevice_SyncReference *)(FBDevice *)Device);
UICreate ();
UIConfigure ();
UIReset ();
mDevice->OnStatusChange.Add (
this,(
FBCallback)&ORDevice_SyncReference_Layout::EventDeviceStatusChange );
OnIdle.Add (
this,(
FBCallback)&ORDevice_SyncReference_Layout::EventUIIdle );
return true;
}
void ORDevice_SyncReference_Layout::FBDestroy()
{
OnIdle.Remove (
this,(
FBCallback)&ORDevice_SyncReference_Layout::EventUIIdle );
mDevice->OnStatusChange.Remove (
this,(
FBCallback)&ORDevice_SyncReference_Layout::EventDeviceStatusChange );
}
void ORDevice_SyncReference_Layout::UICreate()
{
}
void ORDevice_SyncReference_Layout::UIConfigure()
{
}
void ORDevice_SyncReference_Layout::UIRefresh()
{
}
void ORDevice_SyncReference_Layout::UIReset()
{
}
void ORDevice_SyncReference_Layout::EventDeviceStatusChange(
HISender pSender,
HKEvent pEvent )
{
UIReset();
}
void ORDevice_SyncReference_Layout::EventUIIdle(
HISender pSender,
HKEvent pEvent )
{
if( mDevice->Online && mDevice->Live )
{
UIRefresh();
}
}