summaryrefslogtreecommitdiff
path: root/plugin/src/Caelestia/cachingimagemanager.hpp
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-30 14:45:42 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-30 14:45:42 +1000
commitd22576ee8273c0537116e69a3134af62db5589f1 (patch)
tree52cbdec833d58206ebf47b28a374e98f9355b75c /plugin/src/Caelestia/cachingimagemanager.hpp
parentdev: reload on cmakelists change (diff)
downloadcaelestia-shell-d22576ee8273c0537116e69a3134af62db5589f1.tar.gz
caelestia-shell-d22576ee8273c0537116e69a3134af62db5589f1.tar.bz2
caelestia-shell-d22576ee8273c0537116e69a3134af62db5589f1.zip
plugin/cim: better cache impl
Diffstat (limited to 'plugin/src/Caelestia/cachingimagemanager.hpp')
-rw-r--r--plugin/src/Caelestia/cachingimagemanager.hpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugin/src/Caelestia/cachingimagemanager.hpp b/plugin/src/Caelestia/cachingimagemanager.hpp
index 602d862..c78dcda 100644
--- a/plugin/src/Caelestia/cachingimagemanager.hpp
+++ b/plugin/src/Caelestia/cachingimagemanager.hpp
@@ -13,7 +13,6 @@ class CachingImageManager : public QObject {
Q_PROPERTY(QString path READ path WRITE setPath NOTIFY pathChanged);
Q_PROPERTY(QUrl cachePath READ cachePath NOTIFY cachePathChanged);
- Q_PROPERTY(bool usingCache READ usingCache NOTIFY usingCacheChanged);
public:
explicit CachingImageManager(QObject* parent = nullptr): QObject(parent) {};
@@ -28,7 +27,6 @@ public:
void setPath(const QString& path);
[[nodiscard]] QUrl cachePath() const;
- [[nodiscard]] bool usingCache() const;
Q_INVOKABLE void updateSource();
Q_INVOKABLE void updateSource(const QString& path);
@@ -47,7 +45,6 @@ private:
QString m_path;
QUrl m_cachePath;
- bool m_usingCache;
QMetaObject::Connection m_widthConn;
QMetaObject::Connection m_heightConn;
@@ -56,5 +53,6 @@ private:
[[nodiscard]] int effectiveWidth() const;
[[nodiscard]] int effectiveHeight() const;
+ void createCache(const QString& path, const QString& cache, const QSize& size) const;
[[nodiscard]] QString sha256sum(const QString& path) const;
};