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 
27 class OSystem_POSIX : public OSystem_SDL {
28 public:
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 
43 protected:
46 
47  Common::String getXdgUserDir(const char *name);
48 
50 
51 #ifdef HAS_POSIX_SPAWN
52 public:
53  bool openUrl(const Common::String &url) override;
54 
55 protected:
56  bool launchBrowser(const Common::String& client, const Common::String &url);
57 #endif
58 };
59 
60 #endif
Definition: sdl.h:46
void initBackend() override
Definition: str.h:59
void init() override
Feature
Definition: system.h:403
bool displayLogFile() override
Definition: path.h:52
virtual bool openUrl(const Common::String &url)
Definition: system.h:1978
Definition: archive.h:312
Common::Path getDefaultLogFileName() override
void addSysArchivesToSearchSet(Common::SearchSet &s, int priority=0) override
AudioCDManager * createAudioCDManager() override
bool hasFeature(Feature f) override
Common::Path getDefaultConfigFileName() override
Definition: posix.h:27
Definition: audiocd.h:33