|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
org.dvb.application.AppsDatabaseEvent
public class AppsDatabaseEvent
The AppsDatabaseEvent
class indicates either an entry
in the application database has changed, or so many changes have occurred.
that the database should be considered totally new.
An event with event_id NEW_DATABASE shall always be sent after switching to a new service.
After such an event, the contents of the database (both the set of applications and
their attributes) shall reflect the new database contents. All former contents of
the database shall be discarded except for running externally authorised applications.
It is platform dependant if and when a new database event is thrown
while tuned to the same service except that a NEW_DATABASE event shall not
be sent when only one application has changed within a service.
The APP_ADDED, APP_CHANGED and APP_DELETED events shall not be generated in response to the same database change as caused a NEW_DATABASE event to be generated.
Field Summary | |
---|---|
static int |
APP_ADDED
The addition event id. |
static int |
APP_CHANGED
The changed event id. |
static int |
APP_DELETED
The deletion event id. |
static int |
NEW_DATABASE
The new database event id. |
Constructor Summary | |
---|---|
AppsDatabaseEvent(int id,
AppID appid,
java.lang.Object source)
Create a new AppsDatabaseEvent object for the entry in the database that changed, or for a new database. |
Method Summary | |
---|---|
AppID |
getAppID()
gets the application ID object for the entry in the database that changed. |
int |
getEventId()
gets the type of the event. |
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int NEW_DATABASE
public static final int APP_CHANGED
public static final int APP_ADDED
public static final int APP_DELETED
Constructor Detail |
---|
public AppsDatabaseEvent(int id, AppID appid, java.lang.Object source)
id
- the cause of the eventappid
- the AppId of the entry that changedsource
- the AppaDatabase object.Method Detail |
---|
public AppID getAppID()
When the event type is NEW_DATABASE, AppID will be null.
public int getEventId()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |