roll back to 725

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@727 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
ewensun 2008-09-11 10:33:43 +00:00
parent e8d21abdd5
commit cc41cbb708
2 changed files with 11 additions and 7 deletions

View file

@ -57,6 +57,8 @@ class ftFileControl
{
public:
enum {DOWNLOADING,COMPLETED};
ftFileControl();
ftFileControl(std::string fname, uint64_t size, std::string hash,
uint32_t flags, ftFileCreator *fc, ftTransferModule *tm);
@ -93,6 +95,7 @@ bool FileRequest(std::string fname, std::string hash,
bool FileCancel(std::string hash);
bool FileControl(std::string hash, uint32_t flags);
bool FileClearCompleted();
bool completeFile(std::string hash);
/* get Details of File Transfers */
bool FileDownloads(std::list<std::string> &hashs);
@ -132,7 +135,7 @@ virtual bool loadList(std::list<RsItem *> load);
/* RunTime Functions */
void checkDownloadQueue();
bool completeFile(std::string hash);
//bool completeFile(std::string hash);
/* pointers to other components */
@ -142,7 +145,7 @@ bool completeFile(std::string hash);
RsMutex ctrlMutex;
std::list<FileInfo> incomingQueue;
std::map<std::string, FileInfo> mCompleted;
std::map<std::string, ftFileControl> mCompleted;
std::map<std::string, ftFileControl> mDownloads;