version 0.0.1
[fms.git] / include / freenet / introductionpuzzlexml.h
1 #ifndef _introductionpuzzlexml_\r
2 #define _introductionpuzzlexml_\r
3 \r
4 #include "../ifmsxmldocument.h"\r
5 \r
6 class IntroductionPuzzleXML:public IFMSXMLDocument\r
7 {\r
8 public:\r
9         IntroductionPuzzleXML();\r
10 \r
11         std::string GetXML();\r
12 \r
13         const bool ParseXML(const std::string &xml);\r
14 \r
15         void SetType(const std::string &type)           { m_type=type; }\r
16         void SetUUID(const std::string &uuid)           { m_uuid=uuid; }\r
17         void SetPuzzleData(const std::string &puzzledata)       { m_puzzledata=puzzledata; }\r
18         void SetMimeType(const std::string &mimetype)           { m_mimetype=mimetype; }\r
19 \r
20         const std::string GetType() const                       { return m_type; }\r
21         const std::string GetUUID() const                       { return m_uuid; }\r
22         const std::string GetPuzzleData() const         { return m_puzzledata; }\r
23         const std::string GetMimeType() const           { return m_mimetype; }\r
24 \r
25 private:\r
26         void Initialize();\r
27 \r
28         std::string m_type;\r
29         std::string m_uuid;\r
30         std::string m_puzzledata;\r
31         std::string m_mimetype;\r
32         \r
33 };\r
34 \r
35 #endif  // _introductionpuzzlexml_\r