Changeset View
Changeset View
Standalone View
Standalone View
src/SpectacleDBusAdapter.h
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Line(s) | 31 | Q_CLASSINFO("D-Bus Introspection", "" | |||
---|---|---|---|---|---|
43 | " <arg direction=\"in\" type=\"b\" name=\"includeMousePointer\"/>\n" | 43 | " <arg direction=\"in\" type=\"b\" name=\"includeMousePointer\"/>\n" | ||
44 | " </method>\n" | 44 | " </method>\n" | ||
45 | " <method name=\"WindowUnderCursor\">\n" | 45 | " <method name=\"WindowUnderCursor\">\n" | ||
46 | " <arg direction=\"in\" type=\"b\" name=\"includeWindowDecorations\"/>\n" | 46 | " <arg direction=\"in\" type=\"b\" name=\"includeWindowDecorations\"/>\n" | ||
47 | " <arg direction=\"in\" type=\"b\" name=\"includeMousePointer\"/>\n" | 47 | " <arg direction=\"in\" type=\"b\" name=\"includeMousePointer\"/>\n" | ||
48 | " </method>\n" | 48 | " </method>\n" | ||
49 | " <method name=\"RectangularRegion\">\n" | 49 | " <method name=\"RectangularRegion\">\n" | ||
50 | " <arg direction=\"in\" type=\"b\" name=\"includeMousePointer\"/>\n" | 50 | " <arg direction=\"in\" type=\"b\" name=\"includeMousePointer\"/>\n" | ||
51 | " <arg direction=\"in\" type=\"b\" name=\"theCopyToClipboard\"/>\n" | ||||
51 | " </method>\n" | 52 | " </method>\n" | ||
52 | " <signal name=\"ScreenshotTaken\">\n" | 53 | " <signal name=\"ScreenshotTaken\">\n" | ||
53 | " <arg direction=\"out\" type=\"s\" name=\"fileName\"/>\n" | 54 | " <arg direction=\"out\" type=\"s\" name=\"fileName\"/>\n" | ||
54 | " </signal>\n" | 55 | " </signal>\n" | ||
55 | " <signal name=\"ScreenshotFailed\">\n" | 56 | " <signal name=\"ScreenshotFailed\">\n" | ||
56 | " </signal>\n" | 57 | " </signal>\n" | ||
57 | " </interface>\n" | 58 | " </interface>\n" | ||
58 | "" | 59 | "" | ||
59 | ) | 60 | ) | ||
60 | 61 | | |||
61 | public: | 62 | public: | ||
62 | 63 | | |||
63 | SpectacleDBusAdapter(SpectacleCore *parent); | 64 | SpectacleDBusAdapter(SpectacleCore *parent); | ||
64 | virtual ~SpectacleDBusAdapter() = default; | 65 | virtual ~SpectacleDBusAdapter() = default; | ||
65 | 66 | | |||
66 | inline SpectacleCore *parent() const; | 67 | inline SpectacleCore *parent() const; | ||
67 | 68 | | |||
68 | public Q_SLOTS: | 69 | public Q_SLOTS: | ||
69 | 70 | | |||
70 | Q_NOREPLY void StartAgent(); | 71 | Q_NOREPLY void StartAgent(); | ||
71 | Q_NOREPLY void FullScreen(bool includeMousePointer); | 72 | Q_NOREPLY void FullScreen(bool includeMousePointer); | ||
72 | Q_NOREPLY void CurrentScreen(bool includeMousePointer); | 73 | Q_NOREPLY void CurrentScreen(bool includeMousePointer); | ||
73 | Q_NOREPLY void ActiveWindow(bool includeWindowDecorations, bool includeMousePointer); | 74 | Q_NOREPLY void ActiveWindow(bool includeWindowDecorations, bool includeMousePointer); | ||
74 | Q_NOREPLY void WindowUnderCursor(bool includeWindowDecorations, bool includeMousePointer); | 75 | Q_NOREPLY void WindowUnderCursor(bool includeWindowDecorations, bool includeMousePointer); | ||
75 | Q_NOREPLY void RectangularRegion(bool includeMousePointer); | 76 | Q_NOREPLY void RectangularRegion(bool includeMousePointer, bool theCopyToClipboard); | ||
76 | 77 | | |||
77 | Q_SIGNALS: | 78 | Q_SIGNALS: | ||
78 | 79 | | |||
79 | void ScreenshotTaken(const QString &fileName); | 80 | void ScreenshotTaken(const QString &fileName); | ||
80 | void ScreenshotFailed(); | 81 | void ScreenshotFailed(); | ||
81 | }; | 82 | }; |