public JabberModel(JustTalk gui) { this.gui = gui; packetQueue = new PacketQueue(); queueThread = new QueueThread(packetQueue); queueThread.addPacketListener(new OpenStreamHandler(), "stream:stream"); queueThread.addPacketListener(new CloseStreamHandler(this), "/stream:stream"); queueThread.addPacketListener(new MessageHandler(this), "message"); //Додадено од Милош/Васко queueThread.addPacketListener(new AuthHandler(this), "jabber:iq:auth"); queueThread.addPacketListener(new IQHandler(this), "iq"); //Крај додадено //marko queueThread.addPacketListener(new RosterHandler(this), "jabber:iq:roster"); //kraj marko queueThread.addPacketListener(new PresenceHandler(this), "presence"); queueThread.addPacketListener(new RegisterHandler(this), "jabber:iq:register"); queueThread.setDaemon(true); queueThread.start(); }
public ProcessThread(PacketQueue queue, Session session) { packetQueue = queue; this.session = session; }
public QueueThread(PacketQueue queue) { packetQueue = queue; }
public JabberInputHandler(PacketQueue packetQ) { this.packetQ = packetQ; }
public ProcessThread(PacketQueue queue, Session session, JabberModel model) { packetQueue = queue; this.session = session; this.model = model; }