PureMVC PureMVC

include/PureMVC/Interfaces/INotifier.hpp

Go to the documentation of this file.
00001 //  INotifier.hpp
00002 //  PureMVC_C++
00003 //
00004 //  PureMVC Port to C++ by Tang Khai Phuong <phuong.tang@puremvc.org>
00005 //  PureMVC - Copyright(c) 2006-2011 Futurescale, Inc., Some rights reserved.
00006 //  Your reuse is governed by the Creative Commons Attribution 3.0 License
00007 //
00008 
00009 #if !defined(__PUREMVC_INTERFACES_INOTIFIER_HPP__)
00010 #define __PUREMVC_INTERFACES_INOTIFIER_HPP__
00011 
00012 // STL include
00013 #include <string>
00014 // PureMVC include
00015 #if !defined(__PUREMVC_HPP__)
00016 #define __PUREMVC_INCLUDE__
00017 #include "../PureMVC.hpp"
00018 #endif /* __PUREMVC_HPP__ */
00019 
00020 namespace PureMVC
00021 {
00022     namespace Interfaces
00023     {
00047         struct PUREMVC_API INotifier
00048         {
00060              virtual void sendNotification(std::string const& notification_name, void const* body = NULL, std::string const& type = "") = 0;
00061 
00072              virtual void initializeNotifier(std::string const& key) = 0;
00073 
00074             /*
00075              * Get multiton key.
00076              *
00077              * @param key the multitonKey for this INotifier to use
00078              */
00079              virtual std::string const& getMultitonKey(void) const = 0;
00080 
00084              virtual ~INotifier(void);
00085         };
00086     }
00087 }
00088 
00089 #endif /* __PUREMVC_INTERFACES_INOTIFIER_HPP__ */