version 0.2.10
[fms.git] / include / freenet / identityxml.h
1 #ifndef _identityxml_\r
2 #define _identityxml_\r
3 \r
4 #include "../ifmsxmldocument.h"\r
5 \r
6 class IdentityXML:public IFMSXMLDocument\r
7 {\r
8 public:\r
9 \r
10         IdentityXML();\r
11 \r
12         std::string GetXML();\r
13         const bool ParseXML(const std::string &xml);\r
14 \r
15         const std::string GetName()                                             { return m_name; }\r
16         void SetName(const std::string &name)                   { m_name=name; }\r
17 \r
18         const bool GetPublishTrustList()                                { return m_publishtrustlist; }\r
19         void SetPublishTrustList(const bool publish)    { m_publishtrustlist=publish; }\r
20 \r
21         const bool GetPublishBoardList()                                { return m_publishboardlist; }\r
22         void SetPublishBoardList(const bool publish)    { m_publishboardlist=publish; }\r
23 \r
24         const bool GetSingleUse()                                               { return m_singleuse; }\r
25         void SetSingleUse(const bool singleuse)                 { m_singleuse=singleuse; }\r
26 \r
27         const int GetFreesiteEdition()                                  { return m_freesiteedition; }\r
28         void SetFreesiteEdition(const int edition)              { m_freesiteedition=edition; }\r
29 \r
30 private:\r
31         void Initialize();\r
32 \r
33         std::string m_name;\r
34         bool m_publishtrustlist;\r
35         bool m_publishboardlist;\r
36         bool m_singleuse;\r
37         int m_freesiteedition;\r
38 \r
39 };\r
40 \r
41 #endif  // _identityxml_\r