aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/activitypub/apattachment.h8
-rw-r--r--src/activitypub/fields.h8
-rw-r--r--src/archive_parser.cpp1
-rw-r--r--src/archive_parser.h2
4 files changed, 10 insertions, 9 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;
diff --git a/src/archive_parser.cpp b/src/archive_parser.cpp
index 8b2289e..ab7f67d 100644
--- a/src/archive_parser.cpp
+++ b/src/archive_parser.cpp
@@ -2,7 +2,6 @@
#include "src/list_item.h"
#include "src/types.h"
#include "activitypub/apactivity.h"
-#include "activitypub/apattachment.h"
#include "activitypub/apobject.h"
#include "activitypub/apreblog.h"
#include "activitypub/appost.h"
diff --git a/src/archive_parser.h b/src/archive_parser.h
index 7f41878..162787e 100644
--- a/src/archive_parser.h
+++ b/src/archive_parser.h
@@ -8,7 +8,7 @@
#include <QDir>
#include "types.h"
-#include "activitypub/apattachment.h"
+#include "activitypub/fields.h"
enum ArchiveType {
MASTODON