Руководство Разработчика для Cisco Cisco Computer Telephony Integration OS 8.5
12-31
CTI OS Developer’s Guide for Cisco Unified ICM/Contact Center Enterprise & Hosted
Release 7.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.
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.
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.
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.