2012-12-18 17:25:00 -05:00
|
|
|
#ifndef RSGXSUPDATEBROADCAST_H
|
|
|
|
#define RSGXSUPDATEBROADCAST_H
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
|
2013-07-14 14:48:40 -04:00
|
|
|
#include <retroshare/rsgxsifacetypes.h>
|
|
|
|
|
|
|
|
class RsGxsIfaceHelper;
|
|
|
|
class QTimer;
|
2012-12-18 17:25:00 -05:00
|
|
|
|
|
|
|
class RsGxsUpdateBroadcast : public QObject
|
|
|
|
{
|
2013-07-14 14:48:40 -04:00
|
|
|
Q_OBJECT
|
|
|
|
|
2012-12-18 17:25:00 -05:00
|
|
|
public:
|
2013-07-14 14:48:40 -04:00
|
|
|
static void cleanup();
|
2012-12-18 17:25:00 -05:00
|
|
|
|
2013-07-14 14:48:40 -04:00
|
|
|
static RsGxsUpdateBroadcast *get(RsGxsIfaceHelper* ifaceImpl);
|
2012-12-18 17:25:00 -05:00
|
|
|
|
|
|
|
signals:
|
2013-07-14 14:48:40 -04:00
|
|
|
void changed();
|
|
|
|
void msgsChanged(const std::map<RsGxsGroupId, std::vector<RsGxsMessageId> >& msgIds);
|
|
|
|
void grpsChanged(const std::list<RsGxsGroupId>& grpIds);
|
2012-12-18 17:25:00 -05:00
|
|
|
|
2013-07-14 14:48:40 -04:00
|
|
|
private slots:
|
|
|
|
void poll();
|
2012-12-18 17:25:00 -05:00
|
|
|
|
|
|
|
private:
|
2013-07-14 14:48:40 -04:00
|
|
|
explicit RsGxsUpdateBroadcast(RsGxsIfaceHelper* ifaceImpl);
|
2012-12-18 17:25:00 -05:00
|
|
|
|
2013-07-14 14:48:40 -04:00
|
|
|
private:
|
|
|
|
RsGxsIfaceHelper* mIfaceImpl;
|
|
|
|
QTimer *mTimer;
|
2012-12-18 17:25:00 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // RSGXSUPDATEBROADCAST_H
|