File indexing completed on 2024-02-25 17:31:04

0001 /*
0002  * SPDX-FileCopyrightText: 2018 Red Hat Inc
0003  *
0004  * SPDX-License-Identifier: LGPL-2.0-or-later
0005  *
0006  * SPDX-FileCopyrightText: 2018 Jan Grulich <jgrulich@redhat.com>
0007  */
0008 
0009 #ifndef XDG_DESKTOP_PORTAL_KDE_SCREENSHOT_H
0010 #define XDG_DESKTOP_PORTAL_KDE_SCREENSHOT_H
0011 
0012 #include <QDBusAbstractAdaptor>
0013 #include <QDBusObjectPath>
0014 
0015 class ScreenshotPortal : public QDBusAbstractAdaptor
0016 {
0017     Q_OBJECT
0018     Q_CLASSINFO("D-Bus Interface", "org.freedesktop.impl.portal.Screenshot")
0019 public:
0020     struct ColorRGB {
0021         double red;
0022         double green;
0023         double blue;
0024     };
0025 
0026     explicit ScreenshotPortal(QObject *parent);
0027     ~ScreenshotPortal() override;
0028 
0029 public Q_SLOTS:
0030     uint Screenshot(const QDBusObjectPath &handle, const QString &app_id, const QString &parent_window, const QVariantMap &options, QVariantMap &results);
0031 
0032     uint PickColor(const QDBusObjectPath &handle, const QString &app_id, const QString &parent_window, const QVariantMap &options, QVariantMap &results);
0033 };
0034 
0035 #endif // XDG_DESKTOP_PORTAL_KDE_SCREENSHOT_H