
Public Member Functions | |
| String | getQuestions (String bluetoothAddress, String friendlyName) |
| void | saveVote (String vote, String bluetoothAddress) |
Static Public Member Functions | |
| static Database | getInstance () |
Protected Member Functions | |
| Database () | |
Private Attributes | |
| GUI | g |
Static Private Attributes | |
| static Database | instance = null |
Database class provides methods to get questions from, and save votes to, the web-based database.
Definition at line 15 of file Database.java.
|
|
Instantiates this class by getting the instance of the
Definition at line 44 of file Database.java. References g, 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 29 of file Database.java. References Database(), and instance. Referenced by BluetoothClient.BluetoothClient(), and BluetoothConnectionListener.BluetoothConnectionListener(). Here is the call graph for this function: ![]() |
|
||||||||||||
|
Returns the list of questions for the current screen, which are available for voting by the specified
Definition at line 59 of file Database.java. References g, GUI.getScreenName(), and GUI.traceProgressMessage(). Referenced by BluetoothConnectionListener.run(). Here is the call graph for this function: ![]() |
|
||||||||||||
|
Saves a vote into the database.
Definition at line 99 of file Database.java. Referenced by BluetoothClient.run(). |
|
|
Definition at line 19 of file Database.java. Referenced by Database(), and getQuestions(). |
|
|
Definition at line 18 of file Database.java. Referenced by getInstance(). |
1.4.6