com.opera.core.systems.scope.services.ums
Class Prefs
java.lang.Object
com.opera.core.systems.scope.AbstractService
com.opera.core.systems.scope.services.ums.Prefs
- All Implemented Interfaces:
- IPrefs
public class Prefs
- extends AbstractService
- implements IPrefs
|
Method Summary |
java.lang.String |
getPref(java.lang.String section,
java.lang.String key,
PrefsProtos.GetPrefArg.Mode mode)
Gets a preference from the operaprefs.ini from a specific section. |
void |
init()
|
java.util.List<PrefsProtos.Pref> |
listPrefs(java.lang.Boolean sort,
java.lang.String section)
Lists the preferences in a specific section from operaprefs.ini. |
void |
setPrefs(java.lang.String section,
java.lang.String key,
java.lang.String value)
Sets a preference in operaprefs.ini in a specific section. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Prefs
public Prefs(ScopeServices services,
java.lang.String version)
init
public void init()
- Specified by:
init in interface IPrefs
getPref
public java.lang.String getPref(java.lang.String section,
java.lang.String key,
PrefsProtos.GetPrefArg.Mode mode)
- Description copied from interface:
IPrefs
- Gets a preference from the operaprefs.ini from a specific section. Optionally it can
get the default setting of the preference.
- Specified by:
getPref in interface IPrefs
- Parameters:
section - section to get the preference fromkey - key in the sectionmode - get the current or default setting of the preference
- Returns:
- returns the preference in a string
listPrefs
public java.util.List<PrefsProtos.Pref> listPrefs(java.lang.Boolean sort,
java.lang.String section)
- Description copied from interface:
IPrefs
- Lists the preferences in a specific section from operaprefs.ini.
- Specified by:
listPrefs in interface IPrefs
- Parameters:
sort - if true returned list is sortedsection - list prefs in this section
- Returns:
- a list of preferences in a particular section
setPrefs
public void setPrefs(java.lang.String section,
java.lang.String key,
java.lang.String value)
- Description copied from interface:
IPrefs
- Sets a preference in operaprefs.ini in a specific section.
- Specified by:
setPrefs in interface IPrefs
- Parameters:
section - the section namekey - the key in the sectionvalue - value to set this preference to
Copyright © 2011. All Rights Reserved.