KWin
Loading...
Searching...
No Matches
clientconnection.h
Go to the documentation of this file.
1/*
2 SPDX-FileCopyrightText: 2014 Martin Gräßlin <mgraesslin@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5*/
6#pragma once
7
8#include "kwin_export.h"
9
10#include <sys/types.h>
11
12#include <QObject>
13#include <memory>
14
15struct wl_client;
16struct wl_resource;
17
18namespace KWin
19{
20class ClientConnectionPrivate;
21class Display;
22
31class KWIN_EXPORT ClientConnection : public QObject
32{
33 Q_OBJECT
34public:
36
40 void flush();
44 wl_resource *getResource(quint32 id) const;
45
49 wl_client *client() const;
53 Display *display() const;
54
63 pid_t processId() const;
72 uid_t userId() const;
81 gid_t groupId() const;
82
93 QString executablePath() const;
94
98 operator wl_client *();
102 operator wl_client *() const;
103
110 void destroy();
111
124 void setScaleOverride(qreal scaleOverride);
125 qreal scaleOverride() const;
126
127 void setSecurityContextAppId(const QString &appId);
128 QString securityContextAppId() const;
129
130Q_SIGNALS:
139
141
142private:
143 friend class Display;
144 explicit ClientConnection(wl_client *c, Display *parent);
145 std::unique_ptr<ClientConnectionPrivate> d;
146};
147
148}
149
Convenient Class which represents a wl_client.
void disconnected(KWin::ClientConnection *)
Class holding the Wayland server display loop.
Definition display.h:34
Q_DECLARE_METATYPE(KWin::SwitchEvent::State)
struct _XDisplay Display