Poco::OSP

class BundleEvent

Library: OSP
Package: Bundle
Header: Poco/OSP/BundleEvent.h

Description

The BundleEvent class holds information about an event caused by a change to a bundle's state.

Member Summary

Member Functions: bundle, exception, operator =, what

Enumerations

EventKind

EV_BUNDLE_INSTALLED

EV_BUNDLE_LOADED

EV_BUNDLE_RESOLVING

EV_BUNDLE_RESOLVED

EV_BUNDLE_STARTING

EV_BUNDLE_STARTED

EV_BUNDLE_STOPPING

EV_BUNDLE_STOPPED

EV_BUNDLE_UNINSTALLING

EV_BUNDLE_UNINSTALLED

EV_BUNDLE_UNLOADED

EV_BUNDLE_FAILED

Constructors

BundleEvent

BundleEvent(
    const BundleEvent & event
);

Creates a BundleEvent from another one.

BundleEvent

BundleEvent(
    Bundle::Ptr pBundle,
    EventKind what
);

Creates the BundleEvent.

BundleEvent

BundleEvent(
    Bundle * pBundle,
    const Poco::Exception & exception
);

Creates the BundleEvent with the given exception, and state EV_BUNDLE_FAILED.

BundleEvent

BundleEvent(
    Bundle * pBundle,
    EventKind what
);

Creates the BundleEvent.

Destructor

~BundleEvent

~BundleEvent();

Destroys the BundleEvent.

Member Functions

bundle inline

Bundle::ConstPtr bundle() const;

Returns the bundle that caused the event.

exception inline

Poco::Exception * exception() const;

Returns the exception if starting the bundle failed, or null if no exception is available.

operator =

BundleEvent & operator = (
    const BundleEvent & event
);

Assigns a BundleEvent.

what inline

EventKind what() const;

Returns the reason of the event.