Changeset View
Changeset View
Standalone View
Standalone View
src/SpectacleDBusAdapter.cpp
Context not available. | |||||
38 | parent()->dbusStartAgent(); | 38 | parent()->dbusStartAgent(); | ||
---|---|---|---|---|---|
39 | } | 39 | } | ||
40 | 40 | | |||
41 | Q_NOREPLY void SpectacleDBusAdapter::FullScreen(bool includeMousePointer) | 41 | Q_NOREPLY void SpectacleDBusAdapter::FullScreen(bool includeMousePointer, bool shouldCopy, bool shouldSave) | ||
42 | { | 42 | { | ||
43 | parent()->takeNewScreenshot(ImageGrabber::FullScreen, 0, includeMousePointer, true); | 43 | parent()->takeNewScreenshot(ImageGrabber::FullScreen, 0, includeMousePointer, true, shouldCopy, shouldSave); | ||
44 | } | 44 | } | ||
45 | 45 | | |||
46 | Q_NOREPLY void SpectacleDBusAdapter::CurrentScreen(bool includeMousePointer) | 46 | Q_NOREPLY void SpectacleDBusAdapter::CurrentScreen(bool includeMousePointer, bool shouldCopy, bool shouldSave) | ||
47 | { | 47 | { | ||
48 | parent()->takeNewScreenshot(ImageGrabber::CurrentScreen, 0, includeMousePointer, true); | 48 | parent()->takeNewScreenshot(ImageGrabber::CurrentScreen, 0, includeMousePointer, true, shouldCopy, shouldSave); | ||
49 | } | 49 | } | ||
50 | 50 | | |||
51 | Q_NOREPLY void SpectacleDBusAdapter::ActiveWindow(bool includeWindowDecorations, bool includeMousePointer) | 51 | Q_NOREPLY void SpectacleDBusAdapter::ActiveWindow(bool includeWindowDecorations, bool includeMousePointer, bool shouldCopy, bool shouldSave) | ||
52 | { | 52 | { | ||
53 | parent()->takeNewScreenshot(ImageGrabber::ActiveWindow, 0, includeMousePointer, includeWindowDecorations); | 53 | parent()->takeNewScreenshot(ImageGrabber::ActiveWindow, 0, includeMousePointer, includeWindowDecorations, shouldCopy, shouldSave); | ||
54 | } | 54 | } | ||
55 | 55 | | |||
56 | Q_NOREPLY void SpectacleDBusAdapter::WindowUnderCursor(bool includeWindowDecorations, bool includeMousePointer) | 56 | Q_NOREPLY void SpectacleDBusAdapter::WindowUnderCursor(bool includeWindowDecorations, bool includeMousePointer, bool shouldCopy, bool shouldSave) | ||
57 | { | 57 | { | ||
58 | parent()->takeNewScreenshot(ImageGrabber::WindowUnderCursor, 0, includeMousePointer, includeWindowDecorations); | 58 | parent()->takeNewScreenshot(ImageGrabber::WindowUnderCursor, 0, includeMousePointer, includeWindowDecorations, shouldCopy, shouldSave); | ||
59 | } | 59 | } | ||
60 | 60 | | |||
61 | Q_NOREPLY void SpectacleDBusAdapter::RectangularRegion(bool includeMousePointer) | 61 | Q_NOREPLY void SpectacleDBusAdapter::RectangularRegion(bool includeMousePointer, bool shouldCopy, bool shouldSave) | ||
62 | { | 62 | { | ||
63 | parent()->takeNewScreenshot(ImageGrabber::RectangularRegion, 0, includeMousePointer, false); | 63 | parent()->takeNewScreenshot(ImageGrabber::RectangularRegion, 0, includeMousePointer, false, shouldCopy, shouldSave); | ||
64 | } | 64 | } | ||
Context not available. |