|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbluegammon.gui.BluetoothClientWorkflow
Handles the different steps of connecting to a server
as a client. Controls the gui component, the
BluetoothDevicePage
BluetoothDevicePage
Field Summary |
Fields inherited from interface javax.bluetooth.DiscoveryListener |
INQUIRY_COMPLETED, INQUIRY_ERROR, INQUIRY_TERMINATED, SERVICE_SEARCH_COMPLETED, SERVICE_SEARCH_DEVICE_NOT_REACHABLE, SERVICE_SEARCH_ERROR, SERVICE_SEARCH_NO_RECORDS, SERVICE_SEARCH_TERMINATED |
Constructor Summary | |
BluetoothClientWorkflow(BluetoothDevicePage devicePage)
Creates a workflow for connecting to a server as client. |
Method Summary | |
void |
deviceDiscovered(javax.bluetooth.RemoteDevice btDevice,
javax.bluetooth.DeviceClass cod)
|
void |
inquiryCompleted(int discType)
|
void |
itemAction(MenuPage page,
PageItem item)
Called when user selects an item in a page. |
void |
refresh()
Refreshes the view of nearby devices. |
void |
searchingStopped()
Called when all nearby devices has been found or an error occurred during search. |
void |
selectedChoice(byte choice,
boolean timeOut)
Called when user presses cancel during connection to server. |
void |
servicesDiscovered(int transID,
javax.bluetooth.ServiceRecord[] records)
|
void |
serviceSearchCompleted(int transID,
int respCode)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BluetoothClientWorkflow(BluetoothDevicePage devicePage)
devicePage
- The gui component of this workflow.Method Detail |
public void refresh()
public void searchingStopped()
public void itemAction(MenuPage page, PageItem item)
itemAction
in interface ItemAction
page
- The page this action is called from.item
- The item this action is called from.public void selectedChoice(byte choice, boolean timeOut)
selectedChoice
in interface PopupListener
choice
- The index of the alternatives that were chosen.timeOut
- True if the choice was made because of a time out.public void deviceDiscovered(javax.bluetooth.RemoteDevice btDevice, javax.bluetooth.DeviceClass cod)
deviceDiscovered
in interface javax.bluetooth.DiscoveryListener
public void inquiryCompleted(int discType)
inquiryCompleted
in interface javax.bluetooth.DiscoveryListener
public void servicesDiscovered(int transID, javax.bluetooth.ServiceRecord[] records)
servicesDiscovered
in interface javax.bluetooth.DiscoveryListener
public void serviceSearchCompleted(int transID, int respCode)
serviceSearchCompleted
in interface javax.bluetooth.DiscoveryListener
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |