Merge branch 'last-working' into next
[Sone.git] / src / main / java / net / pterodactylus / sone / core / SoneDownloader.java
1 package net.pterodactylus.sone.core;
2
3 import net.pterodactylus.sone.data.Sone;
4 import net.pterodactylus.util.service.Service;
5
6 import freenet.keys.FreenetURI;
7
8 /**
9  * Downloads and parses Sone and {@link Core#updateSone(Sone) updates the
10  * core}.
11  *
12  * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
13  */
14 public interface SoneDownloader extends Service {
15
16         void addSone(Sone sone);
17         void fetchSone(Sone sone, FreenetURI soneUri);
18         Sone fetchSone(Sone sone, FreenetURI soneUri, boolean fetchOnly);
19
20         Runnable fetchSoneWithUriAction(Sone sone);
21         Runnable fetchSoneAction(Sone sone);
22
23 }