mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-09 13:35:34 +08:00
#refs 185 , added samples for blacksim classes
This commit is contained in:
@@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
#include "blacksim/blacksimfreefunctions.h"
|
#include "blacksim/blacksimfreefunctions.h"
|
||||||
#include "samplesfscommon.h"
|
#include "samplesfscommon.h"
|
||||||
|
#include "samplesfsx.h"
|
||||||
#include <QCoreApplication>
|
#include <QCoreApplication>
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
@@ -13,7 +14,8 @@
|
|||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
BlackSim::registerMetadata();
|
BlackSim::registerMetadata();
|
||||||
BlackSimTest::CSamplesFsCommon::samples();
|
// BlackSimTest::CSamplesFsCommon::samples();
|
||||||
|
BlackSimTest::CSamplesFsx::samples();
|
||||||
QCoreApplication a(argc, argv);
|
QCoreApplication a(argc, argv);
|
||||||
return a.exec();
|
return a.exec();
|
||||||
}
|
}
|
||||||
|
|||||||
28
samples/blacksim/samplesfsx.cpp
Normal file
28
samples/blacksim/samplesfsx.cpp
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
/* Copyright (C) 2013 VATSIM Community / contributors
|
||||||
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
|
#include "samplesfsx.h"
|
||||||
|
#include "blacksim/blacksimfreefunctions.h"
|
||||||
|
#include "blacksim/fsx/simconnectutilities.h"
|
||||||
|
#include <QDebug>
|
||||||
|
|
||||||
|
using namespace BlackSim::Fsx;
|
||||||
|
|
||||||
|
namespace BlackSimTest
|
||||||
|
{
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Samples
|
||||||
|
*/
|
||||||
|
int CSamplesFsx::samples()
|
||||||
|
{
|
||||||
|
BlackSim::registerMetadata();
|
||||||
|
qDebug() << CSimConnectUtilities::simConnectExceptionToString(CSimConnectUtilities::SIMCONNECT_EXCEPTION_ALREADY_SUBSCRIBED);
|
||||||
|
qDebug() << CSimConnectUtilities::simConnectExceptionToString(CSimConnectUtilities::SIMCONNECT_EXCEPTION_ILLEGAL_OPERATION);
|
||||||
|
qDebug() << CSimConnectUtilities::simConnectSurfaceTypeToString(CSimConnectUtilities::Bituminus);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
} // namespace
|
||||||
24
samples/blacksim/samplesfsx.h
Normal file
24
samples/blacksim/samplesfsx.h
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
/* Copyright (C) 2013 VATSIM Community / contributors
|
||||||
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
|
#ifndef BLACKSIMTEST_SAMPLESFSX_H
|
||||||
|
#define BLACKSIMTEST_SAMPLESFSX_H
|
||||||
|
|
||||||
|
namespace BlackSimTest
|
||||||
|
{
|
||||||
|
/*!
|
||||||
|
* \brief Samples for FSX classes
|
||||||
|
*/
|
||||||
|
class CSamplesFsx
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
/*!
|
||||||
|
* \brief Run the samples
|
||||||
|
*/
|
||||||
|
static int samples();
|
||||||
|
};
|
||||||
|
} // namespace
|
||||||
|
|
||||||
|
#endif
|
||||||
Reference in New Issue
Block a user