Embedded GigaGet download manager. First try.
This commit is contained in:
parent
f08b1224c9
commit
4bae12aa55
58 changed files with 3121 additions and 40 deletions
14
app/src/main/java/us/shandian/giga/get/DownloadManager.java
Normal file
14
app/src/main/java/us/shandian/giga/get/DownloadManager.java
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
package us.shandian.giga.get;
|
||||
|
||||
public interface DownloadManager
|
||||
{
|
||||
public static final int BLOCK_SIZE = 512 * 1024;
|
||||
|
||||
public int startMission(String url, String name, int threads);
|
||||
public void resumeMission(int id);
|
||||
public void pauseMission(int id);
|
||||
public void deleteMission(int id);
|
||||
public DownloadMission getMission(int id);
|
||||
public int getCount();
|
||||
public String getLocation();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue