ref(omemo): add qomemo/variant

This commit is contained in:
vae 2021-05-13 00:32:13 +03:00
parent 006752b31c
commit 12ffe8e8e6
Signed by untrusted user: vae
GPG key ID: A9A33351400E00E5
18 changed files with 366 additions and 222 deletions

View file

@ -0,0 +1,31 @@
/*
* Created by victoria on 2021-05-13.
*/
#pragma once
class QXmppElement;
class QXmppIq;
namespace QXmpp::Omemo {
class Device;
class DeviceList;
namespace Variant {
class Base {
public:
virtual ~Base() = default;
virtual QXmppElement deviceToXml(const Device& device) = 0;
virtual Device deviceFromXml(const QXmppElement& xml) = 0;
virtual QXmppElement deviceListToXml(const DeviceList& deviceList) = 0;
virtual DeviceList deviceListFromXml(const QXmppElement& xml) = 0;
virtual QXmppIq deviceListSetIq(const DeviceList& deviceList) = 0;
};
} // namespace Variant
} // namespace QXmpp::Omemo