]> Dogcows Code - chaz/yoink/blobdiff - src/Moof/Dispatcher.hh
cleaned up dispatcher
[chaz/yoink] / src / Moof / Dispatcher.hh
index ec143b46fdce105a7021f79cc4a2ecb1027144f4..5747f8581ddbc3622eed9be8ce5c3f0eebd03293 100644 (file)
@@ -59,7 +59,7 @@ class Dispatcher : public Singleton<Dispatcher>
 {
 public:
        typedef void* Handler;
-       typedef boost::function<void(const Notification&)> Function;
+       typedef boost::function<void(const Notification*)> Function;
 
        Dispatcher();
 
@@ -69,12 +69,11 @@ public:
 
        void removeHandler(Handler id);
 
-       void dispatch(const std::string& message);
-       void dispatch(const std::string& message, const Notification& param);
+       void dispatch(const std::string& message, const Notification* param = 0);
 
 private:
-       class DispatcherImpl;
-       boost::shared_ptr<DispatcherImpl> impl_;
+       class Impl;
+       boost::shared_ptr<Impl> impl_;
 };
 
 
This page took 0.018497 seconds and 4 git commands to generate.