X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FDispatcher.hh;h=7945752df0b21ff3b97aa2104ee1b6bc1c3e4c0b;hp=0d75390d7f7adaa4902ef62ee761564519a9f057;hb=a31d65a998121df0651c57bfb68782e2a07d2e2f;hpb=d50942708db230dc5c43b8df89ede45525e1c394 diff --git a/src/Moof/Dispatcher.hh b/src/Moof/Dispatcher.hh index 0d75390..7945752 100644 --- a/src/Moof/Dispatcher.hh +++ b/src/Moof/Dispatcher.hh @@ -31,6 +31,7 @@ #include +#include #include #include @@ -45,7 +46,7 @@ namespace Mf { class Notification { public: - virtual ~Notification(); + virtual ~Notification() {}; }; @@ -56,10 +57,13 @@ public: class Dispatcher { class Impl; - boost::shared_ptr impl_; + boost::shared_ptr 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 Function; @@ -103,7 +107,8 @@ inline void dispatch(const std::string& message, const Notification* param = 0) Dispatcher::getInstance().dispatch(message, param); } -} // namespace dispatch +} // namespace dispatcher + } // namespace Mf