--- /dev/null
+#ifndef _extension_trust_\r
+#define _extension_trust_\r
+\r
+#include "../idatabase.h"\r
+\r
+class TrustExtension:public IDatabase\r
+{\r
+public:\r
+ TrustExtension();\r
+ TrustExtension(const int &localidentityid);\r
+\r
+ void SetLocalIdentityID(const int id) { m_localidentityid=id; }\r
+\r
+ const bool GetMessageTrust(const std::string &nntpname, int &trust);\r
+ const bool GetTrustListTrust(const std::string &nntpname, int &trust);\r
+\r
+ const bool SetMessageTrust(const std::string &nntpname, const int trust);\r
+ const bool SetTrustListTrust(const std::string &nntpname, const int trust);\r
+\r
+ const bool GetTrustList(std::map<std::string,std::pair<int,int> > &trustlist);\r
+\r
+private:\r
+\r
+ const int GetIdentityID(const std::string &nntpname); // return -1 if not found\r
+\r
+ int m_localidentityid;\r
+\r
+};\r
+\r
+#endif // _extension_trust\r