com.opera.core.systems.scope.services.ums
Class DesktopUtils
java.lang.Object
com.opera.core.systems.scope.AbstractService
com.opera.core.systems.scope.services.ums.DesktopUtils
- All Implemented Interfaces:
- IDesktopUtils
public class DesktopUtils
- extends AbstractService
- implements IDesktopUtils
- Author:
- Adam Minchinton, Karianne Ekern
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DesktopUtils
public DesktopUtils(ScopeServices services,
java.lang.String version)
init
public void init()
- Specified by:
init in interface IDesktopUtils
getString
public java.lang.String getString(java.lang.String enumText,
boolean stripAmpersand)
- Description copied from interface:
IDesktopUtils
- Gets the string specified by the given string id.
- Specified by:
getString in interface IDesktopUtils
- Returns:
- string corresponding to the enumText
removeCR
public java.lang.String removeCR(java.lang.String text)
- Description copied from interface:
IDesktopUtils
- Used to stop problems comparing strings that have just \n with those with \r\n.
- Specified by:
removeCR in interface IDesktopUtils
- Parameters:
text - to remove the \r's from
- Returns:
- string without \r's
getOperaPath
public java.lang.String getOperaPath()
- Specified by:
getOperaPath in interface IDesktopUtils
- Returns:
- Full path to the Opera binary
getLargePreferencesPath
public java.lang.String getLargePreferencesPath()
- Specified by:
getLargePreferencesPath in interface IDesktopUtils
- Returns:
- Full path to large preferences folder
getSmallPreferencesPath
public java.lang.String getSmallPreferencesPath()
- Specified by:
getSmallPreferencesPath in interface IDesktopUtils
- Returns:
- Full path to small preferences folder
getCachePreferencesPath
public java.lang.String getCachePreferencesPath()
- Specified by:
getCachePreferencesPath in interface IDesktopUtils
- Returns:
- Full path to cache preferences folder
getOperaPid
public int getOperaPid()
- Description copied from interface:
IDesktopUtils
- Gets process id of connected Opera instance.
- Specified by:
getOperaPid in interface IDesktopUtils
- Returns:
- pid
Copyright © 2011. All Rights Reserved.