aboutsummaryrefslogtreecommitdiffstats
path: root/src/archive_parser.h
diff options
context:
space:
mode:
authorConfuSomu2023-07-05 15:24:07 +0200
committerConfuSomu2023-07-06 00:33:30 +0200
commit9b70e3c5a208a881188bc6468fe27933cbdb02f8 (patch)
tree85041878bfd250232284f831663b1a611e902521 /src/archive_parser.h
parente515ca109faa897e84be8a97a1240c59df612dd4 (diff)
downloadActorViewer-9b70e3c5a208a881188bc6468fe27933cbdb02f8.tar
ActorViewer-9b70e3c5a208a881188bc6468fe27933cbdb02f8.tar.gz
ActorViewer-9b70e3c5a208a881188bc6468fe27933cbdb02f8.zip
Move implementation detail functions into Archive
These functions were in archive_parser.cpp's compilation unit which has only functions related to the Archive class but it is better to make them private members of Archive as they are implementation details of this class to make the link more clear.
Diffstat (limited to 'src/archive_parser.h')
-rw-r--r--src/archive_parser.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/archive_parser.h b/src/archive_parser.h
index d9313ee..c206087 100644
--- a/src/archive_parser.h
+++ b/src/archive_parser.h
@@ -43,6 +43,10 @@ private:
QJsonObject *outbox_json = nullptr;
QJsonArray *outbox_items = nullptr;
+ bool is_status_type_allowed(StatusType status_type, ViewStatusTypes allowed_types);
+ StatusType get_status_type(QJsonObject obj);
+ QStringList get_status_object_list(QJsonObject obj, QString element_name) ;
+ QStringList get_status_object_language_list(QJsonObject obj, QString element_name);
std::vector<APAttachmentFields> get_status_attachments_list(QJsonValueRef attachments_ref);
void find_attachment_dir(QString example_attachment);
};