cafe.gui
Interface UserInterface

All Known Implementing Classes:
GuiMain

public interface UserInterface


Method Summary
 void addFingerprint(int id)
          If GUI is waiting for a new fingerprint and an unrecognized fingerprint was scanned, this method is called and the GUI can then add this fingerprint to the current user.
 void authenticatedUser(UserInfo user, int fingerprintid)
          This is called when a user has been successfully recognized.
 void continueProgram()
          This method restores the GUI in its normal state, if it is in error state.
 void stopForProblem(java.lang.String problemstringid)
          This method puts the GUI in a error state where users cannot do anything else but change the language.
 boolean unknownUser()
          This is called when a fingerprint was scanned, but not recognized.
 

Method Detail

authenticatedUser

void authenticatedUser(UserInfo user,
                       int fingerprintid)
This is called when a user has been successfully recognized. Implementer can decide what to do with the information.

Parameters:
user - user's information
fingerprintid - the id of the fingerprint that was recognized

unknownUser

boolean unknownUser()
This is called when a fingerprint was scanned, but not recognized. The return value tells what the system should do with the new fingerprint.

Returns:
true if GUI is currently waiting for a new fingerprint, false if not

addFingerprint

void addFingerprint(int id)
If GUI is waiting for a new fingerprint and an unrecognized fingerprint was scanned, this method is called and the GUI can then add this fingerprint to the current user.

Parameters:
id - id of the new fingerprint

stopForProblem

void stopForProblem(java.lang.String problemstringid)
This method puts the GUI in a error state where users cannot do anything else but change the language. An error message is displayed on the screen.

Parameters:
problemstringid - name of the string to be displayed (corresponding to a string in the language files)

continueProgram

void continueProgram()
This method restores the GUI in its normal state, if it is in error state. Used when the problem causing the error has been resolved.