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

All Known Implementing Classes:
DesktopUtils

public interface IDesktopUtils

Author:
Adam Minchinton, Karianne Ekern

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.
 

Method Detail

init

void init()

getOperaPath

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

getLargePreferencesPath

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

getSmallPreferencesPath

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

getCachePreferencesPath

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

getString

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

Returns:
string corresponding to the enumText

removeCR

String removeCR(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 © 2012. All Rights Reserved.