aboutsummaryrefslogtreecommitdiffstats
path: root/src/archive_parser.h
diff options
context:
space:
mode:
authorConfuSomu2023-07-10 13:27:34 +0200
committerConfuSomu2023-07-10 13:42:16 +0200
commit5befd0666aef0b96e3e4bd41ed704ccaa3ace5d5 (patch)
tree76402efb62ecf9bc1817910179afc7f71b646e32 /src/archive_parser.h
parent9b70e3c5a208a881188bc6468fe27933cbdb02f8 (diff)
downloadActorViewer-5befd0666aef0b96e3e4bd41ed704ccaa3ace5d5.tar
ActorViewer-5befd0666aef0b96e3e4bd41ed704ccaa3ace5d5.tar.gz
ActorViewer-5befd0666aef0b96e3e4bd41ed704ccaa3ace5d5.zip
Implement basic multithreading support
A few CPU heavy operations, which are opening an archive and displaying a selected Activity, have been moved to another thread to avoid having long-running operations on the main thread.
Diffstat (limited to 'src/archive_parser.h')
-rw-r--r--src/archive_parser.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/archive_parser.h b/src/archive_parser.h
index c206087..7377120 100644
--- a/src/archive_parser.h
+++ b/src/archive_parser.h
@@ -28,11 +28,11 @@ public:
Archive(QString outbox_filename, ArchiveType archive_type);
~Archive();
- InitError init();
+ std::variant<QString, InitError> init();
void update_status_list(ViewStatusTypes allowed_types, QListWidget *parent);
- QString get_html_status_info(int status_index, int text_zone_width, StatusType status_type, QLocale* locale);
- QString get_html_status_text(int status_index);
+ const QString get_html_status_info(int status_index, int text_zone_width, StatusType status_type, QLocale* locale);
+ const QString get_html_status_text(int status_index);
private:
QString outbox_filename;
QDir archive_root_dir;