mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 21:15:33 +08:00
refs #602, emoved web service provider
* webservices now directly accessible via sGui * interface no longer needed * no init of provider (setProvider) needed anymore
This commit is contained in:
committed by
Mathew Sutcliffe
parent
a0cfa2e687
commit
79f95845b2
@@ -11,9 +11,11 @@
|
||||
#include "dbautostashingcomponent.h"
|
||||
#include "dbmappingcomponent.h"
|
||||
#include "dbstashcomponent.h"
|
||||
#include "blackgui/guiapplication.h"
|
||||
#include "blackmisc/simulation/aircraftmodellist.h"
|
||||
#include <QIntValidator>
|
||||
|
||||
using namespace BlackCore;
|
||||
using namespace BlackMisc;
|
||||
using namespace BlackMisc::Network;
|
||||
using namespace BlackMisc::Simulation;
|
||||
@@ -33,20 +35,13 @@ namespace BlackGui
|
||||
this->ui->tvp_StatusMessages->menuAddItems(CAircraftModelView::MenuSave);
|
||||
this->ui->le_MaxModelsStashed->setValidator(new QIntValidator(10, CDbStashComponent::MaxModelPublished, this));
|
||||
Q_ASSERT_X(this->getMappingComponent(), Q_FUNC_INFO, "Expect mapping componet");
|
||||
|
||||
connect(sGui->getWebDataServices(), &CWebDataServices::dataRead, this, &CDbAutoStashingComponent::ps_entitiesRead);
|
||||
}
|
||||
|
||||
CDbAutoStashingComponent::~CDbAutoStashingComponent()
|
||||
{ }
|
||||
|
||||
void CDbAutoStashingComponent::setProvider(IWebDataServicesProvider *webDataReaderProvider)
|
||||
{
|
||||
CWebDataServicesAware::setProvider(webDataReaderProvider);
|
||||
connectDataReadSignal(
|
||||
this,
|
||||
std::bind(&CDbAutoStashingComponent::ps_entitiesRead, this, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3)
|
||||
);
|
||||
}
|
||||
|
||||
void CDbAutoStashingComponent::accept()
|
||||
{
|
||||
if (m_state == Running) { return; }
|
||||
|
||||
Reference in New Issue
Block a user