Advertisement
vladislav_larionov

Untitled

Apr 8th, 2022
897
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.76 KB | None | 0 0
  1. void AtolPrinter::setClientInfo(QVariantMap serviceParameters) {
  2.     if (serviceParameters["FFD_1227"].isValid()) {
  3.         setStringParameter(1227, serviceParameters["FFD_1227"].toString());
  4.     }
  5.     if (serviceParameters["FFD_1228"].isValid()) {
  6.         setStringParameter(1228, serviceParameters["FFD_1228"].toString());
  7.     }
  8.     if (ffdVersion != LIBFPTR_FFD_1_2)
  9.         return;
  10.     if (!serviceParameters["FFD_1228"].isValid()) {
  11.         setStringParameter(1243, QString("10.06.1998"));
  12.         setStringParameter(1245, QString("27"));
  13.         setStringParameter(1246, QString("1277333344"));
  14.     }
  15.     printer->utilFormTlv();
  16.     std::vector<uchar> clientInfo = printer->getParamByteArray(LIBFPTR_PARAM_TAG_VALUE);
  17.     printer->setParam(1256, clientInfo);
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement