squawk/qomemo/device_service.h

30 lines
520 B
C
Raw Normal View History

/*
* Created by victoria on 2021-05-12.
*/
#pragma once
#include "qomemo.h"
#include "user_device_list.h"
#include <QXmppClient.h>
namespace QXmpp::Omemo {
2021-05-13 14:54:37 +00:00
class DeviceList;
2021-05-12 21:32:13 +00:00
2021-05-13 14:54:37 +00:00
class DeviceService : public QObject {
Q_OBJECT
2021-05-13 14:54:37 +00:00
public:
explicit DeviceService(QObject *parent);
2021-05-13 14:54:37 +00:00
public slots:
void onDeviceListReceived(const QString &jid, const QXmpp::Omemo::DeviceList &list);
2021-05-13 14:54:37 +00:00
private:
QMap<QString, UserDeviceList> device_lists{};
};
} // namespace QXmpp::Omemo