Updated interface files.

Added SrcIds to FileRequests().



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@699 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
drbob 2008-08-17 16:14:03 +00:00
parent eb8dacc798
commit f9b22cc5d2
6 changed files with 31 additions and 16 deletions

View file

@ -152,11 +152,12 @@ RemoteDirModel::RemoteDirModel(bool mode, QObject *parent)
return QVariant();
}
#if 0
/*if (role == Qt::BackgroundRole)
{*/
/*** colour entries based on rank/age/count **/
/*** rank (0-10) ***/
/*uint32_t r = details.rank;
/ *uint32_t r = details.rank;
if (r > 10) r = 10;
r = 200 + r * 5; /* 0->250 */
@ -225,6 +226,7 @@ RemoteDirModel::RemoteDirModel(bool mode, QObject *parent)
return QVariant();
}
}*/
#endif
if (role == Qt::DecorationRole)
{
@ -694,8 +696,10 @@ void RemoteDirModel::downloadSelected(QModelIndexList list)
{
std::cerr << "RemoteDirModel::downloadSelected() Calling File Request";
std::cerr << std::endl;
std::list<std::string> srcIds;
srcIds.push_back(details.id);
rsFiles -> FileRequest(details.name, details.hash,
details.count, "", 0);
details.count, "", 0, srcIds);
}
}
}