mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-08 21:05:34 +08:00
Ref T709, added XSwiftBus settings class als based on the same Qt free base class
In order to compile included the cpp file
This commit is contained in:
committed by
Mat Sutcliffe
parent
03aca5d2a8
commit
2d2eca6ccd
30
src/xswiftbus/settings.cpp
Normal file
30
src/xswiftbus/settings.cpp
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
/* Copyright (C) 2019
|
||||||
|
* swift Project Community / Contributors
|
||||||
|
*
|
||||||
|
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
|
||||||
|
* directory of this distribution. No part of swift project, including this file, may be copied, modified, propagated,
|
||||||
|
* 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 "settings.h"
|
||||||
|
#include <string>
|
||||||
|
|
||||||
|
using namespace BlackMisc::Simulation::Settings;
|
||||||
|
|
||||||
|
namespace XSwiftBus
|
||||||
|
{
|
||||||
|
CSettings::CSettings() : CXSwiftBusSettingsQtFree()
|
||||||
|
{
|
||||||
|
// void
|
||||||
|
}
|
||||||
|
|
||||||
|
CSettings::~CSettings()
|
||||||
|
{
|
||||||
|
// void
|
||||||
|
}
|
||||||
|
} // ns
|
||||||
|
|
||||||
31
src/xswiftbus/settings.h
Normal file
31
src/xswiftbus/settings.h
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
/* Copyright (C) 2019
|
||||||
|
* swift Project Community / Contributors
|
||||||
|
*
|
||||||
|
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
|
||||||
|
* directory of this distribution. No part of swift project, including this file, may be copied, modified, propagated,
|
||||||
|
* or distributed except according to the terms contained in the LICENSE file.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef BLACKMISC_XSWIFTBUS_CSETTINGS_H
|
||||||
|
#define BLACKMISC_XSWIFTBUS_CSETTINGS_H
|
||||||
|
|
||||||
|
#include "blackmisc/simulation/settings/xswiftbussettingsqtfree.h"
|
||||||
|
#include <string>
|
||||||
|
|
||||||
|
namespace XSwiftBus
|
||||||
|
{
|
||||||
|
/*!
|
||||||
|
* XSwiftBus/swift side settings class, JSON capable, shared among all services
|
||||||
|
*/
|
||||||
|
class CSettings : public BlackMisc::Simulation::Settings::CXSwiftBusSettingsQtFree
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
//! Constructor.
|
||||||
|
CSettings();
|
||||||
|
|
||||||
|
//! Destructor;
|
||||||
|
~CSettings();
|
||||||
|
};
|
||||||
|
} // ns
|
||||||
|
|
||||||
|
#endif
|
||||||
Reference in New Issue
Block a user