Mana
Loading...
Searching...
No Matches
eventlistener.cpp
Go to the documentation of this file.
1/*
2 * The Mana Client
3 * Copyright (C) 2010-2012 The Mana Developers
4 *
5 * This file is part of The Mana Client.
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21#include "eventlistener.h"
22
23#include "event.h"
24
29
31{
32 Event::bind(this, channel);
33}
34
36{
37 Event::unbind(this, channel);
38}
void ignore(Event::Channel channel)
virtual ~EventListener()
void listen(Event::Channel channel)
static void unbind(EventListener *listener, Channel channel)
Unbinds the given listener from the given channel.
Definition event.cpp:187
Channel
Definition event.h:45
static void remove(EventListener *listener)
Unbinds the given listener from all channels.
Definition event.cpp:192
static void bind(EventListener *listener, Channel channel)
Binds the given listener to the given channel.
Definition event.cpp:182