|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.davic.net.ca.CAModuleManager
The CA module manager is an object that manages available CA modules.
There is only one instance of the CAModuleManager in a receiver and it can be retrieved using the getInstance method.
Method Summary | |
void |
addCAListener(CAListener l)
Registers a new CA event listener to CAModuleManager. |
void |
addMMIListener(MMIListener listener)
Registers a listener for the MMI related events. |
void |
addResourceStatusEventListener(ResourceStatusListener l)
Registers a listener for the resource status messages. |
static CAModuleManager |
getInstance()
Returns the instance of the CAModuleManager class. |
CAModule[] |
getModules()
Returns all available CA modules. |
CAModule[] |
getModules(Service s)
Returns all available modules whose CASystemID matches with the CASystemID of a CA system used to scramble this service. |
int |
numberOfModules()
Returns the number of connected CA modules. |
void |
removeCAListener(CAListener l)
Removes a registered listener from CAModuleManager. |
void |
removeMMIListener(MMIListener listener)
Removes a registered listener for the MMI related events. |
void |
removeResourceStatusEventListener(ResourceStatusListener l)
Removes a registered listener for the resource status messages. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static CAModuleManager getInstance()
public int numberOfModules()
public CAModule[] getModules()
If there are no available modules, returns an array whose length is 0.
public CAModule[] getModules(Service s)
If there are no applicable modules, returns an array whose length is 0. If the service passed as a parameter is not scrambled, returns an empty array whose length is 0.
s
- a service that is scrambled
public void addCAListener(CAListener l)
l
- the listener to be registeredpublic void removeCAListener(CAListener l)
l
- the listener to be removedpublic void addMMIListener(MMIListener listener) throws CAException
listener
- the listener to be registered
MMIListenerAlreadyRegisteredException
- raised if there is
already a listener registered
java.lang.SecurityException
- raised if the application does not have an instance of
CAPermission
with the "MMI" name.
CAException
public void removeMMIListener(MMIListener listener)
listener
- the listener to be removedpublic void addResourceStatusEventListener(ResourceStatusListener l)
addResourceStatusEventListener
in interface ResourceServer
l
- the listener to be registeredpublic void removeResourceStatusEventListener(ResourceStatusListener l)
removeResourceStatusEventListener
in interface ResourceServer
l
- the listener to be removed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |