45 lines
1.1 KiB
C++
45 lines
1.1 KiB
C++
#ifndef STEP_H
|
|
#define STEP_H
|
|
#include <QString>
|
|
#include <QTextStream>
|
|
#include <iostream>
|
|
#include <QJsonObject>
|
|
#include <QList>
|
|
using namespace std;
|
|
class Step
|
|
{
|
|
|
|
private:
|
|
QString title;
|
|
float latitude;
|
|
float longitude;
|
|
int response;
|
|
QList<QString> personnage;
|
|
QList<QString> texte;
|
|
|
|
public:
|
|
Step();
|
|
Step(QJsonObject &in);
|
|
void setLatitude(int degree,float minute,QChar NS);
|
|
void setLongitude(int degree,float minute,QChar EW);
|
|
void setLatitude(float lat);
|
|
void setLongitude(float lon);
|
|
QString getTitle() const;
|
|
float getLatitude() const;
|
|
float getLongitude() const;
|
|
int getResponse() const;
|
|
QList<QString> getPersonnage() const;
|
|
QList<QString> getTexte() const;
|
|
void setTitle(const QString &newTitle);
|
|
void setResponse(int newResponse);
|
|
void setPersonnage(const QList<QString> &newPersonnage);
|
|
void setTexte(const QList<QString> &newTexte);
|
|
QString toGPSFormat();
|
|
void addPersonnage(const QString& pers) ;
|
|
void addTexte(const QString& txt);
|
|
void clearPersonnages();
|
|
void clearTextes();
|
|
};
|
|
|
|
#endif // STEP_H
|