Package net.sphene.goim.rcp.xmpp

Examples of net.sphene.goim.rcp.xmpp.GOIMPacketListener


      iq.addField("nick");
      iq.setField("nick", txtNickName.getText());
      iq.addField("email");
      iq.setField("email", txtEmail.getText());
     
      new GOIMPacketListener(account.xmpp.getConnection(),
          new PacketIDFilter(iq.getPacketID()), new TaskObserver()) {
        public void processPacket(final Packet packet) {

          final SearchIQ result = (SearchIQ) packet;
          shell.getDisplay().asyncExec(new Runnable() { public void run() {
View Full Code Here


      iq.addField("email");
      iq.setField("email", txtEmail.getText());
      */
      System.out.println(iq.toXML());

      new GOIMPacketListener(account.xmpp.getConnection(),
          new PacketIDFilter(iq.getPacketID()), new TaskObserver()) {
        public void processPacket(final Packet packet) {

          final SearchIQ result = (SearchIQ) packet;
//          shell.getDisplay().asyncExec(new Runnable() { public void run() {
View Full Code Here

    DiscoverInfo disco = new DiscoverInfo();
    disco.setType(IQ.Type.GET);
    disco.setTo(addressid);
    disco.setNode(null);
    //DiscoverInfo info = disco.discoverInfo(addressid);
    new GOIMPacketListener(account.xmpp.getConnection(),new PacketIDFilter(disco.getPacketID()),taskObserver){
      public void processPacket(final Packet packet) {
        unregisterListener(false);
        final Task task = this;
        if(packet.getError() != null &&
            (packet.getError().getCode() == 404 || // not found
View Full Code Here

    DiscoverItems disco = new DiscoverItems();
    disco.setType(IQ.Type.GET);
    disco.setTo(addressid);
    disco.setNode(null);
   
    new GOIMPacketListener(account.xmpp.getConnection(),new PacketIDFilter(disco.getPacketID()),taskObserver) {
      public void processPacket(final Packet packet) {
        final Task task = this;
        unregisterListener(false);
        parent.getDisplay().asyncExec(new Runnable() { public void run() {
          if(packet.getError() != null) {
View Full Code Here

      return;
    }

    //System.out.println("SEND DATA " + iq.getChildElementXML());
    // result = (SearchIQ)account.xmpp.sendIQPacketAndWaitForReply( iq);
    new GOIMPacketListener(account.xmpp.getConnection(),
        new PacketIDFilter(iq.getPacketID()), new TaskObserver()) {
      public void processPacket(final Packet packet) {
        final SearchIQ result = (SearchIQ) packet;
        showResults( result );
      }
View Full Code Here

TOP

Related Classes of net.sphene.goim.rcp.xmpp.GOIMPacketListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.