mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 01:05:34 +08:00
refs #768, wizard allowing to map models from pilot client
* step by step guiding thru mapping steps * single model write function in writer * adjusted stylesheet
This commit is contained in:
@@ -40,6 +40,11 @@ namespace BlackCore
|
||||
// void
|
||||
}
|
||||
|
||||
CStatusMessageList CDatabaseWriter::asyncPublishModel(const CAircraftModel &model)
|
||||
{
|
||||
return this->asyncPublishModels(CAircraftModelList({ model }));
|
||||
}
|
||||
|
||||
CStatusMessageList CDatabaseWriter::asyncPublishModels(const CAircraftModelList &models)
|
||||
{
|
||||
CStatusMessageList msgs;
|
||||
|
||||
@@ -36,7 +36,10 @@ namespace BlackCore
|
||||
//! Constructor
|
||||
CDatabaseWriter(const BlackMisc::Network::CUrl &baseUrl, QObject *parent);
|
||||
|
||||
//! Write model to DB
|
||||
//! Write models to DB
|
||||
BlackMisc::CStatusMessageList asyncPublishModel(const BlackMisc::Simulation::CAircraftModel &model);
|
||||
|
||||
//! Write models to DB
|
||||
BlackMisc::CStatusMessageList asyncPublishModels(const BlackMisc::Simulation::CAircraftModelList &models);
|
||||
|
||||
//! Shutdown
|
||||
@@ -54,10 +57,10 @@ namespace BlackCore
|
||||
void ps_postModelsResponse(QNetworkReply *nwReplyPtr);
|
||||
|
||||
private:
|
||||
BlackMisc::Network::CUrl m_modelPublishUrl;
|
||||
QNetworkReply *m_pendingReply = nullptr;
|
||||
qint64 m_replyPendingSince = -1;
|
||||
bool m_shutdown = false;
|
||||
BlackMisc::Network::CUrl m_modelPublishUrl;
|
||||
QNetworkReply *m_pendingReply = nullptr;
|
||||
qint64 m_replyPendingSince = -1;
|
||||
bool m_shutdown = false;
|
||||
|
||||
//! Kill the pending reply
|
||||
bool killPendingReply();
|
||||
|
||||
Reference in New Issue
Block a user