From 69f48f7d2087aca504232bed0db5669ebae44c05 Mon Sep 17 00:00:00 2001 From: csoler Date: Tue, 23 Dec 2008 16:25:32 +0000 Subject: [PATCH] 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 --- retroshare-gui/src/gui/NetworkDialog.cpp | 7 ++++++- retroshare-gui/src/rsiface/rspeers.h | 3 +++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/retroshare-gui/src/gui/NetworkDialog.cpp b/retroshare-gui/src/gui/NetworkDialog.cpp index 361a23e0d..cccb518a0 100644 --- a/retroshare-gui/src/gui/NetworkDialog.cpp +++ b/retroshare-gui/src/gui/NetworkDialog.cpp @@ -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))); diff --git a/retroshare-gui/src/rsiface/rspeers.h b/retroshare-gui/src/rsiface/rspeers.h index a92717f57..7807d6bda 100644 --- a/retroshare-gui/src/rsiface/rspeers.h +++ b/retroshare-gui/src/rsiface/rspeers.h @@ -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;