50 lines
1.1 KiB
C
50 lines
1.1 KiB
C
|
/*
|
||
|
SPDX-FileCopyrightText: 2014 Martin Gräßlin <mgraesslin@kde.org>
|
||
|
SPDX-FileCopyrightText: 2018 David Edmundson <davidedmundson@kde.org>
|
||
|
|
||
|
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
|
||
|
*/
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
#include <wayland-server-core.h>
|
||
|
|
||
|
#include <QList>
|
||
|
#include <QSocketNotifier>
|
||
|
#include <QString>
|
||
|
#include <QVector>
|
||
|
|
||
|
#include <EGL/egl.h>
|
||
|
|
||
|
namespace KWaylandServer
|
||
|
{
|
||
|
|
||
|
class ClientConnection;
|
||
|
class Display;
|
||
|
class OutputInterface;
|
||
|
class OutputDeviceInterface;
|
||
|
class SeatInterface;
|
||
|
|
||
|
class DisplayPrivate
|
||
|
{
|
||
|
public:
|
||
|
static DisplayPrivate *get(Display *display);
|
||
|
DisplayPrivate(Display *q);
|
||
|
|
||
|
void registerSocketName(const QString &socketName);
|
||
|
|
||
|
Display *q;
|
||
|
QSocketNotifier *socketNotifier = nullptr;
|
||
|
wl_display *display = nullptr;
|
||
|
wl_event_loop *loop = nullptr;
|
||
|
bool running = false;
|
||
|
QList<OutputInterface *> outputs;
|
||
|
QList<OutputDeviceInterface *> outputdevices;
|
||
|
QVector<SeatInterface *> seats;
|
||
|
QVector<ClientConnection *> clients;
|
||
|
QStringList socketNames;
|
||
|
EGLDisplay eglDisplay = EGL_NO_DISPLAY;
|
||
|
};
|
||
|
|
||
|
} // namespace KWaylandServer
|