From 80a658f062328ab8b47dc6b2557d274f51278b3a Mon Sep 17 00:00:00 2001 From: ConfuSomu Date: Tue, 12 Sep 2023 10:08:19 -0400 Subject: Define archive item ref type for Archive classes This type allows extension and the implementation of a more complete archive item reference system in the future as it allows going beyond ints. --- src/archive/mastodon.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/archive/mastodon.h') diff --git a/src/archive/mastodon.h b/src/archive/mastodon.h index bc9da3e..0d57d7a 100644 --- a/src/archive/mastodon.h +++ b/src/archive/mastodon.h @@ -18,8 +18,8 @@ public: std::variant init(); void update_status_list(ViewStatusTypes allowed_types, QListWidget *parent); - APActivity* get_activity(int index, Hinting_t hinting = {}); - const QString get_html_status_text(int status_index); + APActivity* get_activity(ArchiveItemRef index, Hinting_t hinting = {}); + const QString get_html_status_text(ArchiveItemRef status_index); const QString get_instance_address(); private: QDir archive_root_dir; -- cgit v1.2.3-54-g00ecf