CHAI SDK  Version 1.3
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
CPNS::IVMIDILinkInLocalDevice_NotificationHandler Class Referenceabstract

Notification handler for VMIDILink In device. More...

Public Member Functions

virtual void OnVMIDILinkInLocalDevice_StatusChange (CPNS::IBaseLocalDevice *const pNotifiedObject, CPNS::boolean const fConnected)=0
 This is called when the connection status changed. More...
 
virtual void OnVMIDILinkInLocalDevice_Message (CPNS::IBaseLocalDevice *const pNotifiedObject, CPNS::uint8 const bChannel, CPNS::IBaseMessage *const pMsg)=0
 Called on application message arriving. More...
 
virtual void OnVMIDILinkInLocalDevice_ClockTick (CPNS::IBaseLocalDevice *const pNotifiedObject)
 Called if the input receives a clock tick. More...
 
virtual void OnVMIDILinkInLocalDevice_ClockCommand (CPNS::IBaseLocalDevice *const pNotifiedObject, CPNS::Enums::ClockCommands const command)
 Called if the input receives a clock command. More...
 

Detailed Description

Notification handler for VMIDILink In device.

Member Function Documentation

virtual void CPNS::IVMIDILinkInLocalDevice_NotificationHandler::OnVMIDILinkInLocalDevice_ClockCommand ( CPNS::IBaseLocalDevice *const  pNotifiedObject,
CPNS::Enums::ClockCommands const  command 
)
inlinevirtual

Called if the input receives a clock command.

Parameters
[in]pNotifiedObjectPointer to the VMIDILink In object receiving the message
[in]commandCommand o be executed
virtual void CPNS::IVMIDILinkInLocalDevice_NotificationHandler::OnVMIDILinkInLocalDevice_ClockTick ( CPNS::IBaseLocalDevice *const  pNotifiedObject)
inlinevirtual

Called if the input receives a clock tick.

Parameters
[in]pNotifiedObjectPointer to the VMIDILink In object receiving the message
virtual void CPNS::IVMIDILinkInLocalDevice_NotificationHandler::OnVMIDILinkInLocalDevice_Message ( CPNS::IBaseLocalDevice *const  pNotifiedObject,
CPNS::uint8 const  bChannel,
CPNS::IBaseMessage *const  pMsg 
)
pure virtual

Called on application message arriving.

On message reception, the application must check the message object type using IObject::GetObjectType, then call the right dedicated IBaseMessage's method (such as IBaseMessage::GetIEventMessage) to get the correct interface pointer giving access to the message content.

Parameters
[in]pNotifiedObjectPointer to the VMIDILink In object receiving the message
[in]bChannelThe channel receiving the message
[in]pMsgPointer to base interface of the message.
virtual void CPNS::IVMIDILinkInLocalDevice_NotificationHandler::OnVMIDILinkInLocalDevice_StatusChange ( CPNS::IBaseLocalDevice *const  pNotifiedObject,
CPNS::boolean const  fConnected 
)
pure virtual

This is called when the connection status changed.

Parameters
[in]pNotifiedObjectPointer to the VMIDILink object receiving the message
[in]fConnectedThe new connection status. TRUE if the VMIDILink is connected.