sl@0: #include "debughelper.h" sl@0: sl@0: const TDesC& RawEventName(const TRawEvent& aEvent) sl@0: { sl@0: switch(aEvent.Type()) sl@0: { sl@0: case TRawEvent::ENone: sl@0: _LIT(ENone,"ENone"); sl@0: return ENone; sl@0: sl@0: case TRawEvent::EPointerMove: sl@0: _LIT(EPointerMove,"EPointerMove"); sl@0: return EPointerMove; sl@0: sl@0: case TRawEvent::EPointerSwitchOn: sl@0: _LIT(EPointerSwitchOn,"EPointerSwitchOn"); sl@0: return EPointerSwitchOn; sl@0: sl@0: case TRawEvent::EKeyDown: sl@0: _LIT(EKeyDown,"EKeyDown"); sl@0: return EKeyDown; sl@0: sl@0: case TRawEvent::EKeyUp: sl@0: _LIT(EKeyUp,"EKeyUp"); sl@0: return EKeyUp; sl@0: sl@0: case TRawEvent::ERedraw: sl@0: _LIT(ERedraw,"ERedraw"); sl@0: return ERedraw; sl@0: sl@0: case TRawEvent::ESwitchOn: sl@0: _LIT(ESwitchOn,"ESwitchOn"); sl@0: return ESwitchOn; sl@0: sl@0: case TRawEvent::EActive: sl@0: _LIT(EActive,"EActive"); sl@0: return EActive; sl@0: sl@0: case TRawEvent::EInactive: sl@0: _LIT(EInactive,"EInactive"); sl@0: return EInactive; sl@0: sl@0: case TRawEvent::EUpdateModifiers: sl@0: _LIT(EUpdateModifiers,"EUpdateModifiers"); sl@0: return EUpdateModifiers; sl@0: sl@0: case TRawEvent::EButton1Down: sl@0: _LIT(EButton1Down,"EButton1Down"); sl@0: return EButton1Down; sl@0: sl@0: case TRawEvent::EButton1Up: sl@0: _LIT(EButton1Up,"EButton1Up"); sl@0: return EButton1Up; sl@0: sl@0: case TRawEvent::EButton2Down: sl@0: _LIT(EButton2Down,"EButton2Down"); sl@0: return EButton2Down; sl@0: sl@0: case TRawEvent::EButton2Up: sl@0: _LIT(EButton2Up,"EButton2Up"); sl@0: return EButton2Up; sl@0: sl@0: case TRawEvent::EButton3Down: sl@0: _LIT(EButton3Down,"EButton3Down"); sl@0: return EButton3Down; sl@0: sl@0: case TRawEvent::EButton3Up: sl@0: _LIT(EButton3Up,"EButton3Up"); sl@0: return EButton3Up; sl@0: sl@0: case TRawEvent::ESwitchOff: sl@0: _LIT(ESwitchOff,"ESwitchOff"); sl@0: return ESwitchOff; sl@0: sl@0: case TRawEvent::EKeyRepeat: sl@0: _LIT(EKeyRepeat,"EKeyRepeat"); sl@0: return EKeyRepeat; sl@0: sl@0: case TRawEvent::ECaseOpen: sl@0: _LIT(ECaseOpen,"ECaseOpen"); sl@0: return ECaseOpen; sl@0: sl@0: case TRawEvent::ECaseClose: sl@0: _LIT(ECaseClose,"ECaseClose"); sl@0: return ECaseClose; sl@0: sl@0: case TRawEvent::EPointer3DInRange: sl@0: _LIT(EPointer3DInRange,"EPointer3DInRange"); sl@0: return EPointer3DInRange; sl@0: sl@0: case TRawEvent::EPointer3DOutOfRange: sl@0: _LIT(EPointer3DOutOfRange,"EPointer3DOutOfRange"); sl@0: return EPointer3DOutOfRange; sl@0: sl@0: case TRawEvent::EPointer3DTilt: sl@0: _LIT(EPointer3DTilt,"EPointer3DTilt"); sl@0: return EPointer3DTilt; sl@0: sl@0: case TRawEvent::EPointer3DRotation: sl@0: _LIT(EPointer3DRotation,"EPointer3DRotation"); sl@0: return EPointer3DRotation; sl@0: sl@0: case TRawEvent::EPointer3DTiltAndMove: sl@0: _LIT(EPointer3DTiltAndMove,"EPointer3DTiltAndMove"); sl@0: return EPointer3DTiltAndMove; sl@0: sl@0: case TRawEvent::EButton4Down: sl@0: _LIT(EButton4Down,"EButton4Down"); sl@0: return EButton4Down; sl@0: sl@0: case TRawEvent::EButton4Up: sl@0: _LIT(EButton4Up,"EButton4Up"); sl@0: return EButton4Up; sl@0: sl@0: case TRawEvent::EButton5Down: sl@0: _LIT(EButton5Down,"EButton5Down"); sl@0: return EButton5Down; sl@0: sl@0: case TRawEvent::EButton5Up: sl@0: _LIT(EButton5Up,"EButton5Up"); sl@0: return EButton5Up; sl@0: sl@0: case TRawEvent::EButton6Down: sl@0: _LIT(EButton6Down,"EButton6Down"); sl@0: return EButton6Down; sl@0: sl@0: case TRawEvent::EButton6Up: sl@0: _LIT(EButton6Up,"EButton6Up"); sl@0: return EButton6Up; sl@0: sl@0: case TRawEvent::ERestartSystem: sl@0: _LIT(ERestartSystem,"ERestartSystem"); sl@0: return ERestartSystem; sl@0: sl@0: default: sl@0: _LIT(KUndef,"User Defined Event"); sl@0: return KUndef; sl@0: } sl@0: } sl@0: sl@0: const TDesC& WsEventName(const TWsEvent& aEvent) sl@0: { sl@0: switch(aEvent.Type()) sl@0: { sl@0: case EEventNull: sl@0: _LIT(EEventNull,"EEventNull"); sl@0: return EEventNull; sl@0: sl@0: case EEventKey: sl@0: _LIT(EEventKey,"EEventKey"); sl@0: return EEventKey; sl@0: sl@0: case EEventKeyUp: sl@0: _LIT(EEventKeyUp,"EEventKeyUp"); sl@0: return EEventKeyUp; sl@0: sl@0: case EEventKeyDown: sl@0: _LIT(EEventKeyDown,"EEventKeyDown"); sl@0: return EEventKeyDown; sl@0: sl@0: case EEventModifiersChanged: sl@0: _LIT(EEventModifiersChanged,"EEventModifiersChanged"); sl@0: return EEventModifiersChanged; sl@0: sl@0: case EEventPointer: sl@0: _LIT(EEventPointer,"EEventPointer"); sl@0: return EEventPointer; sl@0: sl@0: case EEventPointerEnter: sl@0: _LIT(EEventPointerEnter,"EEventPointerEnter"); sl@0: return EEventPointerEnter; sl@0: sl@0: case EEventPointerExit: sl@0: _LIT(EEventPointerExit,"EEventPointerExit"); sl@0: return EEventPointerExit; sl@0: sl@0: case EEventPointerBufferReady: sl@0: _LIT(EEventPointerBufferReady,"EEventPointerBufferReady"); sl@0: return EEventPointerBufferReady; sl@0: sl@0: case EEventDragDrop: sl@0: _LIT(EEventDragDrop,"EEventDragDrop"); sl@0: return EEventDragDrop; sl@0: sl@0: case EEventFocusLost: sl@0: _LIT(EEventFocusLost,"EEventFocusLost"); sl@0: return EEventFocusLost; sl@0: sl@0: case EEventFocusGained: sl@0: _LIT(EEventFocusGained,"EEventFocusGained"); sl@0: return EEventFocusGained; sl@0: sl@0: case EEventSwitchOn: sl@0: _LIT(EEventSwitchOn,"EEventSwitchOn"); sl@0: return EEventSwitchOn; sl@0: sl@0: case EEventPassword: sl@0: _LIT(EEventPassword,"EEventPassword"); sl@0: return EEventPassword; sl@0: sl@0: case EEventWindowGroupsChanged: sl@0: _LIT(EEventWindowGroupsChanged,"EEventWindowGroupsChanged"); sl@0: return EEventWindowGroupsChanged; sl@0: sl@0: case EEventErrorMessage: sl@0: _LIT(EEventErrorMessage,"EEventErrorMessage"); sl@0: return EEventErrorMessage; sl@0: sl@0: case EEventMessageReady: sl@0: _LIT(EEventMessageReady,"EEventMessageReady"); sl@0: return EEventMessageReady; sl@0: sl@0: case EEventMarkInvalid: sl@0: _LIT(EEventMarkInvalid,"EEventMarkInvalid"); sl@0: return EEventMarkInvalid; sl@0: sl@0: case EEventSwitchOff: sl@0: _LIT(EEventSwitchOff,"EEventSwitchOff"); sl@0: return EEventSwitchOff; sl@0: sl@0: case EEventKeySwitchOff: sl@0: _LIT(EEventKeySwitchOff,"EEventKeySwitchOff"); sl@0: return EEventKeySwitchOff; sl@0: sl@0: case EEventScreenDeviceChanged: sl@0: _LIT(EEventScreenDeviceChanged,"EEventScreenDeviceChanged"); sl@0: return EEventScreenDeviceChanged; sl@0: sl@0: case EEventFocusGroupChanged: sl@0: _LIT(EEventFocusGroupChanged,"EEventFocusGroupChanged"); sl@0: return EEventFocusGroupChanged; sl@0: sl@0: case EEventCaseOpened: sl@0: _LIT(EEventCaseOpened,"EEventCaseOpened"); sl@0: return EEventCaseOpened; sl@0: sl@0: case EEventCaseClosed: sl@0: _LIT(EEventCaseClosed,"EEventCaseClosed"); sl@0: return EEventCaseClosed; sl@0: sl@0: case EEventWindowGroupListChanged: sl@0: _LIT(EEventWindowGroupListChanged,"EEventWindowGroupListChanged"); sl@0: return EEventWindowGroupListChanged; sl@0: sl@0: case EEventWindowVisibilityChanged: sl@0: _LIT(EEventWindowVisibilityChanged,"EEventWindowVisibilityChanged"); sl@0: return EEventWindowVisibilityChanged; sl@0: sl@0: case EEventRestartSystem: sl@0: _LIT(EEventRestartSystem,"EEventRestartSystem"); sl@0: return EEventRestartSystem; sl@0: case EEventDisplayChanged: sl@0: _LIT(EEventDisplayChanged,"EEventDisplayChanged"); sl@0: return EEventDisplayChanged; sl@0: sl@0: case EEventKeyRepeat: sl@0: _LIT(EEventKeyRepeat,"EEventKeyRepeat"); sl@0: return EEventKeyRepeat; sl@0: sl@0: case EEventGroupWindowOpen: sl@0: _LIT(EEventGroupWindowOpen,"EEventGroupWindowOpen"); sl@0: return EEventGroupWindowOpen; sl@0: sl@0: case EEventGroupWindowClose: sl@0: _LIT(EEventGroupWindowClose,"EEventGroupWindowClose"); sl@0: return EEventGroupWindowClose; sl@0: sl@0: case EEventWindowClose: sl@0: _LIT(EEventWindowClose,"EEventWindowClose"); sl@0: return EEventWindowClose; sl@0: sl@0: case EEventDirectScreenAccessBegin: sl@0: _LIT(EEventDirectScreenAccessBegin,"EEventDirectScreenAccessBegin"); sl@0: return EEventDirectScreenAccessBegin; sl@0: sl@0: case EEventDirectScreenAccessEnd: sl@0: _LIT(EEventDirectScreenAccessEnd,"EEventDirectScreenAccessEnd"); sl@0: return EEventDirectScreenAccessEnd; sl@0: sl@0: case EEventHeartbeatTimerStateChange: sl@0: _LIT(EEventHeartbeatTimerStateChange,"EEventHeartbeatTimerStateChange"); sl@0: return EEventHeartbeatTimerStateChange; sl@0: sl@0: case EEventPowerMgmt: sl@0: _LIT(EEventPowerMgmt,"EEventPowerMgmt"); sl@0: return EEventPowerMgmt; sl@0: sl@0: case EEventReserved: sl@0: _LIT(EEventReserved,"EEventReserved"); sl@0: return EEventReserved; sl@0: sl@0: case EEventUser: sl@0: _LIT(EEventUser,"EEventUser"); sl@0: return EEventUser; sl@0: sl@0: default: sl@0: _LIT(KUndef,"User Defined Event"); sl@0: return KUndef; sl@0: } sl@0: } sl@0: sl@0: