Cisco Cisco Computer Telephony Integration Option 8.5 Developer's Guide
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:
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.
data item.
Clear
Deletes all elements from an Arguments
array.
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)
GetElementUInt,
GetElementUShort,
GetElementShort, GetElementBool,
GetElementString, GetElementArg,
GetElementKey
GetElementArgType)
Returns the value stored under a specified
index.
index.
GetValue (also GetValueInt,
GetValueUShort, GetValueShort,
GetValueBool, GetValueUInt,
GetValueString, GetValueArray,
GetValueArg)
GetValueUShort, GetValueShort,
GetValueBool, GetValueUInt,
GetValueString, GetValueArray,
GetValueArg)
Returns the value stored under a specified
key.
key.
IsValid
Tests if a key is present in the current
Arguments array.
Arguments array.
NumElements
Returns the number of arguments in the
current Arguments array,.
current Arguments array,.
Release
Decrements the reference count for the
data item.
data item.
RemoveItem
Removes an item from an Arguments
array.
array.
SetElement
Sets the value of an index.
SetValue
Sets the value of a key.