summaryrefslogtreecommitdiff
path: root/src/depricatedevent.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/depricatedevent.h')
-rw-r--r--src/depricatedevent.h16
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;
};