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/depricatedlistener.cpp | |
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/depricatedlistener.cpp')
-rw-r--r-- | src/depricatedlistener.cpp | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/depricatedlistener.cpp b/src/depricatedlistener.cpp new file mode 100644 index 000000000..376a85d92 --- /dev/null +++ b/src/depricatedlistener.cpp @@ -0,0 +1,39 @@ +/* + * The ManaPlus Client + * Copyright (C) 2010 The Mana Developers + * Copyright (C) 2011-2013 The ManaPlus Developers + * + * This file is part of The ManaPlus Client. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#include "depricatedlistener.h" + +#include "debug.h" + +DepricatedListener::~DepricatedListener() +{ + DepricatedEvent::remove(this); +} + +void DepricatedListener::listen(Channels channel) +{ + DepricatedEvent::bind(this, channel); +} + +void DepricatedListener::ignore(Channels channel) +{ + DepricatedEvent::unbind(this, channel); +} |