Package nu.fw.jeti.jabber.elements

Examples of nu.fw.jeti.jabber.elements.InfoQuery


//  status change listener
  public void exit(){}
 
  public void connectionChanged(boolean online)
  {
    if(online) backend.send(new InfoQuery("get",new IQPrivate(new PrivateBookmarkExtension())));
  }
View Full Code Here


      return bytes;
    }
   
    public void cancel()
    {
      backend.send(new InfoQuery(jid,"set",new IBBExtension(sid)));
      stopDownloading();
    }
View Full Code Here

        }
      }catch (IOException e2//probably out of hd
      {
        Popups.errorPopup(e2.getMessage() + " while downloading " ,"File transfer");
        //download not ok
        backend.send(new InfoQuery(jid,"set",new IBBExtension(sid)));
        getFileWindow.stopDownloading();
      }
      finally
      {
        try
View Full Code Here

    this.backend = backend;
    window =ws;
    this.to = to;
    sid = id;
    setPriority(NORM_PRIORITY);
    backend.send(new InfoQuery(to,"set","ibb" + backend.getIdentifier(), new IBBExtension(sid,BUF_SIZE)),new IQResultListener()
    {
      public void iqResult(InfoQuery iq)
      {
        if(iq.getType().equals("result"))
        {
View Full Code Here

          window.stop();
          return;
        }
        Thread.yield();
            }
            backend.send(new InfoQuery(to,"set",new IBBExtension(sid)));
      }catch(IOException e)
    {
        sendStreamClose();
        Popups.messagePopup(I18N.gettext("filetransfer.Problem_during_file_transfer,_transfer_aborted"),I18N.gettext("filetransfer.File_Transfer"));
      window.stop();
View Full Code Here

        window.done();
    }

    private void sendStreamClose()
    {
      backend.send(new InfoQuery(to,"set","ibb" + backend.getIdentifier(), new IBBExtension(sid)));
    }
View Full Code Here

        if(w!=null)
        {//file accepted by filetransfer protocol;
          //System.out.println(getSid());
          w.startDownloading(new IBBReceive(iq.getFrom(),getSid(),backend,w));
          fileWindows.put(getSid(),w);
          backend.send(new InfoQuery(iq.getFrom(),"result",iq.getID(),null));
          Log.xmlReceivedError("ibb stream init from unknown");
        }
        else
        {
          XMPPError e = new XMPPError("cancel",501);
          e.addError(new XMPPErrorTag("feature-not-implemented"));
          backend.send(new InfoQuery(iq.getFrom(),iq.getID(),e));
        }
      }
      if(isClose())
      {
        GetFileWindow w=  (GetFileWindow) fileWindows.remove(sid);
        if(w!=null)((IBBReceive)w.getStreamReceive()).stopDownloading();
        //System.out.println(" close  " + sid);
        backend.send(new InfoQuery(iq.getFrom(),"result",iq.getID(),null));
      }
    }
  }
View Full Code Here

            // Fill in the fields with the info from the Jingle packet
            //perror.setPacketID(iq.getPacketID());
            //perror.addExtension(error);
                 //FIXME error to xmpp error?   
            getConnection().send(new InfoQuery(iq.getTo(),iq.getPacketID(),error ));
            System.err.println(error);
        }
        //return perror;
    }
View Full Code Here

//                }
//                else {
//                    jout.setFrom(me);
//                }
//            }
            getConnection().send(new InfoQuery(to,jout.getType(),jout.getPacketID(),jout));
        }
    }
View Full Code Here

            // Don't acknowledge ACKs, errors...
            if (iq.getType().equals("set")) {
                //IQ ack = createIQ(iq.getPacketID(), iq.getFrom(), iq.getTo(),
                  //      IQ.Type.RESULT);

                getConnection().send(new InfoQuery(iq.getFrom(),"result",iq.getPacketID(),null));
            
            }
        }
    }
View Full Code Here

TOP

Related Classes of nu.fw.jeti.jabber.elements.InfoQuery

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.