cafe.main
Class CoffeeTouch

java.lang.Object
  extended by cafe.main.CoffeeTouch

public class CoffeeTouch
extends java.lang.Object

Main class, starts the program.

Version:
0.3
Author:
Markus Penttil�

Constructor Summary
CoffeeTouch()
          Constructs a new instance of this class.
CoffeeTouch(java.lang.String settingsFileUri)
          Constructs a new instance of this class and passes the parameters to Settings class.
 
Method Summary
 void addFingerprint(FPData data)
          Stores a new fingerprint data to FingerprintAuthentication's cache.
 void deleteFingerprint(int id)
          Instructs FingerprintAuthentication to delete a fingerprint from its cache.
 void displayDBError(java.lang.String messageid)
          Instructs GUI to display an error message and tries to reconnect to the database.
static void main(java.lang.String[] args)
          Starts the program.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoffeeTouch

public CoffeeTouch()
Constructs a new instance of this class.


CoffeeTouch

public CoffeeTouch(java.lang.String settingsFileUri)
Constructs a new instance of this class and passes the parameters to Settings class.

Parameters:
settingsFileUri - location of the main settings file
Method Detail

deleteFingerprint

public void deleteFingerprint(int id)
Instructs FingerprintAuthentication to delete a fingerprint from its cache.

Parameters:
id - the id of the fingerprint to delete

addFingerprint

public void addFingerprint(FPData data)
Stores a new fingerprint data to FingerprintAuthentication's cache.

Parameters:
data - the fingerprint data to be saved

displayDBError

public void displayDBError(java.lang.String messageid)
Instructs GUI to display an error message and tries to reconnect to the database.

Parameters:
messageid - ID of the error message to be shown

main

public static void main(java.lang.String[] args)
Starts the program.

Parameters:
args - location of the main settings file