]> Dogcows Code - chaz/yoink/blobdiff - src/Moof/Dispatcher.hh
port to NetBSD
[chaz/yoink] / src / Moof / Dispatcher.hh
index 14d8998bccd10392b3dc4cb4dd46fb678cb32eb0..7945752df0b21ff3b97aa2104ee1b6bc1c3e4c0b 100644 (file)
@@ -46,7 +46,7 @@ namespace Mf {
 class Notification
 {
 public:
-       virtual ~Notification();
+       virtual ~Notification() {};
 };
 
 
@@ -57,10 +57,13 @@ public:
 class Dispatcher
 {
        class Impl;
-       boost::shared_ptr<Impl> impl_;
+       boost::shared_ptr<Impl> mImpl;
 
 public:
 
+       // TODO - the Handler would be even better as an object which automagically
+       // removes itself from the dispatcher on destruction, so users don't have to
+       // worry about forgetting
        typedef void* Handler;
        typedef boost::function<void(const Notification*)> Function;
 
@@ -104,7 +107,7 @@ inline void dispatch(const std::string& message, const Notification* param = 0)
        Dispatcher::getInstance().dispatch(message, param);
 }
 
-} // namespace dispatch
+} // namespace dispatcher
 
 
 } // namespace Mf
This page took 0.01784 seconds and 4 git commands to generate.