Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void AtolPrinter::setClientInfo(QVariantMap serviceParameters) {
- if (serviceParameters["FFD_1227"].isValid()) {
- setStringParameter(1227, serviceParameters["FFD_1227"].toString());
- }
- if (serviceParameters["FFD_1228"].isValid()) {
- setStringParameter(1228, serviceParameters["FFD_1228"].toString());
- }
- if (ffdVersion != LIBFPTR_FFD_1_2)
- return;
- if (!serviceParameters["FFD_1228"].isValid()) {
- setStringParameter(1243, QString("10.06.1998"));
- setStringParameter(1245, QString("27"));
- setStringParameter(1246, QString("1277333344"));
- }
- printer->utilFormTlv();
- std::vector<uchar> clientInfo = printer->getParamByteArray(LIBFPTR_PARAM_TAG_VALUE);
- printer->setParam(1256, clientInfo);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement