From a523ade3329a36a50c75161279ced7c0d754906f Mon Sep 17 00:00:00 2001 From: Littleboy Date: Fri, 1 Apr 2011 01:04:46 -0400 Subject: BACKENDS: Add stubs for unity taskbar class --- backends/module.mk | 3 +- backends/taskbar/unity/unity-taskbar.cpp | 56 ++++++++++++++++++++++++++++++++ backends/taskbar/unity/unity-taskbar.h | 49 ++++++++++++++++++++++++++++ 3 files changed, 107 insertions(+), 1 deletion(-) create mode 100644 backends/taskbar/unity/unity-taskbar.cpp create mode 100644 backends/taskbar/unity/unity-taskbar.h diff --git a/backends/module.mk b/backends/module.mk index 7d5b86f561..9869587a51 100644 --- a/backends/module.mk +++ b/backends/module.mk @@ -75,7 +75,8 @@ MODULE_OBJS += \ fs/posix/posix-fs.o \ fs/posix/posix-fs-factory.o \ plugins/posix/posix-provider.o \ - saves/posix/posix-saves.o + saves/posix/posix-saves.o \ + taskbar/unity/unity-taskbar.o endif ifdef MACOSX diff --git a/backends/taskbar/unity/unity-taskbar.cpp b/backends/taskbar/unity/unity-taskbar.cpp new file mode 100644 index 0000000000..98616a7587 --- /dev/null +++ b/backends/taskbar/unity/unity-taskbar.cpp @@ -0,0 +1,56 @@ +/* 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$ + * + */ + +#if defined(UNIX) + +#include "backends/taskbar/unity/unity-taskbar.h" + +#include "common/config-manager.h" +#include "common/textconsole.h" +#include "common/file.h" + +UnityTaskbarManager::UnityTaskbarManager() { +} + +UnityTaskbarManager::~UnityTaskbarManager() { +} + +void UnityTaskbarManager::setOverlayIcon(Common::String name, Common::String description) { + warning("[UnityTaskbarManager::setOverlayIcon] Not implemented"); +} + +void UnityTaskbarManager::setProgressValue(int completed, int total) { + warning("[UnityTaskbarManager::setProgressValue] Not implemented"); +} + +void UnityTaskbarManager::setProgressState(TaskbarProgressState state) { + warning("[UnityTaskbarManager::setProgressState] Not implemented"); +} + +void UnityTaskbarManager::addRecent(Common::String name, Common::String description) { + warning("[UnityTaskbarManager::addRecent] Not implemented"); +} + +#endif diff --git a/backends/taskbar/unity/unity-taskbar.h b/backends/taskbar/unity/unity-taskbar.h new file mode 100644 index 0000000000..a49f369cac --- /dev/null +++ b/backends/taskbar/unity/unity-taskbar.h @@ -0,0 +1,49 @@ +/* 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$ + * + */ + +#ifndef BACKEND_UNITY_TASKBAR_H +#define BACKEND_UNITY_TASKBAR_H + +#if defined(UNIX) + +#include "common/str.h" +#include "common/taskbar.h" + +class UnityTaskbarManager : public Common::TaskbarManager { +public: + UnityTaskbarManager(); + virtual ~UnityTaskbarManager(); + + virtual void setOverlayIcon(Common::String name, Common::String description); + virtual void setProgressValue(int completed, int total); + virtual void setProgressState(TaskbarProgressState state); + virtual void addRecent(Common::String name, Common::String description); + +private: +}; + +#endif + +#endif // BACKEND_UNITY_TASKBAR_H -- cgit v1.2.3