Cisco Cisco Computer Telephony Integration Option 8.5 Developer's Guide

Page of 500
   
5-7
CTI OS Developer’s Guide for Cisco Unified ICM/Contact Center Enterprise & Hosted
Release 7.5(1)
Chapter 5      CTI OS ActiveX Controls
CTI OS ActiveX Control Descriptions
Parameters
None
Return Value
Return value is enumReasonCodeState (This will return an Integer type)
ReasonCodeState
This version of the ReasonCodeState method sets the enumReasonCodeState value.
Syntax
COM:
HRESULT ReasonCodeState([in] enumReasonCodeState newVal)
VB:
ReasonCodeState = AgentStateCtlLib.enumReasonCodeState
.NET:
ReasonCodeState = AgentStateCtlLib.enumReasonCodeState 
Parameters
None
Return Value
None.
Following are the enumerated values for ReasonCodeState
typedef enum {
  eNotUsed,
  eRequested,
  eRequired,
} enumReasonCodeState;
Related Events
The agent state control handles the following events.
OnAgentStateChanged
The OnAgentStateChanged message is generated when an agent state change event is fired.
Syntax
COM:
HRESULT OnAgentStateChanged([in] LPDISPATCH  vEventParam)
VB:
.NET:
Parameters
vEventParam
Event fired to change the Agent state.