X-Git-Url: http://git.maemo.org/git/?p=speedfreak;a=blobdiff_plain;f=Client%2Fgpsdata.cpp;h=250728a6ba948ea81b1cd7f50cbf3c233945575b;hp=3879b54c7f635b06f614cb21e3c4e3ba3fb65c7e;hb=e540ab0821aef2b3c3a3e3d87f96b46eb6877090;hpb=135c535eafa1d10fc76a503efd912ecee78e955e diff --git a/Client/gpsdata.cpp b/Client/gpsdata.cpp index 3879b54..250728a 100644 --- a/Client/gpsdata.cpp +++ b/Client/gpsdata.cpp @@ -107,7 +107,7 @@ void GPSData::agnss() speed = location->getSpeed(); //Returns current speed in km/h. track = location->getTrack(); //Returns direction of motion in degrees(0-359). - QFile routeTempFile(".//speedfreak_route/routetemp.xml");//Temp xml. + QFile routeTempFile("/home/user/MyDocs/speedfreak/route/routetemp.xml");//Temp xml. //If GPS find 4 or more satellite and signal stregth is 30 or more. if (location->getSatellitesInUse() >= 4 && location->getSignalStrength() >= 30) @@ -232,7 +232,7 @@ void GPSData::stopRouteRecording() recordingStatus = false; //Write final xml. - QFile file(".//speedfreak_route/route.xml"); + QFile file("/home/user/MyDocs/speedfreak/route/route.xml"); if (!file.open(QIODevice::WriteOnly | QIODevice::Text)) return; writeRouteXml(&file, 1); @@ -248,7 +248,7 @@ void GPSData::writeRouteXml(QIODevice *device, int round) { xmlwriter.setDevice(device); - //Write temp xml (.//speedfreak_route/routetemp.xml). + //Write temp xml (/home/user/MyDocs/speedfreak/route/routetemp.xml). if ( round == 0 ) { xmlwriter.writeStartElement("Point"); @@ -259,7 +259,7 @@ void GPSData::writeRouteXml(QIODevice *device, int round) xmlwriter.writeEndElement();//Point } - //Write final xml (.//speedfreak_route/route.xml). + //Write final xml (/home/user/MyDocs/speedfreak/route/route.xml). else if ( round == 1 ) { xmlwriter.writeStartDocument(); @@ -269,7 +269,7 @@ void GPSData::writeRouteXml(QIODevice *device, int round) xmlwriter.writeAttribute("Points", QString::number(roundCounter)); //Open temp xml and read points - QFile tempFile(".//speedfreak_route/routetemp.xml"); + QFile tempFile("/home/user/MyDocs/speedfreak/route/routetemp.xml"); if (!tempFile.open(QIODevice::ReadOnly | QIODevice::Text)) return; QTextStream readRoute(&tempFile);