From 5aac009e969cc3bd15c484ba3437348cb7a4d186 Mon Sep 17 00:00:00 2001 From: ConfuSomu Date: Sat, 20 Jan 2024 21:57:39 -0500 Subject: Implemement Actor information tab This class still has improvements to be made, but it works and I am satisfied with it! --- src/archive/base_archive.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/archive/base_archive.h') diff --git a/src/archive/base_archive.h b/src/archive/base_archive.h index bf43306..27259b3 100644 --- a/src/archive/base_archive.h +++ b/src/archive/base_archive.h @@ -1,10 +1,10 @@ #pragma once - +#include "src/activitypub/apactivity.h" +#include "src/activitypub/apactor.h" +#include "src/types.h" #include #include #include -#include "src/activitypub/apactivity.h" -#include "src/types.h" enum ArchiveType { MASTODON @@ -35,6 +35,9 @@ public: virtual void update_status_list(ViewStatusTypes allowed_types, QListWidget *parent) = 0; virtual APActivity* get_activity(ArchiveItemRef index, Hinting_t hinting) = 0; + // Get the Actor that represents the data export, the user who's account data has been exported. + // Return nullptr if the Actor cannot be retrieved + virtual APActor* get_main_actor(); virtual const QString get_html_status_text(ArchiveItemRef status_index) = 0; virtual const QString get_instance_address(); -- cgit v1.2.3-54-g00ecf