Encapsulates dispatching of messages when an activating or a deactivating activity animation is finished. More...
#include <kanzi/ui/node/concept/activity/activity_status_animation_finished_handler.hpp>
Public Member Functions | |
void | clear () |
Removes the stored pending-response function. | |
void | executeIfPending () |
Calls the pending-response function, if one is stored. | |
template<ActivityConcept::Status value> | |
void | sendMessages (ActivityElement &activityElement) |
Depending on the value of the StatusProperty, sends messages that Kanzi sends after the transition in a state manager is completed. | |
void | setPendingResponse (ActivityConcept::Status status, ActivityElement &activityElement) |
Depending on the value of the StatusProperty, calls the appropriate sendMessages(). | |
Encapsulates dispatching of messages when an activating or a deactivating activity animation is finished.
This is a helper class for ActivityStatusManager.
void kanzi::ActivityStatusAnimationFinishedHandler::sendMessages | ( | ActivityElement & | activityElement | ) |
Depending on the value of the StatusProperty, sends messages that Kanzi sends after the transition in a state manager is completed.
activityElement | The Activity element the ActivityStatusManager handles. |
void kanzi::ActivityStatusAnimationFinishedHandler::setPendingResponse | ( | ActivityConcept::Status | status, |
ActivityElement & | activityElement ) |
Depending on the value of the StatusProperty, calls the appropriate sendMessages().
status | Status for which messages must be sent. |
activityElement | The Activity element the ActivityStatusManager handles. |
void kanzi::ActivityStatusAnimationFinishedHandler::executeIfPending | ( | ) |
Calls the pending-response function, if one is stored.
void kanzi::ActivityStatusAnimationFinishedHandler::clear | ( | ) |
Removes the stored pending-response function.