| java.lang.Object example.bluetooth.demo.BTImageClient
BTImageClient | final class BTImageClient implements Runnable,DiscoveryListener(Code) | | Initialize BT device, search for BT services,
presents them to user and picks his/her choice,
finally download the choosen image and present
it to user.
version: , |
Constructor Summary | |
| BTImageClient(GUIImageClient parent) Constructs the bluetooth server, but it is initialized
in the different thread to "avoid dead lock". |
Method Summary | |
void | cancelLoad() Cancel's the image download. | void | cancelSearch() Cancel's the devices/services search. | void | destroy() Destroy a work with bluetooth - exits the accepting
thread and close notifier. | public void | deviceDiscovered(RemoteDevice btDevice, DeviceClass cod) Invoked by system when a new remote device is found -
remember the found device. | public void | inquiryCompleted(int discType) Invoked by system when device discovery is done. | void | requestLoad(String name) Sets the request to load the specified image. | void | requestSearch() Sets the request to search the devices/services. | public void | run() Process the search/download requests. | public void | serviceSearchCompleted(int transID, int respCode) | public void | servicesDiscovered(int transID, ServiceRecord[] servRecord) |
BTImageClient | BTImageClient(GUIImageClient parent)(Code) | | Constructs the bluetooth server, but it is initialized
in the different thread to "avoid dead lock".
|
cancelLoad | void cancelLoad()(Code) | | Cancel's the image download.
|
cancelSearch | void cancelSearch()(Code) | | Cancel's the devices/services search.
|
destroy | void destroy()(Code) | | Destroy a work with bluetooth - exits the accepting
thread and close notifier.
|
deviceDiscovered | public void deviceDiscovered(RemoteDevice btDevice, DeviceClass cod)(Code) | | Invoked by system when a new remote device is found -
remember the found device.
|
inquiryCompleted | public void inquiryCompleted(int discType)(Code) | | Invoked by system when device discovery is done.
Remember the discType
and process its evaluation in another thread.
|
requestLoad | void requestLoad(String name)(Code) | | Sets the request to load the specified image.
|
requestSearch | void requestSearch()(Code) | | Sets the request to search the devices/services.
|
run | public void run()(Code) | | Process the search/download requests.
|
serviceSearchCompleted | public void serviceSearchCompleted(int transID, int respCode)(Code) | | |
servicesDiscovered | public void servicesDiscovered(int transID, ServiceRecord[] servRecord)(Code) | | |
|
|