From: Manuel Nickschas Date: Mon, 21 May 2012 21:30:56 +0000 (+0200) Subject: Provide (de)serialization for all event types X-Git-Tag: 0.9-beta1~68 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=6f38b6fdeb73e726c24b26a97b98c9cfe0fc8a0e;hp=6f38b6fdeb73e726c24b26a97b98c9cfe0fc8a0e Provide (de)serialization for all event types This allows to (de)serialize events to/from QVariantMap (using only primitive types), a prerequisite for sending events over the wire. Use the following functions: void EventManager::createEvent(const QVariantMap &) QVariantMap Event::toVariantMap() Note that there is only rudimentary plausibility checking, so for now we assume that the QVariantMaps are created by Quassel. Before we allow these to go on the wire, we need to make sure that this can't be tinkered with in annoying ways. ---