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
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; either version 2
10  * of the License, or (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, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20  *
21  */
22 
23 #ifndef PLATFORM_SDL_MACOSX_H
24 #define PLATFORM_SDL_MACOSX_H
25 
26 #include "backends/platform/sdl/posix/posix.h"
27 
28 class OSystem_MacOSX : public OSystem_POSIX {
29 public:
30 	~OSystem_MacOSX();
31 
32 	virtual bool hasFeature(Feature f) override;
33 
34 	virtual bool displayLogFile() override;
35 
36 	virtual bool hasTextInClipboard() override;
37 	virtual Common::U32String getTextFromClipboard() override;
38 	virtual bool setTextInClipboard(const Common::U32String &text) override;
39 
40 	virtual bool openUrl(const Common::String &url) override;
41 
42 	virtual Common::String getSystemLanguage() const override;
43 
44 	virtual void init() override;
45 	virtual void initBackend() override;
46 	virtual void addSysArchivesToSearchSet(Common::SearchSet &s, int priority = 0) override;
47 
48 #ifdef USE_OPENGL
49 	virtual GraphicsManagerType getDefaultGraphicsManager() const override;
50 #endif
51 
52 	//Screenshots
53 	virtual Common::String getScreenshotsPath() override;
54 
55 protected:
56 	virtual Common::String getDefaultConfigFileName() override;
57 	virtual Common::String getDefaultLogFileName() override;
58 
59 	// Override createAudioCDManager() to get our Mac-specific
60 	// version.
61 	virtual AudioCDManager *createAudioCDManager() override;
62 };
63 
64 #endif
65