Cisco Cisco Computer Telephony Integration Option 9.0 开发者指南
12-24
CTI OS Developer’s Guide for Cisco Unified ICM/Contact Center Enterprise & Hosted
Release 8.0(1)
Chapter 12 Helper Classes
CILRefArg Class (C++, Java, and .NET only)
CILRefArg Class (C++, Java, and .NET only)
The CILRefArg class is a subclass of the Arg class. Its main responsibility is to store a reference of a
CCtiOsObject object (see
CCtiOsObject object (see
). This class allows object references to be included
in argument structure. The object types that can be used are any of the following: CAgent, CCall,
CSkillGroup, CWaitObject or CCtiOsSession.
CSkillGroup, CWaitObject or CCtiOsSession.
In addition to the methods inherited from the Arg class, the CILRefArg class contains the methods listed
in
in
.
GetType
The GetType method returns the type of the data stored by the Arg. For a CilRefArg, this will always be
ARG_REFERENCE.
ARG_REFERENCE.
Syntax
C++:
enumArgTypes GetType()
COM:
HRESULT GetType(/*[out, retval]*/ int* type);
VB:
GetType () as Integer
Java:
int GetType()
.NET:
Use the GetArgType method.
Output Parameters
type
Integer that receives the enumerated constant that identifies the data type stored in Arg. In this case,
that data type will be ARG_REFERENCE.
that data type will be ARG_REFERENCE.
Return Values
COM: Default HRESULT return values. See
Others: Returns the enumerated value that identifies the data type stored in the Arg (see
For CilRefArg, this will always be ARG_REFERENCE.
GetUniqueObjectID (Java and .NET only)
The GetUniqueObjectID method returns the unique objectID of the contained CtiOsObject.
Table 12-6
CILRefArg Class Methods
Method
Description
GetType
Returns the ARG_REFERENCE.
GetUniqueObjectID
Returns the UID of the contained CtiOsObject
GetValue
Returns the encapsulated pointer in the object.
SetValue
Encapsulates the pointer to CTI OS object into the
CILRefArg object.
CILRefArg object.