aboutsummaryrefslogtreecommitdiffstats
path: root/src/activitypub
diff options
context:
space:
mode:
authorConfuSomu2023-07-18 00:12:58 +0200
committerConfuSomu2023-07-18 00:12:58 +0200
commitcdd08523b9af7afda906766d22197a066c9264f3 (patch)
tree4944566510ad446d49dbab8cb34d95a820d03881 /src/activitypub
parent5ed7d9b53a65aec1f4793f62ac15195c44224b39 (diff)
downloadActorViewer-cdd08523b9af7afda906766d22197a066c9264f3.tar
ActorViewer-cdd08523b9af7afda906766d22197a066c9264f3.tar.gz
ActorViewer-cdd08523b9af7afda906766d22197a066c9264f3.zip
Move APAttachmentFields to fields.h
Finish consolidating every AP…Field in one file to avoid circular include dependencies which are very hard/impossible to work with.
Diffstat (limited to 'src/activitypub')
-rw-r--r--src/activitypub/apattachment.h8
-rw-r--r--src/activitypub/fields.h8
2 files changed, 9 insertions, 7 deletions
diff --git a/src/activitypub/apattachment.h b/src/activitypub/apattachment.h
index c8cdda0..ff40dc3 100644
--- a/src/activitypub/apattachment.h
+++ b/src/activitypub/apattachment.h
@@ -1,16 +1,10 @@
#pragma once
#include "apbase.h"
+#include "fields.h"
#include <array>
#include <vector>
-struct APAttachmentFields {
- QString path;
- QString filename; // "nicer" filename
- QString media_type;
- QString name;
-};
-
class APAttachment : APBase {
public:
APAttachment();
diff --git a/src/activitypub/fields.h b/src/activitypub/fields.h
index 25ed246..59d3858 100644
--- a/src/activitypub/fields.h
+++ b/src/activitypub/fields.h
@@ -2,6 +2,7 @@
#include "src/types.h"
#include <QString>
+#include <QStringList>
#include <vector>
enum struct APObjectType {NOTE, QUESTION, UNKNOWN};
@@ -20,6 +21,13 @@ struct APQuestionFields {
std::vector<Option> poll_options;
};
+struct APAttachmentFields {
+ QString path;
+ QString filename; // "nicer" filename
+ QString media_type;
+ QString name;
+};
+
struct APObjectFields {
QStringList to_actors; // Start APObject
QStringList cc_actors;