CopaApp
Change of Plan Application
 All Classes Functions Variables Pages
Public Member Functions | Static Public Member Functions | List of all members
unicopa.copa.app.Storage Class Reference

This class implements the Android SharedPreferences to store Settings. More...

Collaboration diagram for unicopa.copa.app.Storage:
Collaboration graph

Public Member Functions

void store (SettingsLocal sLoc)
 This method stores the given SettingsLocal as JSON-String into the SharedPreferences. More...
 
SettingsLocal load () throws NoStorageException
 This method loads stored SettingLocal from the SharedPreferences. More...
 
void deleteSettings ()
 This method deleted all stored Settings from the SharedPreferences.
 

Static Public Member Functions

static Storage getInstance (Context context)
 This method is called to create an instance of Storage. More...
 

Detailed Description

This class implements the Android SharedPreferences to store Settings.

Author
Robin Muench, Martin Rabe

Member Function Documentation

static Storage unicopa.copa.app.Storage.getInstance ( Context  context)
static

This method is called to create an instance of Storage.

Parameters
context
Returns
SettingsLocal unicopa.copa.app.Storage.load ( ) throws NoStorageException

This method loads stored SettingLocal from the SharedPreferences.

Returns
Exceptions
NoStorageException
void unicopa.copa.app.Storage.store ( SettingsLocal  sLoc)

This method stores the given SettingsLocal as JSON-String into the SharedPreferences.

Parameters
sLoc

The documentation for this class was generated from the following file: