squawk/qomemo/variant/conversations.h

33 lines
1.0 KiB
C
Raw Normal View History

2021-05-12 21:32:13 +00:00
/*
* Created by victoria on 2021-05-13.
*/
#pragma once
#include "omemo_base.h"
namespace QXmpp::Omemo::Variant {
2021-05-13 14:54:37 +00:00
class Conversations : public Base {
public:
~Conversations() override = default;
2021-05-12 21:32:13 +00:00
2021-05-13 14:54:37 +00:00
QXmppElement deviceToXml(const Device &device) override;
Device deviceFromXml(const QXmppElement &xml) override;
2021-05-12 21:32:13 +00:00
2021-07-22 17:45:39 +00:00
[[nodiscard]] QString getDeviceListNode() const override;
2021-05-13 14:54:37 +00:00
QXmppElement deviceListToXml(const DeviceList &deviceList) override;
2021-07-22 17:45:39 +00:00
std::optional<DeviceList> latestDeviceListFromPubSubNode(const QXmppElement &items) override;
2021-05-13 14:54:37 +00:00
QXmppIq deviceListSetIq(const DeviceList &deviceList) override;
2021-07-22 17:45:39 +00:00
QXmppElement preKeyToXml(const PreKey &pk) override;
std::optional<PreKey> preKeyFromXml(const QXmppElement &xml) override;
QXmppElement bundleToXml(const Bundle &bundle) override;
std::optional<Bundle> bundleFromXml(const QXmppElement &xml) override;
QXmppIq bundleSetIq(int deviceId, const Bundle &bundle) override;
2021-05-13 14:54:37 +00:00
};
2021-05-12 21:32:13 +00:00
} // namespace QXmpp::Omemo::Variant