refs #497, improved URL and network utils

* utility functions
* URL, allow to switch to https
* Adjusted database writer
This commit is contained in:
Klaus Basan
2015-10-29 03:03:53 +01:00
committed by Mathew Sutcliffe
parent 03f4aa6889
commit 7cb4c6a6c6
6 changed files with 86 additions and 21 deletions

View File

@@ -13,6 +13,7 @@
//! \file
#include "blackcore/blackcoreexport.h"
#include "blackcore/data/globalsetup.h"
#include "blackmisc/threadedreader.h"
#include "blackmisc/simulation/aircraftmodel.h"
@@ -42,11 +43,11 @@ namespace BlackCore
void ps_postResponse(QNetworkReply *nwReplyPtr);
private:
BlackMisc::Network::CUrl m_modelUrl;
QNetworkAccessManager *m_networkManager = nullptr;
QNetworkReply *m_pendingReply = nullptr;
bool m_shutdown = false;
bool m_phpDebug = true;
CData<BlackCore::Data::GlobalSetup> m_setup {this}; //!< data cache
BlackMisc::Network::CUrl m_modelUrl;
QNetworkAccessManager *m_networkManager = nullptr;
QNetworkReply *m_pendingReply = nullptr;
bool m_shutdown = false;
//! URL model web service
static BlackMisc::Network::CUrl getModelWriteUrl(const BlackMisc::Network::CUrl &baseUrl);