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()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void RsGxsUpdateBroadcastPage::setUpdateWhenInvisible(bool update)
|
|
|
|
{
|
|
|
|
mBase->setUpdateWhenInvisible(update);
|
|
|
|
}
|
|
|
|
|
|
|
|
std::list<RsGxsGroupId> &RsGxsUpdateBroadcastPage::getGrpIds()
|
|
|
|
{
|
|
|
|
return mBase->getGrpIds();
|
|
|
|
}
|
|
|
|
|
|
|
|
std::map<RsGxsGroupId, std::vector<RsGxsMessageId> > &RsGxsUpdateBroadcastPage::getMsgIds()
|
|
|
|
{
|
|
|
|
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);
|
|
|
|
}
|