--- a/igc.h Sun Jan 22 17:35:21 2012 +0100
+++ b/igc.h Sun Jan 22 20:46:02 2012 +0100
@@ -7,15 +7,16 @@
public:
Fix(const QString&);
private:
- QString theTime, valid;
+ QTime time_;
+ bool fix3d_;
struct {
QString lon;
QString lat;
- } gps;
+ } gps_;
struct {
- int press;
+ int baro;
int gps;
- } theAlt;
+ } alt_;
};
typedef QList<Fix> Fixes;
@@ -23,12 +24,13 @@
class IGC {
public:
void read(QTextStream&);
- QString author() const { return theAuthor; }
- QString pilot() const { return thePilot; }
+ QString device() const { return device_; }
+ QString pilot() const { return pilot_; }
+ QDate date() const { return date_; }
private:
- QString theAuthor, thePilot, theGlider;
- QStringList points;
- Fixes fixes;
+ QString device_, pilot_, glider_;
+ QDate date_;
+ Fixes fixes_;
};
#endif