#include <string>
+#include <boost/bind.hpp>
#include <boost/function.hpp>
#include <boost/shared_ptr.hpp>
class Notification
{
public:
- virtual ~Notification();
+ virtual ~Notification() {};
};
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;
} // namespace dispatch
+
} // namespace Mf
#endif // _MOOF_DISPATCHER_HH_