Package nu.fw.jeti.jabber.elements

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


  public void disconnect()
  {
    if(authenticated)
    {
      send(new Presence(myJID, "unavailable"));
      authenticated = false;
      output.disconnect(true);
    }
    output = null;
    for(Iterator<JETIListener> j = backend.getListeners(nu.fw.jeti.events.StatusChangeListener.class);j.hasNext();)
View Full Code Here


            } else {
                backend.changeStatus(status, messageText);
            }
        } else {
          Avatars avatars = getAvatarInterface();
          Presence presence=null;
      if(avatars!=null)
      {
        presence = avatars.addHash(jid,status, messageText);
      }
      else presence = new Presence(jid,status, messageText);
           backend.send(presence);
        }
    }
View Full Code Here

    public void run()
    {
      boolean connected=false;
      while(connect)
      {
        backend.send(new Presence(jid,backend.getStatus(),null));
        if(connected) break;
        try
        {
          Thread.sleep(600000);
        }
View Full Code Here

              String message=null;
              if (Preferences.getBoolean("jeti", "statusLinked", false)) {
                status = StatusButton.getStatus();
                message = StatusButton.getStatusMessage();
              }
              Presence presence=null;
            presence = avatar.addHash(jid,status,message,new XMUC());
            backend.send(presence);
 
          }
        },60000);
View Full Code Here

  void btnOK_actionPerformed(ActionEvent e)
  {
    JID contact = jidInput.createJID();
    if (contact == null) return;
    backend.send(new Presence(contact, "subscribe"));
    try
    {
      String nick = txtNick.getText();
      if (nick.equals("")) nick = contact.getUser();
      //still empty then use domain
View Full Code Here

  }
 
  private void sendPresence(JID jid,int status, String message)
  {
    Avatars avatars = getAvatarInterface();
    Presence presence=null;
    if(avatars!=null)
    {
      XExtension e = new nu.fw.jeti.plugins.groupchat.elements.XMUC();
      presence = avatars.addHash(jid,status,message,e);
    }
    else presence = new Presence(jid,status,message,new nu.fw.jeti.plugins.groupchat.elements.XMUC());
    backend.send(presence);
  }
View Full Code Here

  }
 
  private void sendPresence(JID jid,int status, String message)
  {
    Avatars avatars = getAvatarInterface();
    Presence presence=null;
    if(avatars!=null)
    {
      presence = avatars.addHash(jid,status,message,new nu.fw.jeti.plugins.groupchat.elements.XMUC());
    }
    else presence = new Presence(jid,status,message,new nu.fw.jeti.plugins.groupchat.elements.XMUC());
    backend.send(presence);
  }
View Full Code Here

    if(windowStateListener!=null&&groupchatWindow!=null)
    {
      Window w = (Window)groupchatWindow.getTopLevelAncestor();
      if(w!=null)w.removeWindowStateListener(windowStateListener);
    }
    backend.send(new Presence(jid,"unavailable" ));
  }
View Full Code Here

      if (Preferences.getBoolean("jeti", "statusLinked", false)) {
        status = StatusButton.getStatus();
        message = StatusButton.getStatusMessage();
      }
      Avatars avatars = getAvatarInterface();
      Presence presence=null;
    if(avatars!=null)
    {
      presence = avatars.addHash(jid,status,message,new XMUC());
    }
    else presence = new Presence(jid,status,message,new XMUC());
    backend.send(presence);
    }
View Full Code Here

TOP

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

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.