42 lines
926 B
C++
42 lines
926 B
C++
#ifndef PATH_H
|
|
#define PATH_H
|
|
|
|
#include <QMainWindow>
|
|
#include <QFile>
|
|
#include "step.h"
|
|
|
|
|
|
class Path
|
|
{
|
|
private:
|
|
QString city;
|
|
int departement;
|
|
QString name;
|
|
unsigned int difficulty;
|
|
float duration;
|
|
float length;
|
|
QString image;
|
|
QList<Step> step;
|
|
public:
|
|
Path();
|
|
Path(QFile *file);
|
|
void addStep(int indice=-1);
|
|
QString getCity() const;
|
|
int getDepartement() const;
|
|
QString getName() const;
|
|
unsigned int getDifficulty() const;
|
|
float getDuration() const;
|
|
float getLength() const;
|
|
QString getImage() const;
|
|
QList<Step>& getStep();
|
|
void setCity(const QString &newCity);
|
|
void setDepartement(int newDepartement);
|
|
void setName(const QString &newName);
|
|
void setDifficulty(unsigned int newDifficulty);
|
|
void setDuration(float newDuration);
|
|
void setLength(float newLength);
|
|
void setImage(const QString &newImage);
|
|
};
|
|
|
|
#endif // PATH_H
|