#ifndef _DISPATCHER_HH_
#define _DISPATCHER_HH_
-/**
- * @file dispatcher.hh
- * Dispatching of information.
- */
-
#include <string>
#include <boost/shared_ptr.hpp>
namespace dc {
-// Subclass this to create more specific notes to dispatch.
+/**
+ * Interface for a notification class.
+ */
+
class notification
{
public:
};
-class dispatcher_impl;
+/**
+ * Dispatcher of notifications to interested parties.
+ */
class dispatcher : public singleton<dispatcher>
{
void dispatch(const std::string& message, const notification& param);
private:
+ class dispatcher_impl;
boost::shared_ptr<dispatcher_impl> impl;
};
#endif // _DISPATCHER_HH_
+/** vim: set ts=4 sw=4 tw=80: *************************************************/
+