A wrapper class around a conversation cancellation handler callback. More...
#include <cancellation_handler.h>
Public Member Functions | |
CancellationHandler (CancellationHandler &&) noexcept=default | |
CancellationHandler (CancellationHandler &)=delete | |
CancellationHandler & | operator= (CancellationHandler &&) noexcept=default |
CancellationHandler & | operator= (CancellationHandler &)=delete |
CancellationHandler (bool isCanceled) noexcept | |
Constructor. More... | |
bool | IsCanceled () const |
Get conversation cancellation status. More... | |
void | SetIsCanceled (bool isCanceled) |
Set conversation cancellation status. More... | |
void | SetNotifier (std::function< void()> notifier) |
Set a callback to be invoked when DM canceled the conversation. More... | |
A wrapper class around a conversation cancellation handler callback.
|
noexcept |
Constructor.
isCanceled | Initial cancellation status |
bool ara::diag::CancellationHandler::IsCanceled | ( | ) | const |
Get conversation cancellation status.
void ara::diag::CancellationHandler::SetIsCanceled | ( | bool | isCanceled | ) |
Set conversation cancellation status.
isCanceled | Current conversation cancellation status |
void ara::diag::CancellationHandler::SetNotifier | ( | std::function< void()> | notifier | ) |
Set a callback to be invoked when DM canceled the conversation.
notifier | A callback to be notified after the cancellation |