diff --git a/jabber/stream/FilterList.hx b/jabber/stream/FilterList.hx index c3b90f9..57d8a8c 100644 --- a/jabber/stream/FilterList.hx +++ b/jabber/stream/FilterList.hx @@ -25,8 +25,8 @@ import xmpp.filter.PacketIDFilter; */ class FilterList { - var f_id : Array<xmpp.PacketFilter>; - var f : Array<xmpp.PacketFilter>; + var f_id : Array<PacketFilter>; + var f : Array<PacketFilter>; public function new() { clear(); diff --git a/jabber/stream/PacketCollector.hx b/jabber/stream/PacketCollector.hx index 3bc467f..0dc843f 100644 --- a/jabber/stream/PacketCollector.hx +++ b/jabber/stream/PacketCollector.hx @@ -35,7 +35,7 @@ class PacketCollector { /** */ public var timeout(default,setTimeout) : PacketTimeout; - public function new( filters : Iterable<xmpp.PacketFilter>, + public function new( filters : Iterable<PacketFilter>, handler : Dynamic->Void, ?permanent : Bool = false, ?timeout : PacketTimeout, diff --git a/xmpp/PacketFilter.hx b/xmpp/PacketFilter.hx index 4f4dc9c..44324ef 100644 --- a/xmpp/PacketFilter.hx +++ b/xmpp/PacketFilter.hx @@ -1,27 +1,27 @@ -/* - * This file is part of HXMPP. - * Copyright (c)2009 http://www.disktree.net - * - * HXMPP is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * HXMPP 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 Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with HXMPP. If not, see <http://www.gnu.org/licenses/>. -*/ -package xmpp; - -typedef PacketFilter = { - - /** - Returns true if the given XMPP packet passes through this filter. - */ - function accept( packet : xmpp.Packet ) : Bool; - +/* + * This file is part of HXMPP. + * Copyright (c)2009 http://www.disktree.net + * + * HXMPP is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * HXMPP 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 Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with HXMPP. If not, see <http://www.gnu.org/licenses/>. +*/ +package xmpp; + +typedef PacketFilter = { + + /** + Returns true if the given XMPP packet passes through this filter. + */ + function accept( packet : xmpp.Packet ) : Bool; + }