From 1c4d09d9e13571cf7cd7f1ed502bc069d27ed399 Mon Sep 17 00:00:00 2001 From: isanae <14251494+isanae@users.noreply.github.com> Date: Mon, 11 Jan 2021 02:20:33 -0500 Subject: comments --- src/moapplication.h | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'src/moapplication.h') diff --git a/src/moapplication.h b/src/moapplication.h index 2fe3409b..65180ece 100644 --- a/src/moapplication.h +++ b/src/moapplication.h @@ -40,14 +40,32 @@ class MOApplication : public QApplication public: MOApplication(int& argc, char** argv); + // called from main() only once for stuff that persists across "restarts" + // void firstTimeSetup(MOMultiProcess& multiProcess); + + // called from main() each time MO "restarts", loads settings, plugins, + // OrganizerCore and the current instance + // int setup(MOMultiProcess& multiProcess); + + // shows splash, starts an api check, shows the main window and blocks until + // MO exits + // int run(MOMultiProcess& multiProcess); + + // called from main() when MO "restarts", must clean up everything so setup() + // starts fresh + // void resetForRestart(); + // undefined if setup() wasn't called + // OrganizerCore& core(); - virtual bool notify(QObject* receiver, QEvent* event); + // wraps QApplication::notify() in a catch, reports errors and ignores them + // + bool notify(QObject* receiver, QEvent* event) override; public slots: bool setStyleFile(const QString& style); -- cgit v1.3.1