mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
Summary: So far we were linking against the prebuilt FSUIPC user library, compiled with VS2010 many years ago. The source of this user library is part of the FSUIPC SDK, so we can benefit from modern compilers and include it into our source tree. This version contains some very small wide char fixes compared to the official FSUIPC SDK source. It also includes the new 64 bit version. Reviewers: #swift_pilot_client, msutcliffe Reviewed By: #swift_pilot_client, msutcliffe Differential Revision: https://dev.swift-project.org/D29
79 lines
1.9 KiB
C++
79 lines
1.9 KiB
C++
/* Copyright (C) 2017
|
|
* 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 and at http://www.swift-project.org/license.html. 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.
|
|
*/
|
|
|
|
#if !defined(SWIFT_USING_FSUIPC32) && !defined(SWIFT_USING_FSUIPC64)
|
|
|
|
#include "fsuipc.h"
|
|
|
|
using namespace BlackMisc::Simulation;
|
|
|
|
namespace BlackSimPlugin
|
|
{
|
|
namespace FsCommon
|
|
{
|
|
//! Dummy FsuipcWeatherMessage
|
|
struct CFsuipc::FsuipcWeatherMessage
|
|
{ };
|
|
|
|
CFsuipc::CFsuipc(QObject *parent)
|
|
: QObject(parent)
|
|
{ }
|
|
|
|
CFsuipc::~CFsuipc()
|
|
{ }
|
|
|
|
bool CFsuipc::connect()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
void CFsuipc::disconnect()
|
|
{ }
|
|
|
|
bool CFsuipc::isConnected() const
|
|
{
|
|
return false;
|
|
}
|
|
|
|
bool CFsuipc::write(const CSimulatedAircraft &aircraft)
|
|
{
|
|
Q_UNUSED(aircraft);
|
|
return false;
|
|
}
|
|
|
|
bool CFsuipc::write(const BlackMisc::Weather::CWeatherGrid &weatherGrid)
|
|
{
|
|
Q_UNUSED(weatherGrid);
|
|
return false;
|
|
}
|
|
|
|
QString CFsuipc::getVersion() const
|
|
{
|
|
return "N/A";
|
|
}
|
|
|
|
bool CFsuipc::read(CSimulatedAircraft &aircraft, bool cockpit, bool situation, bool aircraftParts)
|
|
{
|
|
Q_UNUSED(aircraft);
|
|
Q_UNUSED(cockpit);
|
|
Q_UNUSED(situation);
|
|
Q_UNUSED(aircraftParts);
|
|
return false;
|
|
}
|
|
|
|
void CFsuipc::timerEvent(QTimerEvent *event)
|
|
{
|
|
Q_UNUSED(event);
|
|
}
|
|
|
|
} // namespace
|
|
} // namespace
|
|
|
|
#endif // !defined(SWIFT_USING_FSUIPC32) && !defined(SWIFT_USING_FSUIPC64)
|