2013-07-14 14:48:40 -04:00
|
|
|
#include "RsGxsUpdateBroadcastPage.h"
|
|
|
|
#include "RsGxsUpdateBroadcastBase.h"
|
|
|
|
|
|
|
|
RsGxsUpdateBroadcastPage::RsGxsUpdateBroadcastPage(RsGxsIfaceHelper *ifaceImpl, QWidget *parent, Qt::WindowFlags flags)
|
|
|
|
: MainPage(parent, flags)
|
|
|
|
{
|
|
|
|
mBase = new RsGxsUpdateBroadcastBase(ifaceImpl, this);
|
|
|
|
connect(mBase, SIGNAL(fillDisplay(bool)), this, SLOT(fillDisplay(bool)));
|
|
|
|
}
|
|
|
|
|
|
|
|
RsGxsUpdateBroadcastPage::~RsGxsUpdateBroadcastPage()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2014-05-05 17:53:47 -04:00
|
|
|
void RsGxsUpdateBroadcastPage::fillComplete()
|
|
|
|
{
|
|
|
|
mBase->fillComplete();
|
|
|
|
}
|
|
|
|
|
2013-07-14 14:48:40 -04:00
|
|
|
void RsGxsUpdateBroadcastPage::setUpdateWhenInvisible(bool update)
|
|
|
|
{
|
|
|
|
mBase->setUpdateWhenInvisible(update);
|
|
|
|
}
|
|
|
|
|
2018-06-21 09:46:59 -04:00
|
|
|
const std::set<RsGxsGroupId> &RsGxsUpdateBroadcastPage::getGrpIdsMeta()
|
2014-07-05 14:33:11 -04:00
|
|
|
{
|
|
|
|
return mBase->getGrpIdsMeta();
|
|
|
|
}
|
|
|
|
|
2018-06-21 09:46:59 -04:00
|
|
|
void RsGxsUpdateBroadcastPage::getAllGrpIds(std::set<RsGxsGroupId> &grpIds)
|
2014-07-05 14:33:11 -04:00
|
|
|
{
|
|
|
|
mBase->getAllGrpIds(grpIds);
|
|
|
|
}
|
|
|
|
|
2018-06-21 09:46:59 -04:00
|
|
|
const std::set<RsGxsGroupId> &RsGxsUpdateBroadcastPage::getGrpIds()
|
2013-07-14 14:48:40 -04:00
|
|
|
{
|
|
|
|
return mBase->getGrpIds();
|
|
|
|
}
|
|
|
|
|
2018-06-21 09:46:59 -04:00
|
|
|
const std::map<RsGxsGroupId, std::set<RsGxsMessageId> > &RsGxsUpdateBroadcastPage::getMsgIdsMeta()
|
2014-07-05 14:33:11 -04:00
|
|
|
{
|
|
|
|
return mBase->getMsgIdsMeta();
|
|
|
|
}
|
|
|
|
|
2018-06-21 09:46:59 -04:00
|
|
|
void RsGxsUpdateBroadcastPage::getAllMsgIds(std::map<RsGxsGroupId, std::set<RsGxsMessageId> > &msgIds)
|
2014-07-05 14:33:11 -04:00
|
|
|
{
|
|
|
|
mBase->getAllMsgIds(msgIds);
|
|
|
|
}
|
|
|
|
|
2018-06-21 09:46:59 -04:00
|
|
|
const std::map<RsGxsGroupId, std::set<RsGxsMessageId> > &RsGxsUpdateBroadcastPage::getMsgIds()
|
2013-07-14 14:48:40 -04:00
|
|
|
{
|
|
|
|
return mBase->getMsgIds();
|
|
|
|
}
|
|
|
|
|
2013-07-19 05:48:51 -04:00
|
|
|
void RsGxsUpdateBroadcastPage::fillDisplay(bool complete)
|
2013-07-14 14:48:40 -04:00
|
|
|
{
|
2013-07-19 05:48:51 -04:00
|
|
|
updateDisplay(complete);
|
2013-07-14 14:48:40 -04:00
|
|
|
update(); // Qt flush
|
|
|
|
}
|
|
|
|
|
|
|
|
void RsGxsUpdateBroadcastPage::showEvent(QShowEvent *event)
|
|
|
|
{
|
|
|
|
mBase->showEvent(event);
|
|
|
|
MainPage::showEvent(event);
|
|
|
|
}
|