2016-10-28 14:33:36 +02:00
|
|
|
#ifndef ROUTEDATA_H
|
|
|
|
#define ROUTEDATA_H
|
|
|
|
|
|
|
|
#include <QVector>
|
|
|
|
#include <QString>
|
|
|
|
#include "waypoint.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
|
|
|
|
|
|
|
class RouteData : public QVector<Waypoint>
|
|
|
|
{
|
|
|
|
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 // ROUTEDATA_H
|