com.opera.core.systems.scope.services.ums
Class DesktopUtils

java.lang.Object
  extended by com.opera.core.systems.scope.AbstractService
      extended by com.opera.core.systems.scope.services.ums.DesktopUtils
All Implemented Interfaces:
IDesktopUtils

public class DesktopUtils
extends AbstractService
implements IDesktopUtils

Author:
Adam Minchinton, Karianne Ekern

Field Summary
 
Fields inherited from class com.opera.core.systems.scope.AbstractService
services
 
Constructor Summary
DesktopUtils(ScopeServices services, String version)
           
 
Method Summary
 String getCachePreferencesPath()
           
 String getLargePreferencesPath()
           
 String getOperaPath()
           
 int getOperaPid()
          Gets process id of connected Opera instance.
 String getSmallPreferencesPath()
           
 String getString(String enumText, boolean stripAmpersand)
          Gets the string specified by the given string id.
 void init()
           
 String removeCR(String text)
          Used to stop problems comparing strings that have just \n with those with \r\n.
 
Methods inherited from class com.opera.core.systems.scope.AbstractService
buildPayload, executeCommand, executeCommand, getVersion, isVersionInRange, sleep, xpathIterator, xpathPointer, xpathQuery
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DesktopUtils

public DesktopUtils(ScopeServices services,
                    String version)
Method Detail

init

public void init()
Specified by:
init in interface IDesktopUtils

getString

public String getString(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 String removeCR(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 String getOperaPath()
Specified by:
getOperaPath in interface IDesktopUtils
Returns:
Full path to the Opera binary

getLargePreferencesPath

public String getLargePreferencesPath()
Specified by:
getLargePreferencesPath in interface IDesktopUtils
Returns:
Full path to large preferences folder

getSmallPreferencesPath

public String getSmallPreferencesPath()
Specified by:
getSmallPreferencesPath in interface IDesktopUtils
Returns:
Full path to small preferences folder

getCachePreferencesPath

public 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 © 2012. All Rights Reserved.