Youtube video and text (draft).
[speedfreak] / Client / xmlwriter.h
index 539ccab..ac60175 100644 (file)
 #include <QApplication>
 
 
-class XmlWriter : public QObject
-{
+class XmlWriter : public QObject {
+    Q_OBJECT
 public:
     XmlWriter();
     ~XmlWriter();
-    int tmpvalue;
 
 private:
     QXmlStreamWriter xmlwriter;
 
 public slots:
     void writeRegistering(QBuffer *netbuf, QString usr, QString psswd, QString email);
-    void writeResult(QBuffer *netbuf);
+    void writeResult(QBuffer *netbuf, double result);
+    void writeGpsTrack(QBuffer *netbuf, int counter, int start, int stop, int lat, int lon, int alt, int speed, int time);
     bool writeXmlFile(QIODevice *device);
-    void writeXml(QString usr, QString psswd, QString email);
+    //void writeXml(QString usr, QString psswd, QString email);
+    void writeXml();
     void writeItems();
-    void serverWritesTop();
-
 };
 
 #endif // XMLWRITER_H
+