RetroShare/retroshare-gui/src/util/RsGxsUpdateBroadcast.h
2014-07-04 21:51:17 +00:00

37 lines
836 B
C++

#ifndef RSGXSUPDATEBROADCAST_H
#define RSGXSUPDATEBROADCAST_H
#include <QObject>
#include <retroshare/rsgxsifacetypes.h>
class RsGxsIfaceHelper;
class QTimer;
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 poll();
private:
explicit RsGxsUpdateBroadcast(RsGxsIfaceHelper* ifaceImpl);
private:
RsGxsIfaceHelper* mIfaceImpl;
QTimer *mTimer;
};
#endif // RSGXSUPDATEBROADCAST_H