usepadPlugin::MousepadPlugin(QObject *parent, const QVariantList &args)
: KdeConnectPlugin(parent, args)
, m_impl(nullptr)
{
#if HAVE_WINDOWS
m_impl = new WindowsRemoteInput(this);
#elif HAVE_MACOS
m_impl = new MacOSRemoteInput(this);
#else
#if HAVE_X11
if (QGuiApplication::platformName() == QLatin1String("xcb")) {
m_impl = new X11RemoteInput(this);
}
#endif
#if HAVE_WAYLAND
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive)) {
m_impl = new WaylandRemoteInput(this);
}
#endif
#endif
if (!m_impl) {
qDebug() << "KDE Connect was built without" << QGuiApplication::platformName() << "support";
}
}
Constructs a KdeConnectPlugin object and its m_impl.