2012-12-18 17:25:00 -05:00
|
|
|
#ifndef RSGXSUPDATEBROADCAST_H
|
|
|
|
#define RSGXSUPDATEBROADCAST_H
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
|
2013-02-28 16:58:38 -05:00
|
|
|
#include <retroshare/rsgxsifacehelper.h>
|
2012-12-18 17:25:00 -05:00
|
|
|
|
|
|
|
class RsGxsUpdateBroadcast : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2013-02-28 16:58:38 -05:00
|
|
|
explicit RsGxsUpdateBroadcast(RsGxsIfaceHelper* ifaceImpl, float dt, QObject *parent = 0);
|
2012-12-18 17:25:00 -05:00
|
|
|
|
|
|
|
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:
|
|
|
|
|
2013-02-28 16:58:38 -05:00
|
|
|
RsGxsIfaceHelper* mIfaceImpl;
|
2012-12-18 17:25:00 -05:00
|
|
|
float mDt;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // RSGXSUPDATEBROADCAST_H
|