Package nu.fw.jeti.events

Examples of nu.fw.jeti.events.StatusChangeListener


               
        secureMethodInvoker = new SecureMethodRunner(backend);
        secureMethodInvoker.start();
        backend.addExtensionHandler("jeti:prefs",new PreferencesHandler());
        try {
        backend.addListener(StatusChangeListener.class,new StatusChangeListener()
        {
          public void connectionChanged(boolean online)
          {//get preferences
            System.out.println("get pref");
            if(online)
View Full Code Here


        this.mapPath = mapPath;
        this.backend = backend;
     
       
        backend.addListener(PresenceListener.class, this);
        backend.addListener(StatusChangeListener.class, new StatusChangeListener()
    {
      /* (non-Javadoc)
       * @see nu.fw.jeti.events.StatusChangeListener#connectionChanged(boolean)
       */
      public void connectionChanged(boolean online)
View Full Code Here

    },0);
  }
 
  public static void initProxies(final Backend backend)
  {
    backend.addListener(StatusChangeListener.class,new StatusChangeListener()
    {
      public void connectionChanged(boolean online)
      {
        String proxy = Preferences.getString("filetransfer", "proxy", null);
        if(proxy!=null) getProxyInfo(backend,new JID(proxy));
View Full Code Here

    public JingleManager(final Backend connection, JingleTransportManager jingleTransportManager, JingleMediaManager jingleMediaManager) {
        this.connection = connection;
        this.jingleTransportManager = jingleTransportManager;
        this.jingleMediaManager = jingleMediaManager;

        connection.addListener(StatusChangeListener.class, new StatusChangeListener() {

            public void exit() {
            }

            public void ownPresenceChanged(int show, String status) {
View Full Code Here

     *
     * @param connection The connection to set up
     */
    private void installConnectionListeners(final Backend connection) {
        if (connection != null) {
            connection.addListener(StatusChangeListener.class, new StatusChangeListener() {
                public void connectionChanged(boolean online) {
                    if(!online) unregisterInstanceFor(connection);
                }
               
                public void ownPresenceChanged(int status,String show) {}
View Full Code Here

TOP

Related Classes of nu.fw.jeti.events.StatusChangeListener

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.