mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-28 16:17:28 -04:00
JSON API to check if PGP id is friend
This commit is contained in:
parent
3c6dd1af1c
commit
eca4f8adf7
3 changed files with 20 additions and 6 deletions
|
@ -426,9 +426,16 @@ public:
|
|||
* @param[in] sslId id of the peer to check
|
||||
* @return true if the node is trusted, false otherwise
|
||||
*/
|
||||
virtual bool isFriend(const RsPeerId &sslId) = 0;
|
||||
virtual bool isFriend(const RsPeerId& sslId) = 0;
|
||||
|
||||
/**
|
||||
* @brief Check if given PGP id is trusted
|
||||
* @jsonapi{development}
|
||||
* @param[in] pgpId PGP id to check
|
||||
* @return true if the PGP id is trusted, false otherwise
|
||||
*/
|
||||
virtual bool isPgpFriend(const RsPgpId& pgpId) = 0;
|
||||
|
||||
virtual bool isGPGAccepted(const RsPgpId &gpg_id_is_friend) = 0;
|
||||
virtual std::string getPeerName(const RsPeerId &ssl_id) = 0;
|
||||
virtual std::string getGPGName(const RsPgpId& gpg_id) = 0;
|
||||
|
||||
|
@ -731,6 +738,9 @@ public:
|
|||
virtual bool setPeerMaximumRates(const RsPgpId& pid,uint32_t maxUploadRate,uint32_t maxDownloadRate) =0;
|
||||
virtual bool getPeerMaximumRates(const RsPeerId& pid,uint32_t& maxUploadRate,uint32_t& maxDownloadRate) =0;
|
||||
virtual bool getPeerMaximumRates(const RsPgpId& pid,uint32_t& maxUploadRate,uint32_t& maxDownloadRate) =0;
|
||||
|
||||
RS_DEPRECATED_FOR(isPgpFriend)
|
||||
virtual bool isGPGAccepted(const RsPgpId &gpg_id_is_friend) = 0;
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue