mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-14 02:14:33 -05:00
6dff335515
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8057 b45a01b8-16f6-495d-af2f-9b41ad6348cc
36 lines
867 B
C++
36 lines
867 B
C++
#ifndef RSGXSUPDATEBROADCAST_H
|
|
#define RSGXSUPDATEBROADCAST_H
|
|
|
|
#include <QObject>
|
|
|
|
#include <retroshare/rsgxsifacetypes.h>
|
|
|
|
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<RsGxsGroupId, std::vector<RsGxsMessageId> >& msgIds, const std::map<RsGxsGroupId, std::vector<RsGxsMessageId> >& msgIdsMeta);
|
|
void grpsChanged(const std::list<RsGxsGroupId>& grpIds, const std::list<RsGxsGroupId>& grpIdsMeta);
|
|
|
|
private slots:
|
|
void onChangesReceived(const RsGxsChanges& changes);
|
|
|
|
private:
|
|
explicit RsGxsUpdateBroadcast(RsGxsIfaceHelper* ifaceImpl);
|
|
|
|
private:
|
|
RsGxsIfaceHelper* mIfaceImpl;
|
|
};
|
|
|
|
#endif // RSGXSUPDATEBROADCAST_H
|