X-Git-Url: http://git.maemo.org/git/?p=speedfreak;a=blobdiff_plain;f=Client%2Fxmlwriter.h;h=ac60175df8c1bb1a43b37d89206a59dbeac1407d;hp=34bf2843e400398bad1c535e35033245a0e92725;hb=74a1541fc05869163401c4885da4445c8940c822;hpb=c68f0fbb1f1163e51079e6829aa640ddbc81ac15 diff --git a/Client/xmlwriter.h b/Client/xmlwriter.h index 34bf284..ac60175 100644 --- a/Client/xmlwriter.h +++ b/Client/xmlwriter.h @@ -29,33 +29,18 @@ class XmlWriter : public QObject { public: XmlWriter(); ~XmlWriter(); - int tmpvalue; - typedef struct { - double time; - double latitude; - double longitude; - double altitude; - double speed; - double track; - } gpsPoint; - gpsPoint trackTable[100]; - gpsPoint analyzeTable[100]; - int trackInd; 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(); void writeItems(); - void serverWritesXml(); - void writeGpsTrack(int startInd, int stopInd); - void initPointTable(gpsPoint *table, int count, double add1, int add2, int add3); - void analyzeGpsData(); }; #endif // XMLWRITER_H