Cisco Cisco Computer Telephony Integration Option 8.5 Developer's Guide

Page of 500
   
12-10
CTI OS Developer’s Guide for Cisco Unified ICM/Contact Center Enterprise & Hosted
Release 7.5(1)
Chapter 12      Helper Classes
Arguments Class
 lists the Arguments class methods.
Usage Notes
When writing an application using the CTI OS SDK, the following sequence of steps in the program may 
produce a problem:
Programmer passes an Arguments array into a CTI OS SDK method (methodA)
MethodA returns
Programmer modifies the same Arguments array
Programmer passes the modified Arguments array into another CTI OS SDK method (methodB)
Table 12-5
Arguments Class Methods
Method
Description
AddItem
Adds an item to an Arguments array.
AddRef
Increments the reference count for the 
data item.
Clear
Deletes all elements from an Arguments 
array.
Clone
Creates a copy of an Arguments array.
CreateInstance
Creates an Arguments array.
DumpArgs
Returns Arguments object as a string
GetElement (also GetElementInt, 
GetElementUInt, 
GetElementUShort, 
GetElementShort, GetElementBool, 
GetElementString, GetElementArg, 
GetElementKey 
GetElementArgType)
Returns the value stored under a specified 
index.
GetValue (also GetValueInt, 
GetValueUShort, GetValueShort, 
GetValueBool, GetValueUInt, 
GetValueString, GetValueArray, 
GetValueArg)
Returns the value stored under a specified 
key.
IsValid
Tests if a key is present in the current 
Arguments array.
NumElements
Returns the number of arguments in the 
current Arguments array,.
Release
Decrements the reference count for the 
data item.
RemoveItem
Removes an item from an Arguments 
array.
SetElement
Sets the value of an index.
SetValue
Sets the value of a key.