kbLogger 2.0.b1
The automotive ready test and logging program.
TranslatorProtocol Class Reference

This class defines the API of the TranslatorProtocol.

#include <translator.h>

Public Slots

TranslatorProtocol related functions.
TranslatorProtocolappend (TranslatorMessage *pMessage)
 Appends a message.
 
TranslatorProtocolappend (TranslatorMessage *pMessage, QString strRegExp)
 Appends a message with regular expression as condition.
 
TranslatorMessagegetMessage (QString strId)
 Gets an user defined message.
 
TranslatorMessagegetMessageById (QString strId)
 Gets an user defined message.
 

Member Function Documentation

◆ append

TranslatorProtocol * append ( TranslatorMessage * pMessage)
slot
Parameters
pMessageAppends a message.

◆ getMessage

TranslatorMessage * getMessage ( QString strMessageName)
slot

Gets an user defined message.

Example:

var message11 = myProtocol.getMessage("myMessage");
Parameters
strMessageNameThe message name.
Returns
Returns a handle to the found message, 0 case of an error.

◆ getMessageById

TranslatorMessage * getMessageById ( QString strMessageId)
slot

Gets an user defined message.

Example:

var message11 = myProtocol.getMessage("01000001");
Parameters
strMessageIdThe message ID as string.
Returns
Returns a handle to the found message, 0 case of an error.