diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2021-01-17 18:29:17 -0500 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2021-01-18 08:21:41 -0500 |
| commit | 181acfe832bef26228e33ac3a021d39528b1a4a9 (patch) | |
| tree | 8d72ee70536e85361c6ebaf95cb97eef87bef0ea /src/commandline.h | |
| parent | 1c4d09d9e13571cf7cd7f1ed502bc069d27ed399 (diff) | |
renamed Refresh to TriggerRefresh, added WaitForRefresh
removed duplicate refreshDirectoryStructure() call that could never work
added --logs to output logs to stdout, added final "mod organizer done" log
added -i with no arguments to output the current instance name
`run -e` now does an additional, case insensitive check for names
fixed error being output along with --help
Diffstat (limited to 'src/commandline.h')
| -rw-r--r-- | src/commandline.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/commandline.h b/src/commandline.h index 5dcb8871..6bd57132 100644 --- a/src/commandline.h +++ b/src/commandline.h @@ -5,6 +5,7 @@ #include <memory> class OrganizerCore; +class MOApplication; class MOMultiProcess; namespace cl @@ -68,6 +69,11 @@ public: // virtual std::optional<int> runEarly(); + // called as soon as the MOApplication has been created, which is also the + // first time where Qt stuff is available + // + virtual std::optional<int> runPostApplication(MOApplication& a); + // called as soon as the multi process checks have confirmed that this is // a primary instance; return something to exit immediately // @@ -270,6 +276,11 @@ public: // std::optional<int> process(const std::wstring& line); + // called as soon as the MOApplication has been created; this handles a few + // global actions and forwards to the command, if any + // + std::optional<int> runPostApplication(MOApplication& a); + // calls Command::runPostMultiProcess() on the command, if any // std::optional<int> runPostMultiProcess(MOMultiProcess& mp); @@ -356,6 +367,8 @@ private: { (m_commands.push_back(std::make_unique<Ts>()), ...); } + + std::optional<int> runEarly(); }; } // namespace |
