Cisco Cisco Computer Telephony Integration Option 8.5 Developer's Guide

Page of 500
   
12-6
CTI OS Developer’s Guide for Cisco ICM/IPCC Enterprise & Hosted Editions
Cisco CTI OS Release 7.2(1)
Chapter 12      Helper Classes
Arg Class
Others: Returns the enumerated value that identifies the data type stored in the Arg (see 
Table 12-2
enumArgTypes
Argument Type
Description
ARG_NOTSET
Argument type not determined
ARG_INT
Signed integer
ARG_UINT
Unsigned integer
ARG_USHORT
2 bytes unsigned integer
ARG_SHORT
2 bytes signed integer
ARG_BOOL
1 byte integer
ARG_STRING
Character string
ARG_ARGARRAY
Variable length Arguments array
GetValue Methods
The GetValue method returns the value stored in the object. To extract a specific type of data you invoke 
the method designated for it. For more detail on GetValueArray, GetValueInt, and GetValueString, see 
the corresponding methods described in 
Syntax
C++:
int GetValueInt(); 
unsigned int GetValueUInt();
unsigned shortGetValueUShort(); 
short GetValueShort();
string& GetValueString();
bool GetValueBool(); 
bool GetValueInt(int * value);   
bool GetValueUInt(unsigned int * value);
bool GetValueUShort(unsigned short * value);
bool GetValueShort( short * psVallue);
bool GetValueBool( bool * value);
bool GetValueString(string* value);
COM:
HRESULT GetValue(/*[out, retval]*/ VARIANT* value);
VB:
GetValue() as Variant
VB: 
GetValue (key as String, value as Variant) as Boolean
Java:
Integer GetValueIntObj()
Long    GetValueUIntObj()
Short   GetValueShortObj()
Integer GetValueUShortObj()
Boolean GetValueBoolObj()
String  GetValueString()
.NET
:
System.Boolean GetValueInt(out System.Int32 nValue)
.NET:
System.Boolean GetValueUInt(out System.Int64 nValue)
.NET
:
System.Boolean GetValueShort(out System.Int16 nValue)
.NET
:
System.Boolean GetValueUShort(out System.Int32 nValue)
.NET
:
System.Boolean GetValueBool(out System.Boolean bValue)
.NET
:
System.Boolean GetValueString(out System.String strValue)