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