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();
  }
}
Exemple #2
0
BundleEvent::BundleEvent(const BundleEvent& event) :
  m_Bundle(event.GetBundle()), m_What(event.What())
{

}