
Public Member Functions | |
| BluetoothConnectionListener () | |
| void | run () |
Static Public Member Functions | |
| static BluetoothConnectionListener | getInstance () |
Private Attributes | |
| final UUID | SERVICE_UUID |
| final String | URL |
| StreamConnectionNotifier | notifier |
| StreamConnection | conn |
| GUI | g |
| Database | d |
Static Private Attributes | |
| static BluetoothConnectionListener | instance = null |
BluetoothConnectionListener class listens for incoming connections from client devices.
Definition at line 11 of file BluetoothConnectionListener.java.
|
|
Instantiates this class by getting the instances of the
Definition at line 49 of file BluetoothConnectionListener.java. References d, g, Database.getInstance(), and GUI.getInstance(). Referenced by getInstance(). Here is the call graph for this function: ![]() |
|
|
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.
Definition at line 32 of file BluetoothConnectionListener.java. References BluetoothConnectionListener(), and instance. Here is the call graph for this function: ![]() |
|
|
Seperate thread which continuously looks for incoming connections. Once a new connection is received, its questions are retrieved from the
Definition at line 67 of file BluetoothConnectionListener.java. References conn, d, g, Database.getQuestions(), notifier, GUI.traceMessage(), and URL. Here is the call graph for this function: ![]() |
|
|
Definition at line 20 of file BluetoothConnectionListener.java. Referenced by run(). |
|
|
Definition at line 22 of file BluetoothConnectionListener.java. Referenced by BluetoothConnectionListener(), and run(). |
|
|
Definition at line 21 of file BluetoothConnectionListener.java. Referenced by BluetoothConnectionListener(), and run(). |
|
|
Definition at line 14 of file BluetoothConnectionListener.java. Referenced by getInstance(). |
|
|
Definition at line 19 of file BluetoothConnectionListener.java. Referenced by run(). |
|
|
Initial value: new UUID ("00112233445566778899AABBCCDDEEFF", false) Definition at line 15 of file BluetoothConnectionListener.java. |
|
|
Initial value: "btspp://localhost:" + SERVICE_UUID.toString() + ";master=true" Definition at line 17 of file BluetoothConnectionListener.java. Referenced by run(). |
1.4.6