Bluetooth Class Reference

Collaboration diagram for Bluetooth:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void initialiseStack ()

Static Public Member Functions

static Bluetooth getInstance ()

Protected Member Functions

 Bluetooth ()

Private Attributes

LocalDevice localDevice
final UUID SERVICE_UUID
final String URL
GUI g

Static Private Attributes

static Bluetooth instance

Detailed Description

The Bluetooth class instantiates the Bluetooth stack and calls BluetoothConnectionListener to handle incoming connections.

See also:
BluetoothConnectionListener
Author:
Nick Day, "UniVote" Final Year Project, Lancaster University

Definition at line 11 of file Bluetooth.java.


Constructor & Destructor Documentation

Bluetooth.Bluetooth  )  [protected]
 

Instantiates this class by getting the instance of the GUI class and calling the initialiseStack() method.

See also:
GUI.getInstance

Bluetooth.initialiseStack

Definition at line 47 of file Bluetooth.java.

References g, GUI.getInstance(), and initialiseStack().

Referenced by getInstance().

Here is the call graph for this function:


Member Function Documentation

static Bluetooth Bluetooth.getInstance  )  [static]
 

Enforces the Singleton pattern to ensure only a single instance of this class exists. Returns the instance of this class if it is instantiated, otherwise it returns a new instantiation of this class.

Returns:
An instance of this class.

Definition at line 30 of file Bluetooth.java.

References Bluetooth(), and instance.

Here is the call graph for this function:

void Bluetooth.initialiseStack  ) 
 

Instantiates the Bluetooth stack and makes the server discoverable by other Bluetooth devices. If the stack initialises without error, the BluetoothConnectionListener class is instantiated to handle incoming connections.

See also:
BluetoothConnectionListener.getInstance

Definition at line 63 of file Bluetooth.java.

References g, localDevice, GUI.traceMessage(), and GUI.traceProgressMessage().

Referenced by Bluetooth().

Here is the call graph for this function:


Member Data Documentation

GUI Bluetooth.g [private]
 

Definition at line 20 of file Bluetooth.java.

Referenced by Bluetooth(), and initialiseStack().

Bluetooth Bluetooth.instance [static, private]
 

Definition at line 15 of file Bluetooth.java.

Referenced by getInstance().

LocalDevice Bluetooth.localDevice [private]
 

Definition at line 14 of file Bluetooth.java.

Referenced by initialiseStack().

final UUID Bluetooth.SERVICE_UUID [private]
 

Initial value:

 new UUID
                ("00112233445566778899AABBCCDDEEFF", false)

Definition at line 16 of file Bluetooth.java.

final String Bluetooth.URL [private]
 

Initial value:

 "btspp://localhost:" + 
                SERVICE_UUID.toString() + ";name=UniVoteServer"

Definition at line 18 of file Bluetooth.java.


The documentation for this class was generated from the following file:
Generated on Mon Mar 13 22:03:59 2006 for UniVote Server Application by  doxygen 1.4.6