From 72d83cf5ae523f16fd5313c20f711f6030350d05 Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Sat, 9 Apr 2011 00:25:41 +0200 Subject: Renamed Listener to EventListener Makes it clear what kind of listener it is, since there are other listener classes as well. Acked-by: Jared Adams --- src/event.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/event.h') diff --git a/src/event.h b/src/event.h index 4ee0c326..c4dcfc9b 100644 --- a/src/event.h +++ b/src/event.h @@ -35,9 +35,9 @@ enum BadEvent { KEY_ALREADY_EXISTS }; -class Listener; +class EventListener; -typedef std::set ListenerSet; +typedef std::set ListenerSet; class VariableData; typedef std::map VariableMap; @@ -297,24 +297,24 @@ public: { trigger(channel, Event(type)); } protected: - friend class Listener; + friend class EventListener; /** * Binds the given listener to the given channel. The listener will receive * all events triggered on the channel. */ - static void bind(Listener *listener, Channel channel); + static void bind(EventListener *listener, Channel channel); /** * Unbinds the given listener from the given channel. The listener will no * longer receive any events from the channel. */ - static void unbind(Listener *listener, Channel channel); + static void unbind(EventListener *listener, Channel channel); /** * Unbinds the given listener from all channels. */ - static void remove(Listener *listener); + static void remove(EventListener *listener); private: typedef std::map ListenMap; -- cgit v1.2.3-60-g2f50