mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
1de9e4a842
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7466 b45a01b8-16f6-495d-af2f-9b41ad6348cc
68 lines
1.6 KiB
C++
68 lines
1.6 KiB
C++
#include "RsGxsUpdateBroadcastWidget.h"
|
|
#include "RsGxsUpdateBroadcastBase.h"
|
|
|
|
RsGxsUpdateBroadcastWidget::RsGxsUpdateBroadcastWidget(RsGxsIfaceHelper *ifaceImpl, QWidget *parent, Qt::WindowFlags flags)
|
|
: QWidget(parent, flags)
|
|
{
|
|
mBase = new RsGxsUpdateBroadcastBase(ifaceImpl, this);
|
|
connect(mBase, SIGNAL(fillDisplay(bool)), this, SLOT(fillDisplay(bool)));
|
|
|
|
mInterfaceHelper = ifaceImpl;
|
|
}
|
|
|
|
RsGxsUpdateBroadcastWidget::~RsGxsUpdateBroadcastWidget()
|
|
{
|
|
}
|
|
|
|
void RsGxsUpdateBroadcastWidget::fillComplete()
|
|
{
|
|
mBase->fillComplete();
|
|
}
|
|
|
|
void RsGxsUpdateBroadcastWidget::setUpdateWhenInvisible(bool update)
|
|
{
|
|
mBase->setUpdateWhenInvisible(update);
|
|
}
|
|
|
|
const std::list<RsGxsGroupId> &RsGxsUpdateBroadcastWidget::getGrpIds()
|
|
{
|
|
return mBase->getGrpIds();
|
|
}
|
|
|
|
const std::list<RsGxsGroupId> &RsGxsUpdateBroadcastWidget::getGrpIdsMeta()
|
|
{
|
|
return mBase->getGrpIdsMeta();
|
|
}
|
|
|
|
void RsGxsUpdateBroadcastWidget::getAllGrpIds(std::list<RsGxsGroupId> &grpIds)
|
|
{
|
|
mBase->getAllGrpIds(grpIds);
|
|
}
|
|
|
|
const std::map<RsGxsGroupId, std::vector<RsGxsMessageId> > &RsGxsUpdateBroadcastWidget::getMsgIds()
|
|
{
|
|
return mBase->getMsgIds();
|
|
}
|
|
|
|
const std::map<RsGxsGroupId, std::vector<RsGxsMessageId> > &RsGxsUpdateBroadcastWidget::getMsgIdsMeta()
|
|
{
|
|
return mBase->getMsgIdsMeta();
|
|
}
|
|
|
|
void RsGxsUpdateBroadcastWidget::getAllMsgIds(std::map<RsGxsGroupId, std::vector<RsGxsMessageId> > &msgIds)
|
|
{
|
|
mBase->getAllMsgIds(msgIds);
|
|
}
|
|
|
|
void RsGxsUpdateBroadcastWidget::fillDisplay(bool complete)
|
|
{
|
|
updateDisplay(complete);
|
|
update(); // Qt flush
|
|
}
|
|
|
|
void RsGxsUpdateBroadcastWidget::showEvent(QShowEvent *event)
|
|
{
|
|
mBase->showEvent(event);
|
|
QWidget::showEvent(event);
|
|
}
|