Colobot
Loading...
Searching...
No Matches
CSystemUtilsLinux Class Reference
Inheritance diagram for CSystemUtilsLinux:

Public Member Functions

void Init () override
 Performs platform-specific initialization.
SystemDialogResult SystemDialog (SystemDialogType type, const std::string &title, const std::string &message) override
 Displays a system dialog.
std::string GetSaveDir () override
 Returns the save dir location.
std::string GetEnvVar (const std::string &name) override
 Returns the environment variable with the given name or an empty string if it does not exist.
bool OpenPath (const std::string &path) override
 Opens a path with default file browser.
bool OpenWebsite (const std::string &url) override
 Opens a website with default web browser.
Public Member Functions inherited from CSystemUtils
TEST_VIRTUAL SystemDialogResult ConsoleSystemDialog (SystemDialogType type, const std::string &title, const std::string &message)
 Displays a fallback system dialog using console.
TEST_VIRTUAL TimeUtils::TimeStamp GetCurrentTimeStamp ()
 Returns a time stamp associated with current time.
virtual std::string GetBasePath ()
 Returns the path where the executable binary is located (ends with the path separator).
virtual std::string GetDataPath ()
 Returns the data path (containing textures, levels, helpfiles, etc).
virtual std::string GetLangPath ()
 Returns the translations path.
void Usleep (int usecs)
 Sleep for given amount of microseconds.

Additional Inherited Members

Static Public Member Functions inherited from CSystemUtils
static std::unique_ptr< CSystemUtilsCreate ()
 Creates system utils for specific platform.

Member Function Documentation

◆ Init()

void CSystemUtilsLinux::Init ( )
overridevirtual

Performs platform-specific initialization.

Implements CSystemUtils.

◆ SystemDialog()

SystemDialogResult CSystemUtilsLinux::SystemDialog ( SystemDialogType ,
const std::string & title,
const std::string & message )
overridevirtual

Displays a system dialog.

Implements CSystemUtils.

◆ GetSaveDir()

std::string CSystemUtilsLinux::GetSaveDir ( )
overridevirtual

Returns the save dir location.

Reimplemented from CSystemUtils.

◆ GetEnvVar()

std::string CSystemUtilsLinux::GetEnvVar ( const std::string & name)
overridevirtual

Returns the environment variable with the given name or an empty string if it does not exist.

Reimplemented from CSystemUtils.

◆ OpenPath()

bool CSystemUtilsLinux::OpenPath ( const std::string & path)
overridevirtual

Opens a path with default file browser.

Returns
true if successful

Reimplemented from CSystemUtils.

◆ OpenWebsite()

bool CSystemUtilsLinux::OpenWebsite ( const std::string & url)
overridevirtual

Opens a website with default web browser.

Returns
true if successful

Reimplemented from CSystemUtils.


The documentation for this class was generated from the following files: