aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backends/module.mk3
-rw-r--r--backends/platform/sdl/win32/win32.cpp6
-rw-r--r--backends/taskbar/win32/win32-taskbar.cpp54
-rw-r--r--backends/taskbar/win32/win32-taskbar.h45
4 files changed, 106 insertions, 2 deletions
diff --git a/backends/module.mk b/backends/module.mk
index d1feae4317..7d5b86f561 100644
--- a/backends/module.mk
+++ b/backends/module.mk
@@ -89,7 +89,8 @@ MODULE_OBJS += \
fs/windows/windows-fs.o \
fs/windows/windows-fs-factory.o \
midi/windows.o \
- plugins/win32/win32-provider.o
+ plugins/win32/win32-provider.o \
+ taskbar/win32/win32-taskbar.o
endif
ifdef AMIGAOS
diff --git a/backends/platform/sdl/win32/win32.cpp b/backends/platform/sdl/win32/win32.cpp
index 5b14be4417..0fd2fbbd1d 100644
--- a/backends/platform/sdl/win32/win32.cpp
+++ b/backends/platform/sdl/win32/win32.cpp
@@ -36,6 +36,7 @@
#include "backends/platform/sdl/win32/win32.h"
#include "backends/fs/windows/windows-fs-factory.h"
+#include "backends/taskbar/win32/win32-taskbar.h"
#include "common/memstream.h"
@@ -81,9 +82,12 @@ void OSystem_Win32::init() {
}
#endif
- // Initialze File System Factory
+ // Initialize File System Factory
_fsFactory = new WindowsFilesystemFactory();
+ // Initialize task bar manager
+ _taskbarManager = new Win32TaskbarManager();
+
// Invoke parent implementation of this method
OSystem_SDL::init();
}
diff --git a/backends/taskbar/win32/win32-taskbar.cpp b/backends/taskbar/win32/win32-taskbar.cpp
new file mode 100644
index 0000000000..7f76791dfa
--- /dev/null
+++ b/backends/taskbar/win32/win32-taskbar.cpp
@@ -0,0 +1,54 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ * $URL$
+ * $Id$
+ *
+ * Original code from EcWin7 - Copyright (C) 2010 Emanuele Colombo
+ * https://code.google.com/p/dukto/
+ */
+
+#include "common/scummsys.h"
+
+#include "common/textconsole.h"
+
+#include "backends/taskbar/win32/win32-taskbar.h"
+
+Win32TaskbarManager::Win32TaskbarManager() {
+}
+
+Win32TaskbarManager::~Win32TaskbarManager() {
+}
+
+void Win32TaskbarManager::setOverlayIcon(const Common::String &name, const Common::String &description) {
+ warning("[Win32TaskbarManager::setOverlayIcon] Not implemented");
+}
+
+void Win32TaskbarManager::setProgressValue(int val, int max) {
+ warning("[Win32TaskbarManager::setProgressValue] Not implemented");
+}
+
+void Win32TaskbarManager::setProgressState(TaskbarProgressState state) {
+ warning("[Win32TaskbarManager::setProgressState] Not implemented");
+}
+
+void Win32TaskbarManager::addRecent(const Common::String &name, const Common::String &description) {
+ warning("[Win32TaskbarManager::addRecent] Not implemented");
+} \ No newline at end of file
diff --git a/backends/taskbar/win32/win32-taskbar.h b/backends/taskbar/win32/win32-taskbar.h
new file mode 100644
index 0000000000..20c1a8d383
--- /dev/null
+++ b/backends/taskbar/win32/win32-taskbar.h
@@ -0,0 +1,45 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ * $URL$
+ * $Id$
+ *
+ * Original code from EcWin7 - Copyright (C) 2010 Emanuele Colombo
+ * https://code.google.com/p/dukto/
+ */
+
+#ifndef BACKEND_WIN32_TASKBAR_H
+#define BACKEND_WIN32_TASKBAR_H
+
+#include "common/str.h"
+#include "common/taskbar.h"
+
+class Win32TaskbarManager : public Common::TaskbarManager {
+public:
+ Win32TaskbarManager();
+ virtual ~Win32TaskbarManager();
+
+ virtual void setOverlayIcon(const Common::String &name, const Common::String &description);
+ virtual void setProgressValue(int val, int max);
+ virtual void setProgressState(TaskbarProgressState state);
+ virtual void addRecent(const Common::String &name, const Common::String &description);
+};
+
+#endif // BACKEND_WIN32_TASKBAR_H