Cisco Cisco Computer Telephony Integration Option 8.5 Developer's Guide

Page of 500
   
12-28
CTI OS Developer’s Guide for Cisco Unified ICM/Contact Center Enterprise & Hosted
Release 7.5(1)
Chapter 12      Helper Classes
CWaitObject Class
Syntax
C++:
 
const char* GetString();
Java, .NET:   
String GetString();
Parameters
None.
Return Values
Returns a text string containing the description of the exception.
What 
The What method returns a text string containing the description of the exception, the code of an error, 
and the status.
Syntax
const char* What();
Parameters
None.
Return Values
Returns a text string containing the description of the exception, the code of an error, and the status.
CWaitObject Class 
CWaitObject is a CIL object that derives from CtiOsObject. It is a utility class that enables a thread to 
wait for one or more CTI events. The user can provide a list of events along with a wait timeout. Wait 
objects are created with the CreateWaitObject Session Object method and destroyed with the 
DestroyWaitObject Session Object method.
Warning
You must not use a WaitObject instance within an event handler. Events are sent to desktop 
applications by a single thread in the CIL. If that thread is blocked while waiting for a specific event, 
the thread will deadlock and the event handler will not receive any more events.