mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 02:35:33 +08:00
[MinGW] Fix many unresolved symbols
This commit is contained in:
committed by
Mat Sutcliffe
parent
9bd2d294a3
commit
e0b52db77a
@@ -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
|
||||
Reference in New Issue
Block a user