Files
pilotclient/samples/blackmisc/samplesmetadata.cpp
Klaus Basan ca07e68c34 Improved samples and debugging information
* DBus test for CSimulatedAircraft
* Output of metatypes in GUI/core
* Changed output from qDebug() to QTextStream
* Variant test for CSimulatedAircraft
2015-01-25 03:55:39 +01:00

44 lines
1.2 KiB
C++

/* Copyright (C) 2013
* 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.
*/
#include "samplesmetadata.h"
#include "blackmisc/blackmiscfreefunctions.h"
#include "blackmisc/avatcstationlist.h"
#include <QDebug>
#include <QGuiApplication>
#include <QMetaType>
using namespace BlackMisc::Aviation;
using namespace BlackMisc::PhysicalQuantities;
using namespace BlackMisc::Geo;
using namespace BlackMisc::Network;
namespace BlackMiscTest
{
/*
* Samples
*/
int CSamplesMetadata::samples()
{
int argv = 0;
QTextStream cin(stdin);
QTextStream cout(stdout);
QGuiApplication dummy(argv, nullptr); // otherwise no QPixmap metadata
Q_UNUSED(dummy);
BlackMisc::registerMetadata();
BlackMisc::displayAllUserMetatypesTypes(cout);
cin.readLine();
cout << "------- Enter --------" << endl;
return 0;
}
} // namespace