summaryrefslogtreecommitdiff
path: root/src/event.h
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2011-04-09 00:25:41 +0200
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2011-04-09 17:54:13 +0200
commit72d83cf5ae523f16fd5313c20f711f6030350d05 (patch)
tree11e737b42871df8c8be5c819dd29613dade27938 /src/event.h
parent404d3f7f2f9aa455bea423a6a00025df23cd6687 (diff)
downloadmana-client-72d83cf5ae523f16fd5313c20f711f6030350d05.tar.gz
mana-client-72d83cf5ae523f16fd5313c20f711f6030350d05.tar.bz2
mana-client-72d83cf5ae523f16fd5313c20f711f6030350d05.tar.xz
mana-client-72d83cf5ae523f16fd5313c20f711f6030350d05.zip
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
Diffstat (limited to 'src/event.h')
-rw-r--r--src/event.h12
1 files changed, 6 insertions, 6 deletions
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<Listener *> ListenerSet;
+typedef std::set<EventListener *> ListenerSet;
class VariableData;
typedef std::map<std::string, VariableData *> 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<Channel, ListenerSet > ListenMap;