version 0.2.2
[fms.git] / include / freenet / trustlistxml.h
index ac16d1f..7d08616 100644 (file)
@@ -12,10 +12,12 @@ class TrustListXML:public IFMSXMLDocument,public ILogger
 private:\r
        struct trust\r
        {\r
-               trust(const std::string &identity, const long messagetrust, const long trustlisttrust):m_identity(identity),m_messagetrust(messagetrust),m_trustlisttrust(trustlisttrust) {}\r
+               trust(const std::string &identity, const long messagetrust, const long trustlisttrust, const std::string &messagetrustcomment, const std::string &trustlisttrustcomment):m_identity(identity),m_messagetrust(messagetrust),m_trustlisttrust(trustlisttrust),m_messagetrustcomment(messagetrustcomment),m_trustlisttrustcomment(trustlisttrustcomment) {}\r
                std::string m_identity;\r
                long m_messagetrust;\r
                long m_trustlisttrust;\r
+               std::string m_messagetrustcomment;\r
+               std::string m_trustlisttrustcomment;\r
        };\r
 public:\r
        TrustListXML();\r
@@ -26,12 +28,14 @@ public:
 \r
        void ClearTrust()                       { m_trust.clear(); }\r
 \r
-       void AddTrust(const std::string &identity, const long messagetrust, const long trustlisttrust);\r
+       void AddTrust(const std::string &identity, const long messagetrust, const long trustlisttrust, const std::string &messagetrustcomment, const std::string &trustlisttrustcomment);\r
 \r
        const std::vector<trust>::size_type TrustCount()                { return m_trust.size(); }\r
        std::string GetIdentity(const long index);\r
        long GetMessageTrust(const long index);\r
        long GetTrustListTrust(const long index);\r
+       std::string GetMessageTrustComment(const long index);\r
+       std::string GetTrustListTrustComment(const long index);\r
 \r
 private:\r
        void Initialize();\r