#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); };