Warning, file /plasma/plasma-mobile/quicksettings/screenshot/screenshotutil.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
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 };