From 181acfe832bef26228e33ac3a021d39528b1a4a9 Mon Sep 17 00:00:00 2001 From: isanae <14251494+isanae@users.noreply.github.com> Date: Sun, 17 Jan 2021 18:29:17 -0500 Subject: 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 --- src/commandline.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/commandline.h') 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 class OrganizerCore; +class MOApplication; class MOMultiProcess; namespace cl @@ -68,6 +69,11 @@ public: // virtual std::optional runEarly(); + // called as soon as the MOApplication has been created, which is also the + // first time where Qt stuff is available + // + virtual std::optional 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 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 runPostApplication(MOApplication& a); + // calls Command::runPostMultiProcess() on the command, if any // std::optional runPostMultiProcess(MOMultiProcess& mp); @@ -356,6 +367,8 @@ private: { (m_commands.push_back(std::make_unique()), ...); } + + std::optional runEarly(); }; } // namespace -- cgit v1.3.1