Cisco Cisco Computer Telephony Integration Option 9.0 Developer's Guide

Page of 546
 
12-39
Cisco ICM Software CTI OS Developer’s Guide Release 6.0(0)
 
Chapter 12      Helper Classes
CWaitObject Class (C++ and Java only)
Parameters
iEventId
The enumerated event ID of the event to check for. 
Return Values
If the event is in the mask it returns true. Otherwise, it returns false.
SetMask
The SetMask method sets the list of events that the CWaitObject will wait for.
Syntax
C++: 
bool SetMask(Arguments & args);
Java: 
boolean SetMask(Arguments rArgs);
Parameters
args
A reference to an Arguments object containing the list of events to wait for. 
The Arguments should contain values where the keys are “Event1” through 
“EventN” and the values are the enumerated event IDs.
Return Values
If the method was able to set the mask it returns true. Otherwise it returns false.
WaitOnMultipleEvents
The WaitOnMultipleEvents method waits for the events in the CWaitObject’s 
wait mask or returns if one of the events has not occurred after the specified 
timeout period. This is a “one of” method which returns after one of the specified 
events occurs.