1 /* 2 * SPDX-FileCopyrightText: 2018 Red Hat Inc 3 * 4 * SPDX-License-Identifier: LGPL-2.0-or-later 5 * 6 * SPDX-FileCopyrightText: 2018 Jan Grulich <jgrulich@redhat.com> 7 */ 8 9 #ifndef XDG_DESKTOP_PORTAL_KDE_SCREENSHOT_H 10 #define XDG_DESKTOP_PORTAL_KDE_SCREENSHOT_H 11 12 #include <QDBusAbstractAdaptor> 13 #include <QDBusObjectPath> 14 15 class ScreenshotPortal : public QDBusAbstractAdaptor 16 { 17 Q_OBJECT 18 Q_CLASSINFO("D-Bus Interface", "org.freedesktop.impl.portal.Screenshot") 19 public: 20 struct ColorRGB { 21 double red; 22 double green; 23 double blue; 24 }; 25 26 explicit ScreenshotPortal(QObject *parent); 27 ~ScreenshotPortal(); 28 29 public Q_SLOTS: 30 uint Screenshot(const QDBusObjectPath &handle, const QString &app_id, const QString &parent_window, const QVariantMap &options, QVariantMap &results); 31 32 uint PickColor(const QDBusObjectPath &handle, const QString &app_id, const QString &parent_window, const QVariantMap &options, QVariantMap &results); 33 }; 34 35 #endif // XDG_DESKTOP_PORTAL_KDE_SCREENSHOT_H 36