001// License: GPL. For details, see LICENSE file.
002package org.openstreetmap.josm.data.osm.history;
003
004import org.openstreetmap.josm.data.osm.PrimitiveId;
005
006public interface HistoryDataSetListener {
007    /**
008     * Fired by a {@link HistoryDataSet} if the cached history of an OSM primitive with
009     * id <code>id</code> is updated
010     *
011     * @param source the data set firing the event
012     * @param id the id of the updated primitive
013     */
014    void historyUpdated(HistoryDataSet source, PrimitiveId id);
015
016    /**
017     * Fired by a {@link HistoryDataSet} if the history cached is cleared.
018     *
019     * @param source the history data set firing the event
020     */
021    void historyDataSetCleared(HistoryDataSet source);
022}