triploa
Class CacheManager

java.lang.Object
  extended by triploa.CacheManager

public class CacheManager
extends java.lang.Object


Constructor Summary
CacheManager()
           
 
Method Summary
 void CacheManager()
           
 java.lang.String getLoginPassword()
           
 java.lang.String getLoginUsername()
           
 Options getOptions()
          Call for reading the saved options for the user,example: save passord and auto login
 boolean loadLogin()
          Read login information from recordStore e save it to username e password filds
 void setLogin(java.lang.String username, java.lang.String password)
          save login information to recordstore
 boolean setOptions(Options op)
          save the options
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheManager

public CacheManager()
Method Detail

CacheManager

public void CacheManager()
                  throws javax.microedition.rms.RecordStoreException
Throws:
javax.microedition.rms.RecordStoreException

getOptions

public Options getOptions()
Call for reading the saved options for the user,example: save passord and auto login

Returns:
saved options

setOptions

public boolean setOptions(Options op)
save the options

Parameters:
op - Options
Returns:
true if ok,false otherwise

loadLogin

public boolean loadLogin()
Read login information from recordStore e save it to username e password filds

Returns:
true if ok,false otherwise

getLoginUsername

public java.lang.String getLoginUsername()
Returns:
saved Username

getLoginPassword

public java.lang.String getLoginPassword()
Returns:
saved Password

setLogin

public void setLogin(java.lang.String username,
                     java.lang.String password)
save login information to recordstore

Parameters:
username -
password -