summaryrefslogtreecommitdiff
path: root/src/depricatedevent.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-26 02:48:32 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-26 02:48:32 +0300
commitab596ef3f4215f792feaa9ca1dfe5acb74c67328 (patch)
treeac5a4f31e2fa9c784d7de8d817654d47e21ccac2 /src/depricatedevent.h
parent399f264360f6e8dfa31d0c3ff7d72aad8033888d (diff)
downloadmv-ab596ef3f4215f792feaa9ca1dfe5acb74c67328.tar.gz
mv-ab596ef3f4215f792feaa9ca1dfe5acb74c67328.tar.bz2
mv-ab596ef3f4215f792feaa9ca1dfe5acb74c67328.tar.xz
mv-ab596ef3f4215f792feaa9ca1dfe5acb74c67328.zip
Add const to some classes.
Diffstat (limited to 'src/depricatedevent.h')
-rw-r--r--src/depricatedevent.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/depricatedevent.h b/src/depricatedevent.h
index 6e7eed448..7262a0a37 100644
--- a/src/depricatedevent.h
+++ b/src/depricatedevent.h
@@ -121,7 +121,8 @@ class DepricatedEvent
// String passed can be retivered with getName()
// and is to used to identify what type of event
// this is.
- DepricatedEvent(DepricatedEvents name) : mDepricatedEventName(name)
+ DepricatedEvent(const DepricatedEvents name) :
+ mDepricatedEventName(name)
{ }
~DepricatedEvent();
@@ -151,14 +152,14 @@ class DepricatedEvent
const throw (BadDepricatedEvent);
// Sends event to all listener on the channel
- static void trigger(Channels channel, const DepricatedEvent &event);
+ static void trigger(const Channels channel, const DepricatedEvent &event);
// Removes a listener from all channels
- static void remove(Listener *listener);
+ static void remove(Listener *const listener);
// Adds or removes a listener to a channel.
- static void bind(Listener *listener, Channels channel);
- static void unbind(Listener *listener, Channels channel);
+ static void bind(Listener *const listener, const Channels channel);
+ static void unbind(Listener *const listener, const Channels channel);
private:
DepricatedEvents mDepricatedEventName;