1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 19:55:53 +01:00
GPXSee/src/map/maplist.h

36 lines
712 B
C
Raw Normal View History

#ifndef MAPLIST_H
#define MAPLIST_H
#include <QObject>
2016-02-12 10:09:17 +01:00
#include <QString>
2018-03-09 23:24:08 +01:00
class Map;
class MapList : public QObject
{
Q_OBJECT
public:
MapList(QObject *parent = 0) : QObject(parent) {}
bool loadFile(const QString &path);
bool loadDir(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:
bool loadFile(const QString &path, bool *atlas, bool dir);
2018-02-10 09:57:21 +01:00
bool loadDirR(const QString &path);
2019-02-13 00:45:34 +01:00
Map *loadSource(const QString &path, bool dir);
2018-05-22 22:40:15 +02:00
bool loadMap(Map *map, const QString &path, bool dir);
QList<Map*> _maps;
QString _errorString;
};
#endif // MAPLIST_H