29 lines
778 B
C++
29 lines
778 B
C++
#ifndef IMMICHPATHTRAVERSER_H
|
|
#define IMMICHPATHTRAVERSER_H
|
|
|
|
#include "pathtraverser.h"
|
|
#include "immichclient.h"
|
|
|
|
#include <QHash>
|
|
|
|
class ImmichPathTraverser : public PathTraverser
|
|
{
|
|
public:
|
|
ImmichPathTraverser(const ImmichConfig &config);
|
|
virtual ~ImmichPathTraverser();
|
|
QStringList getImages() const override;
|
|
virtual const std::string getImagePath(const std::string image) const override;
|
|
virtual ImageDisplayOptions UpdateOptionsForImage(const std::string& filename, const ImageDisplayOptions& options) const override;
|
|
|
|
private:
|
|
void loadAssets();
|
|
|
|
ImmichConfig config;
|
|
mutable ImmichClient client;
|
|
mutable ImmichAssetCache cache;
|
|
QStringList assetIds;
|
|
QHash<QString, QString> assetNames;
|
|
};
|
|
|
|
#endif // IMMICHPATHTRAVERSER_H
|