Cisco Cisco Computer Telephony Integration Option 8.5 Developer's Guide

Page of 668
 
12-43
CTI OS Developer’s Guide for Cisco ICM/IPCC Enterprise & Hosted Editions Release 7.1(1)
 
Chapter 12      Helper Classes
CWaitObject Class
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, .NET: 
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.
Syntax
C++: 
      
int WaitOnMultipleEvents(DWORD dwMilliseconds = INFINITE);
Java, .NET: 
int WaitOnMultipleEvents(long iMilliseconds);