RetroShare/retroshare-gui/src/util/RsGxsUpdateBroadcast.h

34 lines
683 B
C
Raw Normal View History

#ifndef RSGXSUPDATEBROADCAST_H
#define RSGXSUPDATEBROADCAST_H
#include <QObject>
#include <retroshare/rsgxsifacehelper.h>
class RsGxsUpdateBroadcast : public QObject
{
Q_OBJECT
public:
explicit RsGxsUpdateBroadcast(RsGxsIfaceHelper* ifaceImpl, float dt, QObject *parent = 0);
void startMonitor();
void update();
signals:
void msgsChanged(const std::map<RsGxsGroupId, std::vector<RsGxsMessageId> > & msgIds);
void grpsChanged(const std::list<RsGxsGroupId>& grpIds);
public slots:
void fastPoll();
void slowPoll();
private:
RsGxsIfaceHelper* mIfaceImpl;
float mDt;
};
#endif // RSGXSUPDATEBROADCAST_H