swift
samplesfsx.cpp
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (C) 2014 swift Project Community / Contributors
2 // SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3 
6 
7 #include "samplesfsx.h"
8 
9 #include <QTextStream>
10 
11 #include "misc/registermetadata.h"
13 
14 using namespace swift::misc::simulation::fsx;
15 
16 namespace swift::sample
17 {
18  void CSamplesFsx::samplesMisc(QTextStream &streamOut)
19  {
22  CSimConnectUtilities::SIMCONNECT_EXCEPTION_ALREADY_SUBSCRIBED)
23  << Qt::endl;
25  CSimConnectUtilities::SIMCONNECT_EXCEPTION_ILLEGAL_OPERATION)
26  << Qt::endl;
27  streamOut << CSimConnectUtilities::simConnectSurfaceTypeToString(CSimConnectUtilities::Bituminus) << Qt::endl;
28  }
29 } // namespace swift::sample
static QString simConnectSurfaceTypeToString(const DWORD type, bool beautify=true)
Resolve SimConnect surface (based on Qt metadata).
static QString simConnectExceptionToString(const DWORD id)
Resolve SimConnect exception (based on Qt metadata).
void registerMetadata()
Register all relevant metadata in Misc.