File Information
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
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
Bundle::ConstPtr bundle() const;
Returns the bundle that caused the event.
exception
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
EventKind what() const;
Returns the reason of the event.