1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 05:34:47 +01:00
GPXSee/src/data/trackdata.h

37 lines
918 B
C
Raw Normal View History

#ifndef TRACKDATA_H
#define TRACKDATA_H
2019-02-11 23:28:08 +01:00
#include <QList>
#include <QVector>
#include <QString>
#include "trackpoint.h"
2019-10-14 20:07:05 +02:00
#include "link.h"
#include "style.h"
2019-02-11 23:28:08 +01:00
typedef QVector<Trackpoint> SegmentData;
class TrackData : public QList<SegmentData>
{
public:
2019-10-14 20:07:05 +02:00
const QString &name() const {return _name;}
const QString &description() const {return _desc;}
const QString &comment() const {return _comment;}
2019-10-14 20:07:05 +02:00
const QVector<Link> &links() const {return _links;}
const LineStyle &style() const {return _style;}
2019-10-14 20:07:05 +02:00
void setName(const QString &name) {_name = name;}
void setDescription(const QString &desc) {_desc = desc;}
void setComment(const QString &comment) {_comment = comment;}
2019-10-14 20:07:05 +02:00
void addLink(const Link &link) {_links.append(link);}
void setStyle(const LineStyle &style) {_style = style;}
private:
QString _name;
QString _desc;
QString _comment;
2019-10-14 20:07:05 +02:00
QVector<Link> _links;
LineStyle _style;
};
#endif // TRACKDATA_H