X-Git-Url: http://git.maemo.org/git/?p=speedfreak;a=blobdiff_plain;f=Client%2Fxmlwriter.h;h=0d20d4b88e1480592736bfff236828afd4430c18;hp=89a6ad0e9294adfe3f81e38b82a52ed630b9f247;hb=5ac973618d3c80886f2fb3c7c74b97a1143d999b;hpb=b5f6266e93bf1e41bfa6ad097a6fa8d8f96a2146 diff --git a/Client/xmlwriter.h b/Client/xmlwriter.h index 89a6ad0..0d20d4b 100644 --- a/Client/xmlwriter.h +++ b/Client/xmlwriter.h @@ -2,6 +2,7 @@ * Xml writer * * @author Tiina Kivilinna-Korhola + * @author Toni Jussila * @copyright (c) 2010 Speed Freak team * license http://opensource.org/licenses/gpl-license.php GNU Public License */ @@ -23,26 +24,27 @@ #include #include - -class XmlWriter : public QObject -{ +class XmlWriter : public QObject { + Q_OBJECT public: XmlWriter(); ~XmlWriter(); - int tmpvalue; + void writeProfileXmlFile(QIODevice *device, QString userName, QString manufacturer, QString type, QString model, QString description, QString picture); + void writeProfileXmlFile(QBuffer *netbuf, QString userName, QString manufacturer, QString type, QString model, QString description, QString picture); private: QXmlStreamWriter xmlwriter; public slots: - void writeRegistering(QBuffer *netbuf, QString usr, QString psswd, QString email); - void writeResult(QBuffer *netbuf); + void writeRegistering(QBuffer *netbuf, QString usr, QString psswd, QString email, QString description); + 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 serverWritesXml(); }; #endif // XMLWRITER_H +