Package net.sphene.goim.rcp.xmpp

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


      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() {
            shell.setCursor( new Cursor( shell.getDisplay(), SWT.CURSOR_ARROW ));
View Full Code Here


      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() {
////            shell.setCursor( new Cursor( shell.getDisplay(), SWT.CURSOR_ARROW ));
View Full Code Here

    final TreeItem root = new TreeItem(discovered, SWT.NULL);
    root.setText(1, addressid);
    root.setData("address", addressid);
   
    if(taskObserver != null) taskObserver.cancel();
    taskObserver = new TaskObserver();
    taskObserver.addObserverListener(new SpheneListener<TaskObserverEvent>() {
      public void handleEvent(final TaskObserverEvent event) {
        discovered.getDisplay().asyncExec(new Runnable(){public void run(){
          switch(event.type) {
          case TaskObserverEvent.TYPE_ALL_FINISHED:
View Full Code Here

    }

    //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 );
      }
    }.registerListener();
View Full Code Here

TOP

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

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.