    001// License: GPL. For details, see LICENSE file.
    002package org.openstreetmap.josm.plugins.streetside;
    003
    004/**
    005 * Interface for listeners of the class {@link StreetsideData}.
    006 *
    007 * @author nokutu
    008 *
    009 */
    010public interface StreetsideDataListener {
    011
    012  /**
    013   * Fired when any image is added to the database.
    014   */
    015  void imagesAdded();
    016
    017  /**
    018   * Fired when the selected image is changed by something different from
    019   * manually clicking on the icon.
    020   *
    021   * @param oldImage
    022   *          Old selected {@link StreetsideAbstractImage}
    023   * @param newImage
    024   *          New selected {@link StreetsideAbstractImage}
    025   */
    026  void selectedImageChanged(StreetsideAbstractImage oldImage,
    027      StreetsideAbstractImage newImage);
    028}