diff options
author | Matthew Hoops | 2011-06-13 13:12:23 -0400 |
---|---|---|
committer | Matthew Hoops | 2011-06-13 13:12:23 -0400 |
commit | d355475a0416897ed254fa85f4d63d0f75d9c7ea (patch) | |
tree | 184892480ebb704b28163c51999e50c414e85f8a /backends/base-backend.h | |
parent | 224c71e483e09931ba386555ff3b436b9defe63d (diff) | |
parent | bfa26ffc44f80e4eb3d8590f5f865cda6a5188b7 (diff) | |
download | scummvm-rg350-d355475a0416897ed254fa85f4d63d0f75d9c7ea.tar.gz scummvm-rg350-d355475a0416897ed254fa85f4d63d0f75d9c7ea.tar.bz2 scummvm-rg350-d355475a0416897ed254fa85f4d63d0f75d9c7ea.zip |
Merge remote branch 'upstream/master' into pegasus
Diffstat (limited to 'backends/base-backend.h')
-rw-r--r-- | backends/base-backend.h | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/backends/base-backend.h b/backends/base-backend.h index 864c11544a..c797e831a8 100644 --- a/backends/base-backend.h +++ b/backends/base-backend.h @@ -24,26 +24,22 @@ #define BACKENDS_BASE_BACKEND_H #include "common/system.h" -#include "backends/events/default/default-events.h" +#include "common/events.h" -class BaseBackend : public OSystem, Common::EventSource { +class BaseBackend : public OSystem { +protected: + virtual Common::EventSource *getDefaultEventSource() = 0; public: - BaseBackend(); - ~BaseBackend(); + virtual void initBackend(); - virtual Common::EventManager *getEventManager(); virtual void displayMessageOnOSD(const char *msg); virtual void fillScreen(uint32 col); +}; - virtual Common::SeekableReadStream *createConfigReadStream(); - virtual Common::WriteStream *createConfigWriteStream(); - - virtual AudioCDManager *getAudioCDManager(); - - virtual void resetGraphicsScale(); - +class EventsBaseBackend : public BaseBackend, Common::EventSource { protected: - AudioCDManager *_audiocdManager; + virtual Common::EventSource *getDefaultEventSource() { return this; } +public: }; |