version 0.3.2
[fms.git] / include / freenet / fmsversionxml.h
diff --git a/include/freenet/fmsversionxml.h b/include/freenet/fmsversionxml.h
new file mode 100644 (file)
index 0000000..5219bb0
--- /dev/null
@@ -0,0 +1,36 @@
+#ifndef _fmsversionxml_\r
+#define _fmsversionxml_\r
+\r
+#include "../ifmsxmldocument.h"\r
+\r
+class FMSVersionXML:public IFMSXMLDocument\r
+{\r
+public:\r
+       FMSVersionXML();\r
+\r
+       std::string GetXML();\r
+\r
+       const bool ParseXML(const std::string &xml);\r
+\r
+       const int GetMajor()                            { return m_major; }\r
+       const int GetMinor()                            { return m_minor; }\r
+       const int GetRelease()                          { return m_release; }\r
+       const std::string GetNotes()            { return m_notes; }\r
+       const std::string GetChanges()          { return m_changes; }\r
+       const std::string GetPageKey()          { return m_pagekey; }\r
+       const std::string GetSourceKey()        { return m_sourcekey; }\r
+\r
+private:\r
+       void Initialize();\r
+\r
+       int m_major;\r
+       int m_minor;\r
+       int m_release;\r
+       std::string m_notes;\r
+       std::string m_changes;\r
+       std::string m_pagekey;\r
+       std::string m_sourcekey;\r
+\r
+};\r
+\r
+#endif // _fmsversionxml_\r