diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2021-01-11 02:20:33 -0500 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2021-01-18 08:20:08 -0500 |
| commit | 1c4d09d9e13571cf7cd7f1ed502bc069d27ed399 (patch) | |
| tree | 143f37d174316e3aa995d9276e5fbf4adc4876df /src/moapplication.h | |
| parent | 16ba428e44e22680ae255d46f5e928a4e6ff591a (diff) | |
comments
Diffstat (limited to 'src/moapplication.h')
| -rw-r--r-- | src/moapplication.h | 20 |
1 files changed, 19 insertions, 1 deletions
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);
|
