Changeset View
Changeset View
Standalone View
Standalone View
src/screenshot.h
- This file was added.
1 | /* | ||||
---|---|---|---|---|---|
2 | * Copyright © 2018 Red Hat, Inc | ||||
3 | * | ||||
4 | * This program is free software; you can redistribute it and/or | ||||
5 | * modify it under the terms of the GNU Lesser General Public | ||||
6 | * License as published by the Free Software Foundation; either | ||||
7 | * version 2 of the License, or (at your option) any later version. | ||||
8 | * | ||||
9 | * This library is distributed in the hope that it will be useful, | ||||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||||
12 | * Lesser General Public License for more details. | ||||
13 | * | ||||
14 | * You should have received a copy of the GNU Lesser General Public | ||||
15 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. | ||||
16 | * | ||||
17 | * Authors: | ||||
18 | * Jan Grulich <jgrulich@redhat.com> | ||||
19 | */ | ||||
20 | | ||||
21 | #ifndef XDG_DESKTOP_PORTAL_KDE_SCREENSHOT_H | ||||
22 | #define XDG_DESKTOP_PORTAL_KDE_SCREENSHOT_H | ||||
23 | | ||||
24 | #include <QDBusAbstractAdaptor> | ||||
25 | #include <QDBusObjectPath> | ||||
26 | | ||||
27 | class ScreenshotPortal : public QDBusAbstractAdaptor | ||||
28 | { | ||||
29 | Q_OBJECT | ||||
30 | Q_CLASSINFO("D-Bus Interface", "org.freedesktop.impl.portal.Screenshot") | ||||
31 | public: | ||||
32 | ScreenshotPortal(QObject *parent); | ||||
33 | ~ScreenshotPortal(); | ||||
34 | | ||||
35 | public Q_SLOTS: | ||||
36 | uint Screenshot(const QDBusObjectPath &handle, | ||||
37 | const QString &app_id, | ||||
38 | const QString &parent_window, | ||||
39 | const QVariantMap &options, | ||||
40 | QVariantMap &results); | ||||
41 | }; | ||||
42 | | ||||
43 | #endif // XDG_DESKTOP_PORTAL_KDE_SCREENSHOT_H |