Cisco Cisco Computer Telephony Integration Option 8.5 Guía Del Desarrollador

Descargar
Página de 506
   
12-31
CTI OS Developer’s Guide for Cisco Unified Contact Center Enterprise
Release 8.5(1)
Chapter 12      Helper Classes
CWaitObject Class
InMask 
The InMask method checks to see if the specified event is in the mask of events that the CWaitObject 
will wait for.
Syntax
C++:
 
 
 
 
 
 
bool InMask(int iEventId);
Java, .NET:
 
boolean InMask(int iEventId);
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, .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
The method returns true if it is able to set the. 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.