Package com.anzsoft.client.XMPP

Examples of com.anzsoft.client.XMPP.XmppQuery


  }
 
  private void getRooms(final String jid)
  {
    XmppSession session = JabberApp.instance().getSession();
    XmppQuery query = session.getFactory().createQuery();
    query.setIQ(jid, XmppQuery.TYPE_GET, TextUtils.genUniqueId());
    query.setQuery("http://jabber.org/protocol/disco#items");
    session.send(query,new XmppPacketListener()
    {
      public void onPacketReceived(XmppPacket packet)
      {
        onRooms(packet);
View Full Code Here


   */
  private void publish()
  {
    publishButton.setEnabled(false);
    final XmppVCard v = makeVCard();
    XmppQuery iq = JabberApp.instance().getSession().getFactory().createQuery();
    iq.setIQ("", XmppQuery.TYPE_SET, TextUtils.genUniqueId());
    Element vcardEl = v.toXml(iq.getDoc());
    iq.getNode().appendChild(vcardEl);
   
    JabberApp.instance().getSession().send(iq, new XmppPacketListener()
    {
      public void onPacketReceived(XmppPacket packet)
      {
View Full Code Here

TOP

Related Classes of com.anzsoft.client.XMPP.XmppQuery

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.