mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 10:15:38 +08:00
[MinGW] Fix many unresolved symbols
This commit is contained in:
committed by
Klaus Basan
parent
6adae534ec
commit
0c72fbbb65
@@ -7,6 +7,7 @@
|
||||
*/
|
||||
|
||||
#include "xswiftbussettings.h"
|
||||
#include "xswiftbussettingsqtfree.hpp"
|
||||
|
||||
namespace BlackMisc
|
||||
{
|
||||
|
||||
@@ -10,7 +10,9 @@
|
||||
#define BLACKMISC_SIMULATION_SETTINGS_CXSWIFTBUSSETTINGSQTFREE_H
|
||||
|
||||
#include "blackmisc/simulation/xplane/qtfreeutils.h"
|
||||
|
||||
#include <string>
|
||||
#include <chrono>
|
||||
|
||||
namespace BlackMisc
|
||||
{
|
||||
@@ -26,10 +28,10 @@ namespace BlackMisc
|
||||
{
|
||||
protected:
|
||||
//! Constructor.
|
||||
CXSwiftBusSettingsQtFree();
|
||||
CXSwiftBusSettingsQtFree() {}
|
||||
|
||||
//! Destructor.
|
||||
~CXSwiftBusSettingsQtFree() = default;
|
||||
virtual ~CXSwiftBusSettingsQtFree() {}
|
||||
|
||||
public:
|
||||
//! DBus server
|
||||
@@ -132,7 +134,12 @@ namespace BlackMisc
|
||||
int update(const CXSwiftBusSettingsQtFree &newValues);
|
||||
|
||||
//! Sets timestamp to now
|
||||
virtual void setCurrentUtcTime();
|
||||
virtual void setCurrentUtcTime()
|
||||
{
|
||||
using namespace std::chrono;
|
||||
const milliseconds ms = duration_cast<milliseconds>(system_clock::now().time_since_epoch());
|
||||
m_msSinceEpochQtFree = static_cast<int64_t>(ms.count());
|
||||
}
|
||||
|
||||
protected:
|
||||
//! The JSON members @{
|
||||
|
||||
@@ -37,9 +37,6 @@ namespace BlackMisc
|
||||
{
|
||||
namespace Settings
|
||||
{
|
||||
CXSwiftBusSettingsQtFree::CXSwiftBusSettingsQtFree()
|
||||
{}
|
||||
|
||||
bool CXSwiftBusSettingsQtFree::parseXSwiftBusString(const std::string &json)
|
||||
{
|
||||
if (json.empty()) { return false; }
|
||||
@@ -152,12 +149,6 @@ namespace BlackMisc
|
||||
return changed;
|
||||
}
|
||||
|
||||
void CXSwiftBusSettingsQtFree::setCurrentUtcTime()
|
||||
{
|
||||
using namespace std::chrono;
|
||||
const milliseconds ms = duration_cast<milliseconds>(system_clock::now().time_since_epoch());
|
||||
m_msSinceEpochQtFree = static_cast<int64_t>(ms.count());
|
||||
}
|
||||
} // ns
|
||||
} // ns
|
||||
} // ns
|
||||
@@ -15,6 +15,7 @@
|
||||
#include "blackmisc/simulation/aircraftmodel.h"
|
||||
#include "blackmisc/simulation/simulatedaircraft.h"
|
||||
#include "blackmisc/simulation/simulatedaircraftlist.h"
|
||||
#include "blackmisc/simulation/settings/xswiftbussettingsqtfree.hpp"
|
||||
#include "blackmisc/weather/cloudlayer.h"
|
||||
#include "blackmisc/weather/cloudlayerlist.h"
|
||||
#include "blackmisc/weather/gridpoint.h"
|
||||
|
||||
@@ -6,10 +6,7 @@
|
||||
* or distributed except according to the terms contained in the LICENSE file.
|
||||
*/
|
||||
|
||||
// include whole code in this translation unit, as this code is used on swift/and XSWiftBus side
|
||||
// BLACKMISC_EXPORT cannot be used
|
||||
#include "blackmisc/simulation/settings/xswiftbussettingsqtfree.cpp"
|
||||
|
||||
#include "blackmisc/simulation/settings/xswiftbussettingsqtfree.hpp"
|
||||
#include "settings.h"
|
||||
#include <string>
|
||||
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
|
||||
#include "blackmisc/simulation/xplane/qtfreeutils.h"
|
||||
#include "blackmisc/simulation/settings/xswiftbussettings.h"
|
||||
#include "blackmisc/simulation/settings/xswiftbussettingsqtfree.hpp"
|
||||
#include "blackmisc/directoryutils.h"
|
||||
#include "test.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user