mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 06:06:10 -04:00
Finished off the basic Link Ranking system.
* added serialiser types. * finished streaming on p3ranking. * removed Bandwidth limitations from BinFile / BinMem. * added bytecount() to BinInterface. * moved the CacheTransfer creation to Startup. * added ranking to CacheStrapper & server tick() system. * Tweaked LinksDialog for final touches. * enabled downloads from Messages. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@335 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
925b1a780e
commit
2c69fd7eaf
19 changed files with 744 additions and 112 deletions
|
@ -495,13 +495,38 @@ void LinksDialog::updateComments(std::string rid, std::string pid)
|
|||
ui.titleLineEdit->setText(QString::fromStdWString(detail.title));
|
||||
ui.linkLineEdit->setText(QString::fromStdWString(detail.link));
|
||||
|
||||
if (mLinkId != rid)
|
||||
if (mLinkId == rid)
|
||||
{
|
||||
/* clean comments */
|
||||
ui.linkTextEdit->setText("");
|
||||
/* leave comments */
|
||||
//ui.linkTextEdit->setText("");
|
||||
return;
|
||||
}
|
||||
|
||||
mLinkId = rid;
|
||||
|
||||
/* Add your text to the comment */
|
||||
std::string ownId = rsPeers->getOwnId();
|
||||
|
||||
for(cit = detail.comments.begin(); cit != detail.comments.end(); cit++)
|
||||
{
|
||||
if (cit->id == ownId)
|
||||
break;
|
||||
}
|
||||
|
||||
if (cit != detail.comments.end())
|
||||
{
|
||||
QString comment = QString::fromStdWString(cit->comment);
|
||||
ui.linkTextEdit->setText(comment);
|
||||
}
|
||||
else
|
||||
{
|
||||
ui.linkTextEdit->setText("");
|
||||
|
||||
}
|
||||
|
||||
return;
|
||||
|
||||
|
||||
#if 0
|
||||
|
||||
for(cit = detail.comments.begin(); cit != detail.comments.end(); cit++)
|
||||
|
@ -584,6 +609,9 @@ void LinksDialog::addLinkComment( void )
|
|||
link.toStdWString(),
|
||||
title.toStdWString(),
|
||||
comment.toStdWString());
|
||||
|
||||
updateLinks();
|
||||
return;
|
||||
}
|
||||
|
||||
/* get existing details */
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
#include "gui/toaster/MessageToaster.h"
|
||||
|
||||
|
||||
#include "rsiface/rsiface.h"
|
||||
#include "rsiface/rspeers.h"
|
||||
#include "rsiface/rsmsgs.h"
|
||||
#include <sstream>
|
||||
|
@ -260,7 +261,7 @@ void MessagesDialog::getallrecommended()
|
|||
for(fit = fnames.begin(), hit = hashes.begin(), sit = sizes.begin();
|
||||
fit != fnames.end(); fit++, hit++, sit++)
|
||||
{
|
||||
//rsicontrol -> FileRequest(*fit, *hit, *sit, "");
|
||||
rsicontrol -> FileRequest(*fit, *hit, *sit, "");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue