Package nu.fw.jeti.plugins

Examples of nu.fw.jeti.plugins.Avatars


 
  public void connected()
  {
    sendLoginMessage(I18N.gettext("main.loginstatus.Logged_in"));
    sendStatus();
    Avatars avatars = getAvatarInterface();
    if(avatars!=null)
    {
      avatars.getVCard(this);
    }
    send(new InfoQuery("get",new IQPrivate(new JetiPrivateRosterExtension())));
    for(Iterator<JETIListener> j =backend.getListeners(nu.fw.jeti.events.StatusChangeListener.class);j.hasNext();)
    {//online
      ((nu.fw.jeti.events.StatusChangeListener)j.next()).connectionChanged(true);
View Full Code Here


    {
      PresenceBuilder pb = new PresenceBuilder();
      pb.show = show;
      pb.status = status;
      pb.priority = loginInfo.getPriority();
      Avatars avatars = getAvatarInterface();
      //pb.addExtension(capabilities.getCaps());
      if(avatars!=null)
      {
        pb.addExtension(avatars.addHash());
      }
      if(show!=Presence.UNAVAILABLE && openPGP!=null)
      {
        pb.addExtension(openPGP.signPresence(status));
      }
View Full Code Here

                backend.disconnect();
            } 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

  {
    online = presence.getType().equals("available");
    show = presence.getShow();
    status = presence.getStatus();
    completeJID = presence.getFrom();
    Avatars avatars = getAvatarInterface();
    if(avatars!=null)
    {
      if(!presence.hasExtensions())return;
      avatars.update(presence,this);
    }
  }
View Full Code Here

        String nick = Preferences.getString("autoloadgroupchat", "nick", "");
        if(nick.equals("")) nick = backend.getMyJID().getUser() + "-" + Locale.getDefault().getCountry();
        //System.out.println(nick);
        final JID jid = new JID(Preferences.getString("autoloadgroupchat", "room", "room"),Preferences.getString("autoloadgroupchat", "server", "groupchatserver"),nick);
        nu.fw.jeti.plugins.groupchat.Plugin.startGroupchat(jid,backend);
        Avatars avatars = null;
        if(PluginsInfo.isPluginLoaded("ichatavatars"))
      {
        avatars = (Avatars)PluginsInfo.getPluginInstance("ichatavatars");
      }
        if(avatars!=null)
        {
          final Avatars avatar = avatars;
        Timer t = new Timer();
        t.schedule(new TimerTask() {
          public void run() {
           int status =Presence.AVAILABLE;
              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

      else if (o instanceof JIDStatus) {
        jidStatus = ((JIDStatus) o);
      } else {
                return null;
            }
      Avatars avatars = getAvatar();
      if(avatars!=null) avatars.setToolTipJIDStatus(jidStatus);
      String statusMsg;
            if (jidStatus.getStatus() != null) {
                statusMsg =
                    I18N.gettext("main.main.statusmenu.Status_message")
                    + " " + jidStatus.getStatus() + "</p><p>";
View Full Code Here

    return null;
  }
 
  public JToolTip createToolTip()
  {
    Avatars avatars = getAvatar();
    if(avatars!=null) return avatars.createToolTip();
    return super.createToolTip();
  }
View Full Code Here

      return new ImageIcon(image);
    }

    private String getToolTipText(Actor actor)
    {
      Avatars avatars = getAvatar();
      if(avatars!=null) avatars.setToolTipJIDStatus(actor);
          // XXX
          String tip = "<HTML><P> Status: "+Presence.toLongShow(actor.getShow());
          if (actor.getStatus() != null) {
              tip += "</p><p> Status Message: " + actor.getStatus();
          }
View Full Code Here

    model = new MyListModel();
        lstActors = new JList(model)
        {
          public JToolTip createToolTip()
      {
        Avatars avatars = getAvatar();
        if(avatars!=null) return avatars.createToolTip();
        return super.createToolTip();
      }

        };
        lstActors.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
View Full Code Here

    else tempBusiness.put("LOGO",business.get("LOGO"));
   
    backend.send(new InfoQuery("set",new VCard(tempPersonal,tempBusiness,null,null)));
    if(PluginsInfo.isPluginLoaded("ichatavatars"))
    {
      Avatars a = (Avatars)PluginsInfo.getPluginInstance("ichatavatars");
      a.sendPresence();
    }
    dispose();
  }
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.