mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-06 08:05:18 -04:00
add a downloading queue in ftControl,max 2 files can be download at same time
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@933 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
812cdd6bd6
commit
0654836a3d
2 changed files with 47 additions and 10 deletions
|
@ -62,6 +62,8 @@ const uint32_t CB_CODE_MEDIA = 0x0004;
|
|||
|
||||
const uint32_t FC_TRANSFER_COMPLETE = 0x0001;
|
||||
|
||||
const uint32_t MAX_NUMBER_OF_DOWNLOADING_FILE = 0x0002; //will be controller by user later
|
||||
|
||||
class ftFileControl
|
||||
{
|
||||
public:
|
||||
|
@ -190,7 +192,8 @@ bool setPeerState(ftTransferModule *tm, std::string id,
|
|||
std::map<std::string, ftFileControl> mCompleted;
|
||||
|
||||
|
||||
std::map<std::string, ftFileControl> mDownloads;
|
||||
std::map<std::string, ftFileControl> mDownloads; //include downloading and pending downloading
|
||||
std::list<std::string> mDownloadingQueue; //only include downloading file hashs
|
||||
|
||||
//std::map<std::string, ftTransferModule *> mTransfers;
|
||||
//std::map<std::string, ftFileCreator *> mFileCreators;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue