mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-04-12 16:49:10 +02:00
Including several map providers refactoring/rewrite especial KML, JNX and TrekBuddy atlases.
29 lines
591 B
C++
29 lines
591 B
C++
#ifndef MAPLIST_H
|
|
#define MAPLIST_H
|
|
|
|
#include <QString>
|
|
#include "common/treenode.h"
|
|
|
|
class Map;
|
|
class Projection;
|
|
|
|
class MapList
|
|
{
|
|
public:
|
|
static TreeNode<Map*> loadMaps(const QString &path);
|
|
static QString formats();
|
|
static QStringList filter();
|
|
|
|
private:
|
|
typedef Map*(*ParserCb)(const QString &, bool *isDir);
|
|
typedef QMultiMap<QString, ParserCb> ParserMap;
|
|
|
|
static Map *loadFile(const QString &path, bool *isDir = 0);
|
|
static TreeNode<Map*> loadDir(const QString &path, TreeNode<Map*> *parent = 0);
|
|
|
|
static ParserMap parsers();
|
|
static ParserMap _parsers;
|
|
};
|
|
|
|
#endif // MAPLIST_H
|