/* * SPDX-FileCopyrightText: 2014-2015 Sebastian Kügler * * SPDX-License-Identifier: LGPL-2.1-or-later */ #pragma once #include #include // KWayland #include #include #include namespace KScreen { using namespace KWayland::Server; class WaylandConfigReader { public: // static QList outputsFromConfig(const QString &configfile, KWayland::Server::Display *display); static void outputsFromConfig(const QString &configfile, KWayland::Server::Display *display, QList &outputs); static OutputDeviceInterface *createOutputDevice(const QVariantMap &outputConfig, KWayland::Server::Display *display); static QList createOutputs(KWayland::Server::Display *display, QList &outputdevices); static QSize sizeFromJson(const QVariant &data); static QRect rectFromJson(const QVariant &data); static QPoint pointFromJson(const QVariant &data); }; } // namespace