
Public Member Functions | |
| BluetoothClient (StreamConnection conn, String clientQuestions, String bluetoothAddress, String friendlyName) | |
| void | run () |
Private Attributes | |
| RemoteDevice | r |
| StreamConnection | conn |
| DataOutputStream | out |
| DataInputStream | in |
| String | vote |
| String | voteAgain |
| GUI | g |
| Database | d |
| String | clientQuestions |
| String | bluetoothAddress |
| String | friendlyName |
BluetoothClient class represents the actions carried out by a single client device.
Definition at line 11 of file BluetoothClient.java.
|
||||||||||||||||||||
|
Instantiates this class by getting the instances of the
Definition at line 39 of file BluetoothClient.java. References d, g, Database.getInstance(), and GUI.getInstance(). Here is the call graph for this function: ![]() |
|
|
Seperate thread which communicates with the client device. The encoded list of questions is sent to the client, and the vote response is received and saved. Votes are saved until the user either disconnects, selects they don't wish to vote again, or run out of questions to vote on.
Definition at line 62 of file BluetoothClient.java. References bluetoothAddress, clientQuestions, conn, d, friendlyName, g, in, out, Database.saveVote(), GUI.traceMessage(), vote, and voteAgain. Here is the call graph for this function: ![]() |
|
|
Definition at line 23 of file BluetoothClient.java. Referenced by run(). |
|
|
Definition at line 22 of file BluetoothClient.java. Referenced by run(). |
|
|
Definition at line 15 of file BluetoothClient.java. Referenced by run(). |
|
|
Definition at line 21 of file BluetoothClient.java. Referenced by BluetoothClient(), and run(). |
|
|
Definition at line 24 of file BluetoothClient.java. Referenced by run(). |
|
|
Definition at line 20 of file BluetoothClient.java. Referenced by BluetoothClient(), and run(). |
|
|
Definition at line 17 of file BluetoothClient.java. Referenced by run(). |
|
|
Definition at line 16 of file BluetoothClient.java. Referenced by run(). |
|
|
Definition at line 14 of file BluetoothClient.java. |
|
|
Definition at line 18 of file BluetoothClient.java. Referenced by run(). |
|
|
Definition at line 19 of file BluetoothClient.java. Referenced by run(). |
1.4.6