1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#include <qpa/qplatformintegrationplugin.h>
5#include "qvncintegration.h"
6#include "qvnc_p.h"
7
8QT_BEGIN_NAMESPACE
9
10using namespace Qt::StringLiterals;
11
12class QVncIntegrationPlugin : public QPlatformIntegrationPlugin
13{
14 Q_OBJECT
15 Q_PLUGIN_METADATA(IID QPlatformIntegrationFactoryInterface_iid FILE "vnc.json")
16public:
17 QPlatformIntegration *create(const QString&, const QStringList&) override;
18};
19
20QPlatformIntegration* QVncIntegrationPlugin::create(const QString& system, const QStringList& paramList)
21{
22 if (!system.compare(other: "vnc"_L1, cs: Qt::CaseInsensitive))
23 return new QVncIntegration(paramList);
24
25 return nullptr;
26}
27
28QT_END_NAMESPACE
29
30#include "main.moc"
31
32

source code of qtbase/src/plugins/platforms/vnc/main.cpp