1 /*! 2 * \copyright Copyright (c) 2014-2021 Governikus GmbH & Co. KG, Germany 3 */ 4 5 #include "TransmitResponse.h" 6 7 using namespace governikus; 8 TransmitResponse()9TransmitResponse::TransmitResponse() 10 : ResponseType(PaosType::TRANSMIT_RESPONSE) 11 , mOutputApdus() 12 { 13 } 14 15 createBodyElement()16void TransmitResponse::createBodyElement() 17 { 18 mWriter.writeStartElement(QStringLiteral("TransmitResponse")); 19 mWriter.writeAttribute(getNamespacePrefix(Namespace::DEFAULT), getNamespace(Namespace::TECHSCHEMA)); 20 mWriter.writeAttribute(QStringLiteral("Profile"), getNamespace(Namespace::ECARD)); 21 22 createResultElement(*this); 23 24 for (const auto& apdu : qAsConst(mOutputApdus)) 25 { 26 writeTextElement(QStringLiteral("OutputAPDU"), apdu); 27 } 28 29 mWriter.writeEndElement(); // TransmitResponse 30 } 31 32 setOutputApdus(const QByteArrayList & outputApdus)33void TransmitResponse::setOutputApdus(const QByteArrayList& outputApdus) 34 { 35 mOutputApdus = outputApdus; 36 } 37