|
IM Profile | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The BearerControlListener interface defines the capabilities for receiving
bearer (e.g. GPRS/EDGE or CSD) state information. When the user wants to
receive these state events, an implementation class for the BearerControlListener
interface must be created first.
The StateChanged method of this class must contain the processing code for
different bearer states. This code shall leave the listener context as soon as possible
(i.e. running a new thread). While the callback method does not return
it cannot be called again if changes occur.
After creating an instance of the BearerControlListener class, this class
instance has to be passed as a parameter to the BearerControl.addListener
method. After that, the callback methods will be called by the runtime
system each time the state changes
occur.
BearerControl
Field Summary | |
static int |
BEARER_STATE_CLOSING
The bearer is being closed |
static int |
BEARER_STATE_CONNECTING
The bearer is being connected |
static int |
BEARER_STATE_DOWN
The bearer is down. |
static int |
BEARER_STATE_LIMITED_UP
The bearer is up but currently no network coverage. |
static int |
BEARER_STATE_UP
The bearer is up. |
Method Summary | |
void |
stateChanged(int state)
Callback method for bearer state changes. |
Field Detail |
public static final int BEARER_STATE_DOWN
public static final int BEARER_STATE_CONNECTING
public static final int BEARER_STATE_UP
public static final int BEARER_STATE_CLOSING
public static final int BEARER_STATE_LIMITED_UP
Method Detail |
public void stateChanged(int state)
BearerControl
,
BearerControl.addListener(com.siemens.icm.io.BearerControlListener)
|
IM Profile | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |