38 lines
1.2 KiB
C++
Executable File
38 lines
1.2 KiB
C++
Executable File
/**
|
|
* UAS Plugin Interface Factory
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Mike Wille, ESZS, 2025-04-17
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <QObject>
|
|
#include <QHostInfo>
|
|
|
|
#include <TrainingAreaBase/tab_plugin_interface.h>
|
|
|
|
|
|
namespace UAS
|
|
{
|
|
class TabPluginUAS : public QObject, public TrainingAreaBase::Plugin::Plugin
|
|
{
|
|
Q_OBJECT
|
|
Q_PLUGIN_METADATA(IID "special:3:tab.uas")
|
|
Q_INTERFACES(TrainingAreaBase::Plugin::Plugin)
|
|
|
|
private:
|
|
bool hostAvailable(QString hostname);
|
|
|
|
public:
|
|
TabPluginUAS() = default;
|
|
virtual ~TabPluginUAS() = default;
|
|
std::shared_ptr<TrainingAreaBase::Plugin::Interface> createInterface(TrainingAreaBase::Plugin::DataProvider *dataProvider,
|
|
const std::shared_ptr<TrainingAreaBase::RecvFromTab> &recvFromTabCb,
|
|
const std::shared_ptr<TrainingAreaBase::TxMixin> &sendToTabCb,
|
|
const std::shared_ptr<TrainingAreaBase::DdsHandler> &ddsHandler,
|
|
NGL::Settings *settings) override;
|
|
};
|
|
} // namespace UAS
|