diff options
author | Sean Harmer <sean.harmer@kdab.com> | 2015-08-05 12:49:11 +0100 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2015-08-06 13:43:24 +0000 |
commit | 9b6ca58d5d49acdff284e5e4853b338bb60572e8 (patch) | |
tree | 17c4fc30c4eb8b488eb022a34a8b0e47f652df23 /src/core/aspects/qabstractaspect.h | |
parent | 5a5a40f9f442f2176cfd08a44f3f005a1e8ce779 (diff) |
Add onStartup() and onShutdown() virtuals to QAbstractAspect
Gives aspects a chance to do work just prior to and just after the
main loop in QAspectManager.
Specifically the shutdown functionality is required for the upcoming
logic aspect to ensure a clean shutdown.
Added the onStartup() method for symmetry.
Change-Id: If5f32d62629543cdceb2e6e3ff6383747acb7c99
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/core/aspects/qabstractaspect.h')
-rw-r--r-- | src/core/aspects/qabstractaspect.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/aspects/qabstractaspect.h b/src/core/aspects/qabstractaspect.h index 1ea814309..12d5044a1 100644 --- a/src/core/aspects/qabstractaspect.h +++ b/src/core/aspects/qabstractaspect.h @@ -104,6 +104,8 @@ protected: private: virtual void setRootEntity(QEntity *rootObject) = 0; virtual void onInitialize(const QVariantMap &data) = 0; + virtual void onStartup(); + virtual void onShutdown(); virtual void onCleanup() = 0; Q_DECLARE_PRIVATE(QAbstractAspect) |