KWin
Loading...
Searching...
No Matches
killprompt.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2023 Kai Uwe Broulik <kde@broulik.de>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#pragma once
8
9#include <QProcess>
10
11namespace KWin
12{
13
14class Window;
15
17{
18public:
23 explicit KillPrompt(Window *window);
24
28 bool isRunning() const;
29
34 void start(quint32 timestamp = 0);
38 void quit();
39
40private:
41 Window *m_window = nullptr;
42 QProcess m_process;
43};
44
45} // namespace KWin
bool isRunning() const
Whether the kill helper process is currently running.
void quit()
Terminate the kill helper process.
KillPrompt(Window *window)
Creates a kill helper process.
void start(quint32 timestamp=0)
Starts the kill helper process.