| 65 | } |
| 66 | |
| 67 | void Decoder::decodeFrame(int id, QByteArray frameRawData) |
| 68 | { |
| 69 | Protocal *protocal = listProtocals.at(id); |
| 70 | QList<VarType *> *listData = protocal->getListData(); |
| 71 | //Prepare data to send to plugins. |
| 72 | QList<double> listValues; |
| 73 | int count = 0; |
| 74 | for (int i = 0; i < listData->count(); i++) { |
| 75 | VarType *type = listData->at(i); |
| 76 | type->setBufferValue(frameRawData.mid(count, type->getSize())); |
| 77 | count += type->getSize(); |
| 78 | double value = type->getDouble(endianess); |
| 79 | listValues.append(value); |
| 80 | } |
| 81 | emit frameReady(id, listValues); |
| 82 | } |
nothing calls this directly
no test coverage detected