public MessageTypeDefines constant values for the MessageProperties.MSG_TYPE message property.
The following example shows the onSystemMessage(QAMessage) method, which is used to handle QAnywhere system messages. The message type is compared to MessageType.NETWORK_STATUS_NOTIFICATION.
private void onSystemMessage(QAMessage msg) {
QATextMessage t_msg;
int msg_type;
String network_adapters;
String network_names;
String network_info;
t_msg = (QATextMessage) msg;
if (t_msg != null) {
// Evaluate message type.
msg_type = t_msg.getIntProperty(MessageProperties.MSG_TYPE);
if (msg_type == MessageType.NETWORK_STATUS_NOTIFICATION) {
// Handle network status notification.
}
}
} |
All members of ianywhere.qanywhere.client.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 |