2 /******************************* PHP-P10 v2 *****************************
3 * Copyright (C) 2011 Philipp Kreil (pk910) *
5 * This program is free software: you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation, either version 3 of the License, or *
8 * (at your option) any later version. *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program. If not, see <http://www.gnu.org/licenses/>. *
18 ************************************************************************
20 * Uplink/EventHandler.interface.php
22 * This file contains the Uplink EventHandler interface.
26 interface EventHandler {
28 public function event_newserver($server, $isBurst);
29 public function event_squit($server);
31 public function event_connect($user, $isBurst);
32 public function event_nick($user, $newNick);
33 public function event_usermode($user, $modes);
34 public function event_quit($user, $reason);
35 public function event_away($user, $away);
37 public function event_join($user, $channel, $isBurst);
38 public function event_part($user, $channel, $reason);
39 public function event_kick($user, $target, $channel, $reason);
40 public function event_chanmode($user, $channel, $modes);
42 public function event_chanmessage($user, $channel, $message);
43 public function event_channotice($user, $channel, $message);
44 public function event_chanctcp($user, $channel, $command, $text);
45 public function event_chanctcpreply($user, $target, $command, $text);
46 public function event_privmessage($user, $target, $message);
47 public function event_privnotice($user, $target, $message);
48 public function event_privctcp($user, $target, $command, $text);
49 public function event_privctcpreply($user, $target, $command, $text);
52 public function event_preparse($from, $command, $arguments);
53 public function event_unknown_cmd($from, $command, $arguments);