first commit
This commit is contained in:
28
src/immichpathtraverser.h
Normal file
28
src/immichpathtraverser.h
Normal file
@@ -0,0 +1,28 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user