com.opera.core.systems.scope.services
Interface IPrefs

All Known Implementing Classes:
Prefs

public interface IPrefs


Method Summary
 String getPref(String section, String key, PrefsProtos.GetPrefArg.Mode mode)
          Gets a preference from the operaprefs.ini from a specific section.
 void init()
           
 List<PrefsProtos.Pref> listPrefs(Boolean sort, String section)
          Lists the preferences in a specific section from operaprefs.ini.
 void setPrefs(String section, String key, String value)
          Sets a preference in operaprefs.ini in a specific section.
 

Method Detail

init

void init()

getPref

String getPref(String section,
               String key,
               PrefsProtos.GetPrefArg.Mode mode)
Gets a preference from the operaprefs.ini from a specific section. Optionally it can get the default setting of the preference.

Parameters:
section - section to get the preference from
key - key in the section
mode - get the current or default setting of the preference
Returns:
returns the preference in a string

listPrefs

List<PrefsProtos.Pref> listPrefs(Boolean sort,
                                 String section)
Lists the preferences in a specific section from operaprefs.ini.

Parameters:
sort - if true returned list is sorted
section - list prefs in this section
Returns:
a list of preferences in a particular section

setPrefs

void setPrefs(String section,
              String key,
              String value)
Sets a preference in operaprefs.ini in a specific section.

Parameters:
section - the section name
key - the key in the section
value - value to set this preference to


Copyright © 2012. All Rights Reserved.