diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-05-18 18:49:27 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-05-18 18:49:27 +0300 |
commit | 25a143ac11baebc9ecaf5c2c05d4808f20d54e3c (patch) | |
tree | ab48fe5020a74aab2d3b6e73d0cf5b99c09307ac /src/depricatedevent.h | |
parent | c7a122c9d12d4ba6c08aed06291ebebf6bcdd1ed (diff) | |
download | manaverse-25a143ac11baebc9ecaf5c2c05d4808f20d54e3c.tar.gz manaverse-25a143ac11baebc9ecaf5c2c05d4808f20d54e3c.tar.bz2 manaverse-25a143ac11baebc9ecaf5c2c05d4808f20d54e3c.tar.xz manaverse-25a143ac11baebc9ecaf5c2c05d4808f20d54e3c.zip |
rename listender to depricatedlistener.
Diffstat (limited to 'src/depricatedevent.h')
-rw-r--r-- | src/depricatedevent.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/depricatedevent.h b/src/depricatedevent.h index c142ec0b1..1c31cea57 100644 --- a/src/depricatedevent.h +++ b/src/depricatedevent.h @@ -39,12 +39,12 @@ enum DepricatedEvents EVENT_UPDATESTAT }; -class Listener; +class DepricatedListener; class VariableData; typedef std::map<std::string, VariableData *> VariableMap; -typedef std::set<Listener *> ListenerSet; -typedef std::map<Channels, ListenerSet > ListenMap; +typedef std::set<DepricatedListener *> DepricatedListenerSet; +typedef std::map<Channels, DepricatedListenerSet > DepricatedListenMap; class DepricatedEvent final { @@ -84,17 +84,19 @@ class DepricatedEvent final const DepricatedEvent &event); // Removes a listener from all channels - static void remove(Listener *const listener); + static void remove(DepricatedListener *const listener); // Adds or removes a listener to a channel. - static void bind(Listener *const listener, const Channels channel); + static void bind(DepricatedListener *const listener, + const Channels channel); - static void unbind(Listener *const listener, const Channels channel); + static void unbind(DepricatedListener *const listener, + const Channels channel); private: DepricatedEvents mDepricatedEventName; - static ListenMap mBindings; + static DepricatedListenMap mBindings; VariableMap mData; }; |