void removeTarget(unsigned id);
-public:
-
- /**
- * Interface for a notification class.
- */
-
- class Message
- {
- public:
- virtual ~Message() {};
- };
+public:
class Handle
{
mutable unsigned mId;
};
- typedef boost::function<void(const Message*)> Function;
+ typedef boost::function<void(void)> Function;
Dispatch();
Handle addTarget(const std::string& event, const Function& callback,
Handle handle);
- void dispatch(const std::string& event, const Message* message = 0);
+ void dispatch(const std::string& event);
static Dispatch& global();
};