X-Git-Url: http://git.maemo.org/git/?p=speedfreak;a=blobdiff_plain;f=Client%2Fxmlwriter.h;fp=Client%2Fxmlwriter.h;h=ac60175df8c1bb1a43b37d89206a59dbeac1407d;hp=0000000000000000000000000000000000000000;hb=efc4980fa8468a91aceaa1738dcb365bf59770ad;hpb=c4cfd4501489a99f30ade007e4634eb12f272560 diff --git a/Client/xmlwriter.h b/Client/xmlwriter.h new file mode 100644 index 0000000..ac60175 --- /dev/null +++ b/Client/xmlwriter.h @@ -0,0 +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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + +class XmlWriter : public QObject { + Q_OBJECT +public: + XmlWriter(); + ~XmlWriter(); + +private: + QXmlStreamWriter xmlwriter; + +public slots: + 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(); +}; + +#endif // XMLWRITER_H +