XML handler.
[speedfreak] / Client / xmlwriter.h
diff --git a/Client/xmlwriter.h b/Client/xmlwriter.h
new file mode 100644 (file)
index 0000000..8f7ccda
--- /dev/null
@@ -0,0 +1,27 @@
+#ifndef XMLWRITER_H
+#define XMLWRITER_H
+
+#include "ui_mainwindow.h"
+
+
+class XmlWriter : public QObject
+{
+public:
+    XmlWriter(Ui_MainWindow* myMainWindow);
+    ~XmlWriter();
+
+private:
+    QXmlStreamWriter xmlwriter;
+    QMap<QString, int> resultmap;
+    Ui_MainWindow* ui;
+
+public slots:
+    bool writeXmlFile(QIODevice* device);
+    void writeItems();
+    void initResultmap();
+    void fillResultmap();
+    void xmlWrite();
+
+};
+
+#endif // XMLWRITER_H