ScummVM API documentation
posix.h
1/* ScummVM - Graphic Adventure Engine
2 *
3 * ScummVM is the legal property of its developers, whose names
4 * are too numerous to list here. Please refer to the COPYRIGHT
5 * file distributed with this source distribution.
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 *
20 */
21
22#ifndef PLATFORM_SDL_POSIX_H
23#define PLATFORM_SDL_POSIX_H
24
25#include "backends/platform/sdl/sdl.h"
26
27class OSystem_POSIX : public OSystem_SDL {
28public:
29 bool hasFeature(Feature f) override;
30
31 bool displayLogFile() override;
32
33 void init() override;
34 void initBackend() override;
35
36 void addSysArchivesToSearchSet(Common::SearchSet &s, int priority = 0) override;
37
38 // Default paths
39 Common::Path getDefaultIconsPath() override;
40 Common::Path getDefaultDLCsPath() override;
41 Common::Path getScreenshotsPath() override;
42
43protected:
46
47 Common::String getXdgUserDir(const char *name);
48
50
51#ifdef HAS_POSIX_SPAWN
52public:
53 bool openUrl(const Common::String &url) override;
54
55protected:
56 bool launchBrowser(const Common::String& client, const Common::String &url);
57#endif
58};
59
60#endif
Definition: audiocd.h:33
Definition: path.h:52
Definition: archive.h:330
Definition: str.h:59
Definition: posix.h:27
Common::Path getDefaultLogFileName() override
void initBackend() override
AudioCDManager * createAudioCDManager() override
bool displayLogFile() override
void init() override
bool hasFeature(Feature f) override
void addSysArchivesToSearchSet(Common::SearchSet &s, int priority=0) override
Common::Path getDefaultConfigFileName() override
Definition: sdl.h:46
Feature
Definition: system.h:415
virtual bool openUrl(const Common::String &url)
Definition: system.h:2039