void bundleListener(const BundleEvent& be) { auto b = be.GetBundle(); auto type = be.GetType(); if (type == BundleEvent::BUNDLE_STARTING || type == BundleEvent::BUNDLE_STARTED) { b.Stop(); } else if (type == BundleEvent::BUNDLE_STOPPING || type == BundleEvent::BUNDLE_STOPPED) { b.Start(); } }
BundleEvent::BundleEvent(const BundleEvent& event) : m_Bundle(event.GetBundle()), m_What(event.What()) { }