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

28 lines
460 B
C
Raw Normal View History

2017-03-21 01:15:29 +01:00
#ifndef TAR_H
#define TAR_H
#include <QStringList>
#include <QMap>
#include <QFile>
class Tar
{
public:
bool load(const QString &path);
QStringList files() const {return _index.keys();}
QByteArray file(const QString &name);
QString fileName() const {return _file.fileName();}
2017-03-21 01:15:29 +01:00
bool isOpen() const {return _file.isOpen();}
private:
bool loadTar();
bool loadTmi(const QString &path);
2017-03-21 01:15:29 +01:00
QFile _file;
QMap<QString, quint64> _index;
2017-03-21 01:15:29 +01:00
};
#endif // TAR_H