#ifndef RSGXSUPDATEBROADCAST_H #define RSGXSUPDATEBROADCAST_H #include #include class RsGxsIfaceHelper; class RsGxsChanges; class RsGxsUpdateBroadcast : public QObject { Q_OBJECT public: static void cleanup(); static RsGxsUpdateBroadcast *get(RsGxsIfaceHelper* ifaceImpl); signals: void changed(); void msgsChanged(const std::map >& msgIds, const std::map >& msgIdsMeta); void grpsChanged(const std::list& grpIds, const std::list& grpIdsMeta); private slots: void onChangesReceived(const RsGxsChanges& changes); private: explicit RsGxsUpdateBroadcast(RsGxsIfaceHelper* ifaceImpl); private: RsGxsIfaceHelper* mIfaceImpl; }; #endif // RSGXSUPDATEBROADCAST_H