Allow a mapping of fields to be a field of a NetworkPacket
Details
Details
- Reviewers
albertvaka - Group Reviewers
KDE Connect - Commits
- R225:4d2357f016cd: Allow JSONObject in a NetworkPacket
Diff Detail
Diff Detail
- Repository
- R225 KDE Connect - Android application
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Comment Actions
This looks like a good idea.
Do you have the desktop-side implementation? We will need them both for this to be of use.
Comment Actions
Wouldn't np.get<QVariantMap>("key") work? I can't remember if I actually tested it.... As soon as I had the packet on the desktop side I realized I needed a list instead of a map.
(See the comment on line 66 of core/networkpacket.h: "Important note: Awesome template syntax is awesome")
Comment Actions
Indeed, that should work. I forgot we don't need type-specific getters and setters in Qt.