Added new feed item when a wrong external ip address is reported.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8350 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2015-06-03 12:38:23 +00:00
parent e8c60816cf
commit 22a7d2eeeb
8 changed files with 150 additions and 55 deletions

View file

@ -39,15 +39,19 @@ class SecurityIpItem : public FeedItem
public:
/** Default Constructor */
SecurityIpItem(FeedHolder *parent, const RsPeerId &sslId, const std::string& ipAddr, uint32_t result, bool isTest);
SecurityIpItem(FeedHolder *parent, const RsPeerId &sslId, const std::string& ipAddr, uint32_t result, uint32_t type, bool isTest);
SecurityIpItem(FeedHolder *parent, const RsPeerId &sslId, const std::string& ipAddr, const std::string& ipAddrReported, uint32_t type, bool isTest);
void updateItemStatic();
bool isSame(const RsPeerId &sslId);
bool isSame(const RsPeerId &sslId, uint32_t type);
/* FeedItem */
virtual void expand(bool open);
private:
void setup();
private slots:
/* default stuff */
void removeItem();
@ -59,8 +63,10 @@ private:
FeedHolder *mParent;
uint32_t mFeedId;
uint32_t mType;
RsPeerId mSslId;
std::string mIPAddr;
std::string mIpAddr;
std::string mIpAddrReported;
uint32_t mResult;
bool mIsTest;