public MessageTypeDefines constant values for the MSG_TYPE message property.
The following example shows the onSystemMessage method which is used to handle QAnywhere system messages.
The message type is compared to NETWORK_STATUS_NOTIFICATION.
void SystemQueueListener::onMessage(QAMessage * msg) {
QATextMessage * t_msg;
TCHAR buffer[512];
int len;
int msg_type;
t_msg = msg->castToTextMessage();
if (t_msg != NULL) {
t_msg->getIntProperty( MessageProperties::MSG_TYPE, &msg_type );
if (msg_type == MessageType::NETWORK_STATUS_NOTIFICATION) {
// get network names using MessageProperties::NETWORK
len = t_msg->getStringProperty(MessageProperties::NETWORK,buffer,sizeof(buffer));
}
// ...
}
} |
All members of MessageType, including all inherited members.
NETWORK_STATUS_NOTIFICATION variable
PUSH_NOTIFICATION variable
REGULAR variable
| Discuss this page in DocCommentXchange. Send feedback about this page using email. |
Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1 |