mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
41 lines
989 B
C++
41 lines
989 B
C++
|
#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();
|
||
|
}
|
||
|
|
||
|
void RsGxsUpdateBroadcastPage::fillDisplay(bool initialFill)
|
||
|
{
|
||
|
updateDisplay(initialFill);
|
||
|
update(); // Qt flush
|
||
|
}
|
||
|
|
||
|
void RsGxsUpdateBroadcastPage::showEvent(QShowEvent *event)
|
||
|
{
|
||
|
mBase->showEvent(event);
|
||
|
MainPage::showEvent(event);
|
||
|
}
|