X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FDispatch.hh;h=e357f0263e65d33aac5ec81972f9437e22abf0a5;hp=4911c12367ccdd8a28ba11929c8e5a4b0eeab9e3;hb=c78934a448d0126709fccec3d5a636b3baa87da4;hpb=e0c0a3b5e7337cde55e520801d2e59e03dc97d9c diff --git a/src/Moof/Dispatch.hh b/src/Moof/Dispatch.hh index 4911c12..e357f02 100644 --- a/src/Moof/Dispatch.hh +++ b/src/Moof/Dispatch.hh @@ -34,18 +34,8 @@ class Dispatch void removeTarget(unsigned id); -public: - - /** - * Interface for a notification class. - */ - - class Message - { - public: - virtual ~Message() {}; - }; +public: class Handle { @@ -92,7 +82,7 @@ public: mutable unsigned mId; }; - typedef boost::function Function; + typedef boost::function Function; Dispatch(); @@ -101,7 +91,7 @@ public: 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(); };