|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface HCIService
This interface is the base interface for any HCI service.
A service is a JCRE Entry Point Object which allows to register and to unregister listeners in order to get access to their services.
| Method Summary | |
|---|---|
void |
activateEvent(byte event)
This method is used to configure which events will trigger this service. |
void |
deactivateEvent(byte event)
This method is used remove an event from the list of events which cause notification of this service. |
boolean |
getEventNotificationStatus(byte event)
return the activation state of an event. |
void |
register(HCIListener listener)
Registers the Listener Object to the service. |
void |
requestCallBackNotification(short event)
This method requests the HCI framework to call the listener method onCallBack(short event, HCIMessage message) with the event parameter to provide access to the HCIMessage object of the addressed service. |
void |
unregister(HCIListener listener)
This method unregisters the given listener from the service. |
| Method Detail |
|---|
void register(HCIListener listener)
throws HCIException
listener - listener to be registered with the given service
(editor's note: add exceptions)
HCIExceptionvoid unregister(HCIListener listener)
listener - listener to be unregistered from the given service
void requestCallBackNotification(short event)
throws HCIException
event - event value to be passed to the HCIListener. The value of the
parameter must not collide with any event constant which is defined
in the HCILister interface(s). Therefore the range of short values
< 0 shall be reserved for the use with this method.
HCIException(editor's note: add exception)
void activateEvent(byte event)
throws HCIException
event - event to be activated
(editor's note: add exceptions)
HCIExceptionvoid deactivateEvent(byte event)
event - event to be activated
(editor's note: add exceptions)boolean getEventNotificationStatus(byte event)
event - event to inquire activation state
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||