|
ubiMobileClient
|
| Class Diagrams |

| Package Node Detail |
| Class Diagrams |
| Class Diagrams |

| Package Node Detail |
| Class Diagrams |

| Package Node Detail |
| Class Diagrams |

| Package Node Detail |
| Class Detail |
Description: This is a canvas screen to display the current messages in
virtual chat room. Only the latest messages are displayed. If there are more
messages than those can fit into one screen, old messages are roll off from
the upper edge. User is not able to scroll back to see old messages, however,
the old messages is still available in msgs Vector until a clear command
is invoked. When a clear command is invoked, all message will be removed
from msgs vector.
Copyright: Copyright (c) 2003
| Field Summary | |
|---|---|
public int |
|
public int |
|
Font |
|
int |
|
int |
|
int |
|
public Vector |
|
int |
|
int |
|
int |
|
| Constructor Summary | |
|---|---|
public |
|
| Method Summary | |
|---|---|
public void |
add(String s) |
public void |
addNoRepaint(String s) |
public void |
clear() |
public void |
keyPressed(int key) |
protected void |
paint(Graphics g) |
| Field Detail |
| Constructor Detail |
| Method Detail |
Title: A utility class to dump JABWT object contents and perform object conversion
Description: A collection of print utility method that output the attributes of JABWT objects to System.out
Supported objects are:
LocalDevice
RemoteDevice
DeviceClass
UUID
ServiceRecord
DataElement
Major Service Class
Major, Minor Device Class
Attribute ID
OBEXHeader (incomplete)
Copyright: Copyright (c) 2003
| Constructor Summary | |
|---|---|
private |
Util() |
| Method Summary | |
|---|---|
public static String |
attrTypeToName(int type) |
public static String |
idToName(int id) |
public static String |
majorServiceToName(int d) |
public static String |
majorToName(int d) |
public static String |
minorToName(int d, int m) |
public static void |
printDataElement(DataElement e, int id, String indent) |
public static void |
printLocalDevice(LocalDevice dev) |
public static void |
printObexHeaderSet(HeaderSet h) |
public static void |
printRemoteDevice(RemoteDevice dev, DeviceClass devClass) |
public static void |
printServiceRecord(ServiceRecord r) |
public static String |
toHexString(byte[] b) |
public static String |
toHexString(int i) |
public static String |
toHexString(long l) |
public static String |
uuidToName(UUID u) |
| Constructor Detail |
| Method Detail |
| Class Diagrams |

| Class Detail |
Title: Bluetooth Application Utility GUI Component
Description:
Note: This class must be used as singleton.
| Inner Class Summary | |
|---|---|
final static class |
BLUElet.Listener Bluetooth listener object. |
final static class |
BLUElet.Worker Worker thread that invoke callback CommandListener upon Bluetooth event occurs. |
| Field Summary | |
|---|---|
private DiscoveryAgent |
|
public static Command |
|
public static CommandListener |
|
public static Command |
|
private LocalDevice |
|
public static Vector |
|
public int |
|
public static Vector |
|
public int |
|
public static Display |
|
public static MIDlet |
|
private final static int |
|
private final static int |
|
private final static int |
|
public static BLUElet |
|
private RemoteDeviceUI |
|
public boolean |
|
public static Command |
|
public static int |
|
public int |
|
public static Vector |
|
public UUID[] |
|
int |
cmd |
| Constructor Summary | |
|---|---|
public |
BLUElet(MIDlet host, CommandListener listener) Creae a new BLUElet. |
public |
Worker(int cmd) |
| Method Summary | |
|---|---|
public void |
commandAction(Command c, Displayable d) |
public void |
destroyApp(boolean unconditional) Mirror MIDlet.destroyApp(), should be called by your MIDlet destroyApp(). |
public int |
Return the Bluetooth result code from device inquiry. |
public ServiceRecord[] |
Get all discovered services from selected remote device. |
public ServiceRecord |
Get the first discovered service from selected remote device. |
public RemoteDevice |
Return user selected remote device that is used for service discovery. |
public int |
Return the Bluetooth result code from service discovery. |
public Screen |
getUI() Obtain reference to device selection screen component. |
public void |
deviceDiscovered(RemoteDevice remoteDevice, DeviceClass deviceClass) |
public void |
inquiryCompleted(int complete) |
public void |
servicesDiscovered(int transId, ServiceRecord[] records) |
public void |
serviceSearchCompleted(int transId, int complete) |
public static void |
log(String s) Utility function to write log message. |
public void |
pauseApp() Mirror MIDlet.pauseApp(), should be called by your MIDlet pauseApp(). |
public void |
|
public void |
startApp() Mirror MIDlet.startApp(), should be called by your MIDlet startApp(). |
public void |
startInquiry(int mode, UUID[] serviceUUIDs) Start device inquiry. |
public void |
run() |
| Field Detail |
| Constructor Detail |
| Method Detail |
Title: Remote Device List Component
Description: This is a List screen to display a list of discovered Bluetooth
devices. This is a class used by BLUEletUI.
| Constructor Summary | |
|---|---|
public |
|
| Method Summary | |
|---|---|
public void |
setMsg(String str) Set a one-line message to screen. |
public void |
showui() refresh the list with blutooth devices |
| Constructor Detail |
| Method Detail |
| Class Diagrams |

| Class Detail |
Title: Example Serial Port Profile Client
| Constructor Summary | |
|---|---|
public |
|
| Method Summary | |
|---|---|
public void |
log(String s) |
public void |
send_SPP_message(ServiceRecord r, String msg) Send a message to server using Serial Port Profile. |
| Constructor Detail |
| Method Detail |
Title: Example Serial Port Profile Server.
Description: This example server only handle one SPP server connection
and wait for a client to connect. Once a client connection accept, it read
one string off the connection stream, display this string on screen, then
echo the string back to client.
Then it waits for the next client connection again.
Description: Important area: run()
| Field Summary | |
|---|---|
DiscoveryAgent |
|
LocalDevice |
|
public boolean |
|
public StreamConnectionNotifier |
|
private final static int |
|
public final static UUID |
|
| Constructor Summary | |
|---|---|
public |
|
| Method Summary | |
|---|---|
public void |
log(String s) An utility function to display a log message |
public void |
run() |
public void |
|
| Field Detail |
| Constructor Detail |
| Method Detail |
| Class Diagrams |

| Class Detail |
| Field Summa |
|---|