Support Garmin Training Center Export Files

GTC will export all rides as a single TCX file so they
can be imported en-masse into another application.

We did not support >1 rides in a single ride file. This
patch adds support for reading multiple rides (if the ride
file reader supports it).

The ride import wizard will now extract and parse files from
a GTC export.  Many thanks to Damien for writing the TCX file writer.

Fixes #371.
This commit is contained in:
Mark Liversedge
2011-08-05 20:53:13 +01:00
parent 0aba1af505
commit 03b0dea597
46 changed files with 163 additions and 54 deletions

View File

@@ -248,7 +248,7 @@ struct SyncFileReaderState
};
RideFile *SyncFileReader::openRideFile(QFile &file, QStringList &errors) const
RideFile *SyncFileReader::openRideFile(QFile &file, QStringList &errors, QList<RideFile*>*) const
{
QSharedPointer<SyncFileReaderState> state(new SyncFileReaderState(file, errors));
return state->run();