Cisco Cisco Computer Telephony Integration Option 8.5 Developer's Guide

Page of 508
   
7-9
CTI OS Developer’s Guide for Cisco Unified ICM/Contact Center Enterprise & Hosted
Release 8.0(1)
Chapter 7      CtiOs Object
Methods
Syntax
C++:
int GetValueInt (string& key)
int GetValueInt (int key)
int GetValueInt (char* key)
COM:
HRESULT GetValueInt /*[in]*/ VARIANT* key, /*[out,retval]*/ int* value)
VB:
GetValueInt (key As VARIANT) As Integer
Java:
Not implemented, use GetValueIntObj
.NET:
System.Boolean GetValueInt(Enum_CtiOs eKeyID, out System.Int32 nValue)
System.Boolean GetValueInt(System.String sPropname, out System.Int32 nValue)
Parameters
C++: key
Depending on the method used, either a string or int that contains the name or ID of the property 
whose value you want to retrieve.
COM, VB: key
VARIANT containing the ID or name of the prerty to retrieve.
COM: value
An output parameter (return parameter in VB) containing an integer pointer to the returned value of 
the property. 
.NET: sPropName
The name of the property.
.NET: nValue
Upon success, this output parameter contains the value of the specified property. Upon failure, this 
parameter is set to null.
.NET: eKeyID
Keyword ID of the property.
Return Value
COM: Default HRESULT return value. See 
 
.NET: True if the method succeeds.; false if the method fails.
GetValueIntObj (Java only)
Gets the contained value as an integer.
Syntax
Integer GetValueIntObj( int iKey)
Integer GetValueIntObj( String sKey)