[operations] [attributes] [fields] [template] [definition]
[implementation] [documentation]
To use the search tool you need to use a browser which supports JAVA (c)

[next] [prev] [superclass] [next peer] [prev peer] [subclass] [index] [hierarchy]

HasPhoneEvents

mixes in with Object

HasPhoneEvents



Operations

Get list of all operations

AddEventClient
EachEventClient
RemoveEventClient
TriggerAudioAction
TriggerConnectAction
TriggerEndCallerID
TriggerHookswitchAction
TriggerRingAction


Attributes

Get list of all attributes

Class HasPhoneEvents defines no new attributes.


Fields

Field Type
HasPhoneEvents: eventClients: ObjectList


Instance template

Class HasPhoneEvents cannot be instantiated.


Class definition

// a mixin for adding a capability to trigger PhoneEvent actions to PhoneResources
// (such as enabling a PhoneServer to be notified by PhoneCircuit when a ring is
// received)

Define Class HasPhoneEvents;
    mixes in with Object;
    field eventClients: ObjectList;     
        // list of HasPhoneEvents objects
                                        // will be notified when ring, connect, etc.
                                        // can be either list or a single object
                                        // do not have to allocate PhoneCircuit to be event clients

    operation AddEventClient(client: HasPhoneEvents; firstInList: Boolean);
    operation RemoveEventClient(client: HasPhoneEvents);

    operation EachEventClient(function: EachFunction; parameters: Pointer): Object, noFail;

    operation TriggerRingAction();      
        // propagate action to event clients
    operation TriggerConnectAction();
    operation TriggerHookswitchAction();
    operation TriggerAudioAction();
    operation TriggerEndCallerID();
end class;