aboutsummaryrefslogtreecommitdiff
path: root/engines/pegasus/MMShell/Notification/MMNotificationReceiver.cpp
diff options
context:
space:
mode:
authorMatthew Hoops2011-06-16 14:12:18 -0400
committerMatthew Hoops2011-06-16 14:12:18 -0400
commite789ab0d3b21c1c0cf76700b40f2e3c440a825a0 (patch)
treede0c9855ac595cc9d529a08c0be0c2479858ff87 /engines/pegasus/MMShell/Notification/MMNotificationReceiver.cpp
parentfd8eaba47a3a3bdbac56f2d21d100b3b953ed2f5 (diff)
downloadscummvm-rg350-e789ab0d3b21c1c0cf76700b40f2e3c440a825a0.tar.gz
scummvm-rg350-e789ab0d3b21c1c0cf76700b40f2e3c440a825a0.tar.bz2
scummvm-rg350-e789ab0d3b21c1c0cf76700b40f2e3c440a825a0.zip
PEGASUS: Import the MMNotification classes
Diffstat (limited to 'engines/pegasus/MMShell/Notification/MMNotificationReceiver.cpp')
-rwxr-xr-xengines/pegasus/MMShell/Notification/MMNotificationReceiver.cpp46
1 files changed, 46 insertions, 0 deletions
diff --git a/engines/pegasus/MMShell/Notification/MMNotificationReceiver.cpp b/engines/pegasus/MMShell/Notification/MMNotificationReceiver.cpp
new file mode 100755
index 0000000000..41191b1b8e
--- /dev/null
+++ b/engines/pegasus/MMShell/Notification/MMNotificationReceiver.cpp
@@ -0,0 +1,46 @@
+/* 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.
+ *
+ * Additional copyright for this file:
+ * Copyright (C) 1995-1997 Presto Studios
+ *
+ * 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.
+ *
+ */
+
+#include "pegasus/MMShell/Notification/MMNotificationReceiver.h"
+
+namespace Pegasus {
+
+MMNotificationReceiver::MMNotificationReceiver() {
+ fNotification = NULL;
+}
+
+MMNotificationReceiver::~MMNotificationReceiver() {
+ if (fNotification)
+ fNotification->CancelNotification(this);
+}
+
+void MMNotificationReceiver::ReceiveNotification(MMNotification *, const tNotificationFlags) {
+}
+
+void MMNotificationReceiver::NewNotification(MMNotification *notification) {
+ fNotification = notification;
+}
+
+} // End of namespace Pegasus