File indexing completed on 2024-05-12 13:39:35
0001 /* 0002 * SPDX-FileCopyrightText: 2022 by Devin Lin <devin@kde.org> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include <QObject> 0010 #include <QVariantMap> 0011 0012 #include "screenshot2interface.h" 0013 0014 class ScreenShotUtil : public QObject 0015 { 0016 Q_OBJECT 0017 0018 public: 0019 ScreenShotUtil(QObject *parent = nullptr); 0020 0021 Q_INVOKABLE void takeScreenShot(); 0022 void handleMetaDataReceived(const QVariantMap &metadata, int fd); 0023 0024 private: 0025 OrgKdeKWinScreenShot2Interface *m_screenshotInterface; 0026 };