]> Dogcows Code - chaz/yoink/blobdiff - src/Moof/Dispatch.hh
sockets documentation and cleanup
[chaz/yoink] / src / Moof / Dispatch.hh
index 4911c12367ccdd8a28ba11929c8e5a4b0eeab9e3..e357f0263e65d33aac5ec81972f9437e22abf0a5 100644 (file)
@@ -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<void(const Message*)> Function;
+       typedef boost::function<void(void)> 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();
 };
This page took 0.019399 seconds and 4 git commands to generate.