Added the infrastructure for propagating trust info through third parties, and little interface to be able to see it.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@893 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2008-12-23 16:25:32 +00:00
parent 19aa089701
commit 69f48f7d20
2 changed files with 9 additions and 1 deletions

View File

@ -369,7 +369,12 @@ void NetworkDialog::insertConnect()
}
else
{
if (detail.trustLvl > RS_TRUST_LVL_MARGINAL)
if (rsPeers->isTrustingMe(detail.id))
{
backgrndcolor=Qt::magenta;
item -> setIcon(0,(QIcon(IMAGE_DENIED)));
}
else if (detail.trustLvl > RS_TRUST_LVL_MARGINAL)
{
backgrndcolor=Qt::cyan;
item -> setIcon(0,(QIcon(IMAGE_DENIED)));

View File

@ -134,6 +134,9 @@ virtual bool getPeerDetails(std::string id, RsPeerDetails &d) = 0;
virtual bool addFriend(std::string id) = 0;
virtual bool removeFriend(std::string id) = 0;
/* get/set third party info about who trusts me */
virtual bool isTrustingMe(std::string id) const = 0 ;
/* Network Stuff */
virtual bool connectAttempt(std::string id) = 0;
virtual bool setLocalAddress(std::string id, std::string addr, uint16_t port) = 0;