Cisco Cisco Computer Telephony Integration Option 9.0 Developer's Guide

Page of 490
   
5-12
CTI OS Developer’s Guide for Cisco Unified Contact Center Enterprise
Release 8.5(3)
Chapter 5      CTI OS ActiveX Controls
CTI OS ActiveX Control Descriptions
ReasonCodeState
This version of the ReasonCodeState method returns the enumReasonCodeState value.
Syntax
COM:
HRESULT ReasonCodeState([out, retval] enumReasonCodeState *pVal)
VB:
ReasonCodeState()As AgentStateCtlLib.enumReasonCodeState
.NET:
AgentStateCtlLib.enumReasonCodeState   ReasonCodeState()
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.