mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-27 07:41:08 -04:00
add implementation for priority download queue
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1432 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
dacdc90c4b
commit
c7ecf8c46d
8 changed files with 438 additions and 5 deletions
|
@ -68,6 +68,8 @@ class ftFileSearch;
|
|||
class ftDataMultiplex;
|
||||
class p3turtle;
|
||||
|
||||
class ftDwlQueue;
|
||||
|
||||
class ftServer: public RsFiles, public ftDataSend, public RsThread
|
||||
{
|
||||
|
||||
|
@ -120,6 +122,14 @@ virtual bool FileCancel(std::string hash);
|
|||
virtual bool FileControl(std::string hash, uint32_t flags);
|
||||
virtual bool FileClearCompleted();
|
||||
|
||||
/***
|
||||
* Control of Downloads Priority.
|
||||
***/
|
||||
virtual bool changePriority(const std::string hash, int priority);
|
||||
virtual bool getPriority(const std::string hash, int & priority);
|
||||
virtual bool clearDownload(const std::string hash);
|
||||
virtual void clearQueue();
|
||||
|
||||
/***
|
||||
* Download/Upload Details
|
||||
***/
|
||||
|
@ -242,6 +252,8 @@ bool loadConfigMap(std::map<std::string, std::string> &configMap);
|
|||
|
||||
ftFileSearch *mFtSearch;
|
||||
|
||||
ftDwlQueue *mFtDwlQueue;
|
||||
|
||||
RsMutex srvMutex;
|
||||
std::string mConfigPath;
|
||||
std::string mDownloadPath;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue