    001// License: GPL. For details, see LICENSE file.
    002package org.openstreetmap.josm.plugins.streetside.oauth;
    003
    004/**
    005 * This interface should be implemented by components that want to get notified when the user
    006 * logs in or logs out of his Streetside account.
    007 * Such listeners can be registered e.g. at a {@link OAuthPortListener}.
    008 */
    009public interface StreetsideLoginListener {
    010  /**
    011   * Should be called whenever the user logs into a mapillary account.
    012   * E.g. for updating the GUI to reflect the login status.
    013   * @param username the username that the user is now logged in with
    014   */
    015  void onLogin(final String username);
    016  /**
    017   * Should be called whenever the user logs out of a mapillary account.
    018   * E.g. for updating the GUI to reflect the login status.
    019   */
    020  void onLogout();
    021}