Cisco Cisco Computer Telephony Integration Option 8.5 Developer's Guide

Page of 546
 
Chapter 9      Agent Object
Methods
9-24
Cisco ICM Software CTI OS Developer’s Guide Release 6.0(0)
IsAgent
The IsAgent method determines whether the AgentMode connection is for an 
agent rather than a supervisor.
Syntax
C++:
bool IsAgent()
COM:
HRESULT IsAgent (VARIANT_BOOL *bIsAgent)
VB:
IsAgent () As Boolean
Java:
boolean IsAgent()
Parameters
bIsAgent
Output parameter (return parameter in VB) that returns true if the current 
AgentMode connection is for an agent and false if it is for a supervisor.
Return Values
If the current session is in agent mode it returns true, otherwise it returns false.
IsSupervisor
The IsSupervisor method checks if the current mode of the session is supervisor 
mode. 
Syntax
C++:
bool IsSupervisor()
COM:
HRESULT IsSupervisor (VARIANT_BOOL * bIsSupervisor)
VB:
IsSupervisor () As Boolean
Java:
boolean IsSupervisorMode()