mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
27 lines
500 B
C
27 lines
500 B
C
|
|
/*
|
||
|
|
* SPDX-FileCopyrightText: 2022 by Devin Lin <devin@kde.org>
|
||
|
|
*
|
||
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
||
|
|
*/
|
||
|
|
|
||
|
|
#pragma once
|
||
|
|
|
||
|
|
#include <QObject>
|
||
|
|
#include <QVariantMap>
|
||
|
|
|
||
|
|
#include "screenshot2interface.h"
|
||
|
|
|
||
|
|
class ScreenShotUtil : public QObject
|
||
|
|
{
|
||
|
|
Q_OBJECT
|
||
|
|
|
||
|
|
public:
|
||
|
|
ScreenShotUtil(QObject *parent = nullptr);
|
||
|
|
|
||
|
|
Q_INVOKABLE void takeScreenShot();
|
||
|
|
void handleMetaDataReceived(const QVariantMap &metadata, int fd);
|
||
|
|
|
||
|
|
private:
|
||
|
|
OrgKdeKWinScreenShot2Interface *m_screenshotInterface;
|
||
|
|
};
|