added some more events
[PHP-P10.git] / Uplink / EventHandler.interface.php
1 <?php
2 /********************************* PHP-P10 ******************************
3  *    P10 uplink class by pk910   (c)2011 pk910                         *
4  ************************************************************************
5  *                          Version 2 (OOP)                             *
6  *                                                                      *
7  * PHP-P10 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  * (at your option) 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 PHP-P10; if not, write to the Free Software Foundation,   *
19  * Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA.       *
20  *                                                                      *
21  ************************************************************************
22  * 
23  *  Uplink/EventHandler.interface.php
24  *
25  * This file contains the Uplink EventHandler interface.
26  *
27  */
28
29 interface EventHandler {
30         
31         public function event_newserver($server, $isBurst);
32         public function event_squit($server);
33         
34         public function event_connect($user, $isBurst);
35         public function event_nick($user, $newNick);
36         public function event_usermode($user, $modes);
37         public function event_quit($user, $reason);
38         public function event_away($user, $away);
39         
40         public function event_join($user, $channel, $isBurst);
41         public function event_part($user, $channel, $reason);
42         public function event_kick($user, $target, $channel, $reason);
43         public function event_chanmode($user, $channel, $modes);
44         
45         public function event_chanmessage($user, $channel, $message);
46         public function event_channotice($user, $channel, $message);
47         public function event_chanctcp($user, $channel, $command, $text);
48         public function event_chanctcpreply($user, $target, $command, $text);
49         public function event_privmessage($user, $target, $message);
50         public function event_privnotice($user, $target, $message);
51         public function event_privctcp($user, $target, $command, $text);
52         public function event_privctcpreply($user, $target, $command, $text);
53         
54         
55         public function event_preparse($from, $command, $arguments);
56         public function event_unknown_cmd($from, $command, $arguments);
57         
58 }
59
60 ?>