version 0.1.11
[fms.git] / include / freenet / boardlistxml.h
1 #ifndef _boardlistxml_\r
2 #define _boardlistxml_\r
3 \r
4 #include "../ifmsxmldocument.h"\r
5 \r
6 class BoardListXML:public IFMSXMLDocument\r
7 {\r
8 public:\r
9         BoardListXML();\r
10 \r
11         std::string GetXML();\r
12 \r
13         const bool ParseXML(const std::string &xml);\r
14 \r
15         void AddBoard(const std::string &name, const std::string &description);\r
16         const long GetCount()           { return m_boards.size(); }\r
17         const std::string GetName(const long index);\r
18         const std::string GetDescription(const long index);\r
19 \r
20 private:\r
21         struct board\r
22         {\r
23                 board(const std::string &name, const std::string &description):m_name(name),m_description(description)  {}\r
24                 std::string m_name;\r
25                 std::string m_description;\r
26         };\r
27 \r
28         void Initialize();\r
29 \r
30         std::vector<board> m_boards;\r
31         \r
32 };\r
33 \r
34 #endif  // _boardlistxml_\r