// SPDX-FileCopyrightText: 2021 Nheko Contributors // // SPDX-License-Identifier: GPL-3.0-or-later #pragma once #include #include #include #include class PresenceEmitter : public QObject { Q_OBJECT public: PresenceEmitter(QObject *p = nullptr) : QObject(p) {} void sync(const std::vector> &presences); Q_INVOKABLE QString userPresence(QString id) const; Q_INVOKABLE QString userStatus(QString id) const; signals: void presenceChanged(QString userid); };