ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

OSystem_POSIX Class Reference

#include <posix.h>

Inheritance diagram for OSystem_POSIX:
Collaboration diagram for OSystem_POSIX:

List of all members.

Public Member Functions

virtual bool hasFeature (Feature f) override
 Determine whether the backend supports the specified feature.
virtual bool displayLogFile () override
 Open the log file in a way that allows the user to review it, and possibly email it (or parts of it) to the ScummVM team, e.g.
virtual bool openUrl (const Common::String &url) override
 Open the given Url in the default browser (if available on the target system).
virtual void init () override
 Pre-initialize backend.
virtual void initBackend () override
 The following method is called once, from main.cpp, after all config data (including command line params etc.
virtual void addSysArchivesToSearchSet (Common::SearchSet &s, int priority=0) override
 Add system specific Common::Archive objects to the given SearchSet.
Common::String getScreenshotsPath () override

Protected Member Functions

virtual Common::String getDefaultConfigFileName () override
 Get the default file name (or even path) where the user configuration of ScummVM will be saved.
virtual Common::String getDefaultLogFileName () override
Common::String getXdgUserDir (const char *name)
virtual AudioCDManagercreateAudioCDManager () override
 Create the audio CD manager.
bool launchBrowser (const Common::String &client, const Common::String &url)

Detailed Description

Definition at line 28 of file posix.h.


Member Function Documentation

virtual void OSystem_POSIX::addSysArchivesToSearchSet ( Common::SearchSet s,
int  priority = 0 
) [override, virtual]

Add system specific Common::Archive objects to the given SearchSet.

E.g. on Unix the dir corresponding to DATA_PATH (if set), or on Mac OS X the 'Resource' dir in the app bundle.

Todo:
Come up with a better name. This one sucks.
Parameters:
s the SearchSet to which the system specific dirs, if any, are added
priority the priority with which those dirs are added

Reimplemented from OSystem_SDL.

Reimplemented in OSystem_MacOSX.

virtual AudioCDManager* OSystem_POSIX::createAudioCDManager (  )  [override, protected, virtual]

Create the audio CD manager.

Reimplemented from OSystem_SDL.

Reimplemented in OSystem_MacOSX.

virtual bool OSystem_POSIX::displayLogFile (  )  [override, virtual]

Open the log file in a way that allows the user to review it, and possibly email it (or parts of it) to the ScummVM team, e.g.

as part of a bug report.

On a desktop operating system, this would typically launch some kind of (external) text editor / viewer. On a phone, it might also cause a context switch to another application. Finally, on some ports, it might not be supported at all, and so do nothing.

The kFeatureDisplayLogFile feature flag can be used to test whether this call has been implemented by the active backend.

Returns:
true if all seems to have gone fine, false if an error occurred
Note:
An error could mean that the log file did not exist, or the editor could not launch. However, a return value of true does not guarantee that the user actually will see the log file.
It is up to the backend to ensure that the system is in a state that allows the user to actually see the displayed log files. This might for example require leaving fullscreen mode.

Reimplemented from OSystem.

Reimplemented in OSystem_MacOSX.

virtual Common::String OSystem_POSIX::getDefaultConfigFileName (  )  [override, protected, virtual]

Get the default file name (or even path) where the user configuration of ScummVM will be saved.

Note that not all ports may use this.

Reimplemented from OSystem.

Reimplemented in OSystem_MacOSX.

virtual Common::String OSystem_POSIX::getDefaultLogFileName (  )  [override, protected, virtual]

Reimplemented from OSystem_SDL.

Reimplemented in OSystem_MacOSX.

Common::String OSystem_POSIX::getScreenshotsPath (  )  [override, virtual]

Reimplemented from OSystem_SDL.

Reimplemented in OSystem_MacOSX.

Common::String OSystem_POSIX::getXdgUserDir ( const char *  name  )  [protected]
virtual bool OSystem_POSIX::hasFeature ( Feature  f  )  [override, virtual]

Determine whether the backend supports the specified feature.

Reimplemented from OSystem_SDL.

Reimplemented in OSystem_MacOSX.

virtual void OSystem_POSIX::init (  )  [override, virtual]

Pre-initialize backend.

It should be called after instantiating the backend. Early needed managers are created here.

Reimplemented from OSystem_SDL.

Reimplemented in OSystem_MacOSX.

virtual void OSystem_POSIX::initBackend (  )  [override, virtual]

The following method is called once, from main.cpp, after all config data (including command line params etc.

) are fully loaded.

Note:
Subclasses should always invoke the implementation of their parent class. They should do so near the end of their own implementation.

Reimplemented from OSystem_SDL.

Reimplemented in OSystem_MacOSX.

bool OSystem_POSIX::launchBrowser ( const Common::String client,
const Common::String url 
) [protected]
virtual bool OSystem_POSIX::openUrl ( const Common::String url  )  [override, virtual]

Open the given Url in the default browser (if available on the target system).

Returns:
true on success, false otherwise.
Note:
It is up to the backend to ensure that the system is in a state that allows the user to actually see the web page. This might for example require leaving fullscreen mode.

url the URL to open

Reimplemented from OSystem.

Reimplemented in OSystem_MacOSX.


The documentation for this class was generated from the following file:
  • backends/platform/sdl/posix/posix.h


Generated on Sat May 30 2020 05:02:25 for ResidualVM by doxygen 1.7.1
curved edge   curved edge