/* * SPDX-FileCopyrightText: 2022 by Devin Lin * * SPDX-License-Identifier: GPL-2.0-or-later */ #pragma once #include #include #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; };