Package nu.fw.jeti.plugins

Examples of nu.fw.jeti.plugins.Avatars


            int len = (int)file.length();
            byte[] buf = new byte[len];
            is.read(buf);
      if(PluginsInfo.isPluginLoaded("ichatavatars"))
      {
        Avatars a = (Avatars)PluginsInfo.getPluginInstance("ichatavatars");
        a.updateAvatar(buf);
      }
          encoded = Base64.encodeBytes(buf,Base64.DONT_BREAK_LINES );
          is.close();
      }catch(IOException e)
      {
View Full Code Here


    return null;
  }
 
  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

    return null;
  }
 
  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

  }
 
  private synchronized void setIcon(JID from)
  {
    icon.setIcon(null);
    Avatars avatar = getAvatar();
    if(avatar!=null)
    {
      JIDStatus jidStatus = Backend.getJIDStatus(from);
      if(jidStatus!=null)
      {
View Full Code Here

      String message=null;
      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.plugins.Avatars

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.