2018-11-14 15:14:40 -05:00
|
|
|
/*******************************************************************************
|
|
|
|
* retroshare-gui/src/gui/gxs/RsGxsUpdateBroadcastPage.cpp *
|
|
|
|
* *
|
|
|
|
* Copyright 2014 Retroshare Team <retroshare.project@gmail.com> *
|
|
|
|
* *
|
|
|
|
* This program is free software: you can redistribute it and/or modify *
|
|
|
|
* it under the terms of the GNU Affero General Public License as *
|
|
|
|
* published by the Free Software Foundation, either version 3 of the *
|
|
|
|
* License, or (at your option) any later version. *
|
|
|
|
* *
|
|
|
|
* This program is distributed in the hope that it will be useful, *
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
|
|
|
* GNU Affero General Public License for more details. *
|
|
|
|
* *
|
|
|
|
* You should have received a copy of the GNU Affero General Public License *
|
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>. *
|
|
|
|
* *
|
|
|
|
*******************************************************************************/
|
|
|
|
|
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-23 16:25:36 -04:00
|
|
|
const std::set<TurtleRequestId>& RsGxsUpdateBroadcastPage::getSearchResults()
|
|
|
|
{
|
|
|
|
return mBase->getSearchResults();
|
|
|
|
}
|
|
|
|
|
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);
|
|
|
|
}
|