Cisco Cisco Computer Telephony Integration Option 8.5 Developer's Guide

Page of 500
   
6-89
CTI OS Developer’s Guide for Cisco ICM/IPCC Enterprise & Hosted Editions
Cisco CTI OS Release 7.2(1)
Chapter 6      Event Interfaces and Events
IGenericEvents Interface
IGenericEvents Interface
The IGenericEvents interface receives Generic events. Unlike other interfaces that have a callback 
method for each event, the IGenericEvents interface has one method that passes the 
CtiOs_Enums.EventID code and the Arguments for the event.
OnEvent
Passes the eventID code and arguments for generic events received by the IGenericEvents interface.
Syntax
JAVA:
 void OnEvent(int iEventID, Arguments rArgs
.NET:
 void OnEvent(int iEventID, Cisco.CtiOs.Cil.EventPublisher.EventPublisherEventArgs 
args)
Java Adapter Classes
The CTI OS Java CIL contains the same adapter classes as the C++ CIL plus the LogEventsAdapter 
class. This class provides the default implementation for the message handlers in ILogEvents.
This section lists the methods available in the CTI OS Java CIL for event subscription and 
unsubscription.
IAllInOne
The following methods subscribe and unsubscribe the CTI OS Session Object for the IAllInOne interface.
int addAllInOneEventListener(IAllInOne  allInOneEvents)
int removeAllInOneEventListener(IAllInOne  allInOneEvents)
IAgentEvents
The following methods subscribe and unsubscribe the CTI OS Session Object for the 
IAgentEventsinterface.
int addAgentEventListener(IAgentEvents  agentEvents)
int removeAgentEventListener(IAgentEvents  agentEvents)
IButtonEnablementEvents
The following methods subscribe and unsubscribe the CTI OS Session Object for the 
IButtonEnablementEvents interface.
int addButtonEnablementEventListener(IButtonEnablementEvents buttonEvents)
int removeButtonEnablementEventListener(IButtonEnablementEvents buttonEvents)