|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.vodafone360.people.service.PersistSettings
public class PersistSettings
Class responsible for handling persistent settings within the People client. These settings are stored in the State table in the People client's database.
Nested Class Summary | |
---|---|
static class |
PersistSettings.InternetAvail
Internet availability settings, options are always connect or only allow manual connection |
static class |
PersistSettings.Option
Definition of a set of options handled by PersistSettings. |
static class |
PersistSettings.OptionType
Definition for Settings type (boolean, string, integer, long). |
Field Summary | |
---|---|
private PersistSettings.Option |
mOption
|
private java.lang.Object |
mValue
|
Constructor Summary | |
---|---|
PersistSettings()
Constructor |
Method Summary | |
---|---|
static boolean |
addToContentValues(ContentValues contentValues,
PersistSettings setting)
Add setting from supplied PersistSettings instance to supplied ContentValues instance. |
int |
describeContents()
|
static java.lang.Object |
fetchValueFromCursor(Cursor c,
int colIndex,
java.lang.String key)
Fetch Object from database Cursor. |
private static boolean |
getDefaultBoolean(PersistSettings.Option option)
Return the default (boolean) value for supplied Option. |
private static int |
getDefaultInt(PersistSettings.Option option)
Return the default (integer) value for supplied Option. |
boolean |
getFirstTimeMeSyncComplete()
|
boolean |
getFirstTimeMeSyncStarted()
|
boolean |
getFirstTimeNativeSyncComplete()
Return value indicating whether first time native contact sync has completed. |
boolean |
getFirstTimeSyncComplete()
Return value indicating whether first time native contact sync has completed. |
boolean |
getFirstTimeSyncStarted()
Return value indicating whether first time native contact sync has started. |
PersistSettings.InternetAvail |
getInternetAvail()
Get current InternetAvail value |
PersistSettings.Option |
getOption()
Get Option associated with this PersistSettings. |
private java.lang.Object |
getValue()
Get value associated with this PersistSettings. |
void |
putDefaultOptionData()
Set the default value stored in PersistDettings for current Option. |
void |
putDefaultOptionData(PersistSettings.Option option)
Set the default value stored in PersistDettings for specified Option. |
void |
putFirstTimeMeSyncComplete(boolean value)
|
void |
putFirstTimeMeSyncStarted(boolean value)
|
void |
putFirstTimeNativeSyncComplete(boolean value)
Store value indicating whether first time native contact sync has completed. |
void |
putFirstTimeSyncComplete(boolean value)
Store value indicating whether first time contact sync has completed. |
void |
putFirstTimeSyncStarted(boolean value)
Store value indicating whether first time native contact sync has started. |
void |
putInternetAvail(PersistSettings.InternetAvail value)
Set Internet availability value. |
void |
putOptionData(PersistSettings.Option option,
java.lang.Object data)
Set the default value for the specified Option |
java.lang.String |
toString()
|
void |
writeToParcel(Parcel dest,
int flags)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private PersistSettings.Option mOption
private java.lang.Object mValue
Constructor Detail |
---|
public PersistSettings()
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
private static boolean getDefaultBoolean(PersistSettings.Option option)
option
- Option
private static int getDefaultInt(PersistSettings.Option option)
option
- Option
public void putDefaultOptionData(PersistSettings.Option option)
option
- Option the default value held by PersistSettings is the
value set in the supplied Option.public void putDefaultOptionData()
public void putOptionData(PersistSettings.Option option, java.lang.Object data)
option
- Option to set default data for.data
- Value for default setting.public static boolean addToContentValues(ContentValues contentValues, PersistSettings setting)
contentValues
- ContentValue to update.setting
- PersistSettings instance containing settings value.
public static java.lang.Object fetchValueFromCursor(Cursor c, int colIndex, java.lang.String key)
c
- Database Cursor pointing to item of interest.colIndex
- Column index within item.key
- Key used to obtain required Option item.
public void putInternetAvail(PersistSettings.InternetAvail value)
value
- InternetAvail.public PersistSettings.InternetAvail getInternetAvail()
public boolean getFirstTimeNativeSyncComplete()
public void putFirstTimeNativeSyncComplete(boolean value)
value
- value indicating whether first time native contact sync has
completed.public void putFirstTimeSyncComplete(boolean value)
value
- value indicating whether first time native contact sync has
completed.public void putFirstTimeMeSyncComplete(boolean value)
public boolean getFirstTimeSyncComplete()
public boolean getFirstTimeMeSyncComplete()
public void putFirstTimeSyncStarted(boolean value)
value
- value indicating whether first time native contact sync has
started.public void putFirstTimeMeSyncStarted(boolean value)
public boolean getFirstTimeSyncStarted()
public boolean getFirstTimeMeSyncStarted()
public PersistSettings.Option getOption()
private java.lang.Object getValue()
public int describeContents()
public void writeToParcel(Parcel dest, int flags)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
JavaDoc