2017-07-03 09:30:10 +02:00
|
|
|
/*!
|
2018-03-28 15:10:51 +02:00
|
|
|
* \copyright Copyright (c) 2016-2018 Governikus GmbH & Co. KG, Germany
|
2017-07-03 09:30:10 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#include "StateDestroyPace.h"
|
|
|
|
|
|
|
|
|
|
|
|
using namespace governikus;
|
|
|
|
|
|
|
|
StateDestroyPace::StateDestroyPace(const QSharedPointer<WorkflowContext>& pContext)
|
|
|
|
: AbstractGenericState(pContext)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void StateDestroyPace::run()
|
|
|
|
{
|
|
|
|
auto cardConnection = getContext()->getCardConnection();
|
|
|
|
|
|
|
|
Q_ASSERT(cardConnection);
|
|
|
|
mConnections += cardConnection->callDestroyPaceChannelCommand(this, &StateDestroyPace::onDestroyPaceDone);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void StateDestroyPace::onDestroyPaceDone(QSharedPointer<BaseCardCommand> )
|
|
|
|
{
|
2017-12-20 14:54:05 +01:00
|
|
|
Q_EMIT fireContinue();
|
2017-07-03 09:30:10 +02:00
|
|
|
}
|