Add pause and unpause functions for aria2

This functions enable to stop and resume download with aria2.

The Downloader's constructor now checks the paused downloads with the
function "tellWaiting()" to get them at the start of kiwix-desktop.
This commit is contained in:
luddens
2019-04-29 11:25:35 +02:00
committed by Matthieu Gautier
parent 12ffad55f7
commit ec8f1ffe9c
4 changed files with 69 additions and 2 deletions

View File

@ -54,6 +54,8 @@ class Download {
m_status(K_UNKNOWN),
m_did(did) {};
void updateStatus(bool follow=false);
void pauseDownload();
void resumeDownload();
StatusResult getStatus() { return m_status; }
std::string getDid() { return m_did; }
std::string getFollowedBy() { return m_followedBy; }