Package jetbrains.communicator.jabber

Examples of jetbrains.communicator.jabber.AccountInfo


    String[] servers = myFacade.getServers();
    for (String server : servers) {
      comboBoxModel.addElement(server);
    }

    AccountInfo account = myFacade.getMyAccount();
    if (account != null) {
      setUsername(account.getUsername());
      setServer(account.getServer());
      setPort(account.getPort());
      setPassword(account.getPassword());
      setForceSSL(account.isForceSSL());
      setRememberPassword(account.shouldRememberPassword());
    }
  }
View Full Code Here


    return mySettings.getAccount();
  }

  public String connect() {
    if (isConnectedAndAuthenticated()) return null;
    AccountInfo info = getMyAccount();
    if (info == null || !info.isLoginAllowed()) return null;
    return connect(info.getUsername(), info.getPassword(), info.getServer(), info.getPort(), info.isForceSSL());
  }
View Full Code Here

    myFacade.saveSettings();

    JabberFacadeImpl loaded = new JabberFacadeImpl(myIDEFacade);

    assertEquals("Should persist AccountInfo",
        new AccountInfo("user", "\u043f\u0440\u0438\u0432\u0435\u0442 \u0442\u0435\u0431\u0435", "jabber.ru", 839).toString(),
        loaded.getMyAccount().toString());
    assertEquals("Password decoded incorrectly",
                 "\u043f\u0440\u0438\u0432\u0435\u0442 \u0442\u0435\u0431\u0435", loaded.getMyAccount().getPassword());
  }
View Full Code Here

TOP

Related Classes of jetbrains.communicator.jabber.AccountInfo

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.