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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Prefs
public Prefs(ScopeServices services,
String version)
init
public void init()
- Specified by:
init in interface IPrefs
getPref
public String getPref(String section,
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 List<PrefsProtos.Pref> listPrefs(Boolean sort,
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(String section,
String key,
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 © 2012. All Rights Reserved.