aboutsummaryrefslogtreecommitdiffstats
path: root/src/activitypub/apattachment.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/activitypub/apattachment.h')
-rw-r--r--src/activitypub/apattachment.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/activitypub/apattachment.h b/src/activitypub/apattachment.h
index ff40dc3..f4e620b 100644
--- a/src/activitypub/apattachment.h
+++ b/src/activitypub/apattachment.h
@@ -2,6 +2,7 @@
#include "apbase.h"
#include "fields.h"
+#include <QPixmap>
#include <array>
#include <vector>
@@ -11,6 +12,7 @@ public:
APAttachment(APAttachmentFields fields);
~APAttachment() {};
QString get_html_render(HtmlRenderDetails render_info);
+ const QPixmap& get_pixmap(int width = 0, int height = 0);
private:
QString blurhash;
@@ -19,6 +21,8 @@ private:
QString description; // alt text, maps to "name"
QString path_url; // attachment URL, might be file on filesystem (make sure that the attachment dir has been found and that the path is correct)
QString filename; // nicer descriptor of the attachment's path
+
+ QPixmap* pixmap = nullptr;
};
class APAttachmentList : public std::vector<APAttachment>, APBase {