X-Git-Url: http://git.maemo.org/git/?p=speedfreak;a=blobdiff_plain;f=Client%2Fxmlwriter.h;h=ac60175df8c1bb1a43b37d89206a59dbeac1407d;hp=8f7ccda24c98d858f1d8248fd98631bfc98e4789;hb=74a1541fc05869163401c4885da4445c8940c822;hpb=eae981fe277e602eebf11259670f3c164d825418 diff --git a/Client/xmlwriter.h b/Client/xmlwriter.h index 8f7ccda..ac60175 100644 --- a/Client/xmlwriter.h +++ b/Client/xmlwriter.h @@ -1,27 +1,47 @@ +/* + * Xml writer + * + * @author Tiina Kivilinna-Korhola + * @copyright (c) 2010 Speed Freak team + * license http://opensource.org/licenses/gpl-license.php GNU Public License + */ + #ifndef XMLWRITER_H #define XMLWRITER_H -#include "ui_mainwindow.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include -class XmlWriter : public QObject -{ +class XmlWriter : public QObject { + Q_OBJECT public: - XmlWriter(Ui_MainWindow* myMainWindow); + XmlWriter(); ~XmlWriter(); private: QXmlStreamWriter xmlwriter; - QMap resultmap; - Ui_MainWindow* ui; public slots: - bool writeXmlFile(QIODevice* device); + void writeRegistering(QBuffer *netbuf, QString usr, QString psswd, QString email); + 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(); void writeItems(); - void initResultmap(); - void fillResultmap(); - void xmlWrite(); - }; #endif // XMLWRITER_H +