1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-10-06 23:03:22 +02:00
GPXSee/src/map/maplist.h

36 lines
672 B
C
Raw Normal View History

#ifndef MAPLIST_H
#define MAPLIST_H
#include <QObject>
2016-02-12 10:09:17 +01:00
#include <QString>
#include "map.h"
class MapList : public QObject
{
Q_OBJECT
public:
MapList(QObject *parent = 0) : QObject(parent) {}
2017-07-27 19:47:46 +02:00
bool loadFile(const QString &path);
2017-07-27 19:47:46 +02:00
const QList<Map*> &maps() const {return _maps;}
const QString &errorString() const {return _errorString;}
2017-07-27 19:47:46 +02:00
static QString formats();
static QStringList filter();
private:
2017-07-27 19:47:46 +02:00
Map *loadListEntry(const QByteArray &line);
bool loadList(const QString &path);
bool loadMap(const QString &path);
2018-01-08 23:47:45 +01:00
bool loadAtlas(const QString &path);
2017-07-27 19:47:46 +02:00
bool loadTar(const QString &path);
QList<Map*> _maps;
QString _errorString;
};
#endif // MAPLIST_H