Interface DownloadSource<T>

  • Type Parameters:
    T - The type of the data that a download source uses.
    All Known Implementing Classes:
    OSMDownloadSource, OverpassDownloadSource

    public interface DownloadSource<T>
    Defines an interface for different download sources.

    Plugins may implement this to provide new download sources to the main download dialog.

    Since:
    12652
    • Method Detail

      • doDownload

        void doDownload​(T data,
                        DownloadSettings settings)
        Downloads the data.
        Parameters:
        data - The required data for the download source.
        settings - The global settings of the download dialog, see DownloadDialog.
      • getLabel

        java.lang.String getLabel()
        Returns a string representation of this download source.
        Returns:
        A string representation of this download source.
      • onlyExpert

        boolean onlyExpert()
        Defines whether this download source should be visible only in the expert mode.
        Returns:
        Returns true if the download source should be visible only in the expert mode, false otherwise.