mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
39 lines
975 B
C++
39 lines
975 B
C++
#ifndef RSGXSUPDATEBROADCAST_H
|
|
#define RSGXSUPDATEBROADCAST_H
|
|
|
|
#include <QObject>
|
|
|
|
#include <retroshare/rsgxsifacetypes.h>
|
|
|
|
class RsGxsIfaceHelper;
|
|
class RsGxsChanges;
|
|
|
|
typedef uint32_t TurtleRequestId ;
|
|
|
|
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::set<RsGxsMessageId> >& msgIds, const std::map<RsGxsGroupId, std::set<RsGxsMessageId> >& msgIdsMeta);
|
|
void grpsChanged(const std::list<RsGxsGroupId>& grpIds, const std::list<RsGxsGroupId>& grpIdsMeta);
|
|
void distantSearchResultsChanged(const std::list<TurtleRequestId>& reqs);
|
|
|
|
private slots:
|
|
void onChangesReceived(const RsGxsChanges& changes);
|
|
|
|
private:
|
|
explicit RsGxsUpdateBroadcast(RsGxsIfaceHelper* ifaceImpl);
|
|
|
|
private:
|
|
RsGxsIfaceHelper* mIfaceImpl;
|
|
};
|
|
|
|
#endif // RSGXSUPDATEBROADCAST_H
|