mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
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:
parent
19aa089701
commit
69f48f7d20
@ -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)));
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user