mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-09-21 05:14:49 -04:00
cancelled previous commit, because it sort of breaks the update of forum lists.
This commit is contained in:
parent
abc5b840d2
commit
e6db04e2b5
1 changed files with 21 additions and 23 deletions
|
@ -2,68 +2,66 @@
|
||||||
#include "RsGxsUpdateBroadcastBase.h"
|
#include "RsGxsUpdateBroadcastBase.h"
|
||||||
|
|
||||||
RsGxsUpdateBroadcastWidget::RsGxsUpdateBroadcastWidget(RsGxsIfaceHelper *ifaceImpl, QWidget *parent, Qt::WindowFlags flags)
|
RsGxsUpdateBroadcastWidget::RsGxsUpdateBroadcastWidget(RsGxsIfaceHelper *ifaceImpl, QWidget *parent, Qt::WindowFlags flags)
|
||||||
: QWidget(parent, flags)
|
: QWidget(parent, flags)
|
||||||
{
|
{
|
||||||
mBase = new RsGxsUpdateBroadcastBase(ifaceImpl, this);
|
mBase = new RsGxsUpdateBroadcastBase(ifaceImpl, this);
|
||||||
// The Queued connection is here to circumvent an apparent mutex problem in Qt
|
connect(mBase, SIGNAL(fillDisplay(bool)), this, SLOT(fillDisplay(bool)));
|
||||||
connect(mBase, SIGNAL(fillDisplay(bool)), this, SLOT(fillDisplay(bool)),Qt::QueuedConnection);
|
|
||||||
|
|
||||||
mInterfaceHelper = ifaceImpl;
|
mInterfaceHelper = ifaceImpl;
|
||||||
}
|
}
|
||||||
|
|
||||||
RsGxsUpdateBroadcastWidget::~RsGxsUpdateBroadcastWidget()
|
RsGxsUpdateBroadcastWidget::~RsGxsUpdateBroadcastWidget()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void RsGxsUpdateBroadcastWidget::fillComplete()
|
void RsGxsUpdateBroadcastWidget::fillComplete()
|
||||||
{
|
{
|
||||||
mBase->fillComplete();
|
mBase->fillComplete();
|
||||||
}
|
}
|
||||||
|
|
||||||
void RsGxsUpdateBroadcastWidget::setUpdateWhenInvisible(bool update)
|
void RsGxsUpdateBroadcastWidget::setUpdateWhenInvisible(bool update)
|
||||||
{
|
{
|
||||||
mBase->setUpdateWhenInvisible(update);
|
mBase->setUpdateWhenInvisible(update);
|
||||||
}
|
}
|
||||||
|
|
||||||
const std::set<RsGxsGroupId> &RsGxsUpdateBroadcastWidget::getGrpIds()
|
const std::list<RsGxsGroupId> &RsGxsUpdateBroadcastWidget::getGrpIds()
|
||||||
{
|
{
|
||||||
return mBase->getGrpIds();
|
return mBase->getGrpIds();
|
||||||
}
|
}
|
||||||
|
|
||||||
const std::set<RsGxsGroupId> &RsGxsUpdateBroadcastWidget::getGrpIdsMeta()
|
const std::list<RsGxsGroupId> &RsGxsUpdateBroadcastWidget::getGrpIdsMeta()
|
||||||
{
|
{
|
||||||
return mBase->getGrpIdsMeta();
|
return mBase->getGrpIdsMeta();
|
||||||
}
|
}
|
||||||
|
|
||||||
void RsGxsUpdateBroadcastWidget::getAllGrpIds(std::set<RsGxsGroupId> &grpIds)
|
void RsGxsUpdateBroadcastWidget::getAllGrpIds(std::list<RsGxsGroupId> &grpIds)
|
||||||
{
|
{
|
||||||
mBase->getAllGrpIds(grpIds);
|
mBase->getAllGrpIds(grpIds);
|
||||||
}
|
}
|
||||||
|
|
||||||
const std::map<RsGxsGroupId, std::set<RsGxsMessageId> > &RsGxsUpdateBroadcastWidget::getMsgIds()
|
const std::map<RsGxsGroupId, std::vector<RsGxsMessageId> > &RsGxsUpdateBroadcastWidget::getMsgIds()
|
||||||
{
|
{
|
||||||
return mBase->getMsgIds();
|
return mBase->getMsgIds();
|
||||||
}
|
}
|
||||||
|
|
||||||
const std::map<RsGxsGroupId, std::set<RsGxsMessageId> > &RsGxsUpdateBroadcastWidget::getMsgIdsMeta()
|
const std::map<RsGxsGroupId, std::vector<RsGxsMessageId> > &RsGxsUpdateBroadcastWidget::getMsgIdsMeta()
|
||||||
{
|
{
|
||||||
return mBase->getMsgIdsMeta();
|
return mBase->getMsgIdsMeta();
|
||||||
}
|
}
|
||||||
|
|
||||||
void RsGxsUpdateBroadcastWidget::getAllMsgIds(std::map<RsGxsGroupId, std::set<RsGxsMessageId> > &msgIds)
|
void RsGxsUpdateBroadcastWidget::getAllMsgIds(std::map<RsGxsGroupId, std::vector<RsGxsMessageId> > &msgIds)
|
||||||
{
|
{
|
||||||
mBase->getAllMsgIds(msgIds);
|
mBase->getAllMsgIds(msgIds);
|
||||||
}
|
}
|
||||||
|
|
||||||
void RsGxsUpdateBroadcastWidget::fillDisplay(bool complete)
|
void RsGxsUpdateBroadcastWidget::fillDisplay(bool complete)
|
||||||
{
|
{
|
||||||
updateDisplay(complete);
|
updateDisplay(complete);
|
||||||
update(); // Qt flush
|
update(); // Qt flush
|
||||||
}
|
}
|
||||||
|
|
||||||
void RsGxsUpdateBroadcastWidget::showEvent(QShowEvent *event)
|
void RsGxsUpdateBroadcastWidget::showEvent(QShowEvent *event)
|
||||||
{
|
{
|
||||||
mBase->showEvent(event);
|
mBase->showEvent(event);
|
||||||
QWidget::showEvent(event);
|
QWidget::showEvent(event);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue