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

All Known Implementing Classes:
DesktopUtils

public interface IDesktopUtils

Author:
Adam Minchinton, Karianne Ekern

Method Summary
 java.lang.String getCachePreferencesPath()
           
 java.lang.String getLargePreferencesPath()
           
 java.lang.String getOperaPath()
           
 int getOperaPid()
          Gets process id of connected Opera instance.
 java.lang.String getSmallPreferencesPath()
           
 java.lang.String getString(java.lang.String enumText, boolean stripAmpersand)
          Gets the string specified by the given string id.
 void init()
           
 java.lang.String removeCR(java.lang.String text)
          Used to stop problems comparing strings that have just \n with those with \r\n.
 

Method Detail

init

void init()

getOperaPath

java.lang.String getOperaPath()
Returns:
Full path to the Opera binary

getLargePreferencesPath

java.lang.String getLargePreferencesPath()
Returns:
Full path to large preferences folder

getSmallPreferencesPath

java.lang.String getSmallPreferencesPath()
Returns:
Full path to small preferences folder

getCachePreferencesPath

java.lang.String getCachePreferencesPath()
Returns:
Full path to cache preferences folder

getString

java.lang.String getString(java.lang.String enumText,
                           boolean stripAmpersand)
Gets the string specified by the given string id.

Returns:
string corresponding to the enumText

removeCR

java.lang.String removeCR(java.lang.String text)
Used to stop problems comparing strings that have just \n with those with \r\n.

Parameters:
text - to remove the \r's from
Returns:
string without \r's

getOperaPid

int getOperaPid()
Gets process id of connected Opera instance.

Returns:
pid


Copyright © 2011. All Rights Reserved.