Cisco Cisco Computer Telephony Integration Option 9.0 Developer's Guide

Page of 640
Chapter 9      Agent Object
Methods
9-26
CTI OS Developer’s Guide for Cisco ICM/IPCC Enterprise & Hosted Editions Release 7.0(0)
Syntax
C++:
bool IsSupervisor()
COM:
HRESULT IsSupervisor (VARIANT_BOOL * bIsSupervisor)
VB:
IsSupervisor () As Boolean
Java:
boolean IsSupervisorMode()
.NET:
bool IsSupervisor()
Parameters
bIsSupervisor
Output parameter (return parameter in VB) that returns true if the current 
AgentMode connection is for a supervisor and false if it is for an agent.
Return Values
If the current session is for a supervisor, this method returns true. Otherwise the 
method returns false.
Login
The Login method performs a login to the ACD (if supported). Generally, the 
minimum parameters required to log into an ACD are AgentID and 
AgentInstrument. Often, based on customer configuration, the minimum 
requirements include an ACD password (AgentPassword). Some switches require 
PositionID in place of (or in addition to) AgentInstrument. Optional arguments 
include Extension or AgentWorkMode.
Syntax
C++:
virtual int Login(Arguments & args);
COM:
HRESULT Login  ( /*[in]*/ IArguments * pVariantArgs, /*[out]*/ 
int * errorcode );
VB:
Login (args As CTIOSCLIENTLib.IArguments) As Long
Java:
int Login(Arguments args)
.NET:
CilError Login(Arguments args)