| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
#ifndef GNOMEWAYLANDIMAGEGRABBER_H |
| 21 |
#define GNOMEWAYLANDIMAGEGRABBER_H |
| 22 |
|
| 23 |
#include <QtDBus/QDBusConnection> |
| 24 |
#include <QtDBus/QDBusInterface> |
| 25 |
#include <QtDBus/QDBusReply> |
| 26 |
|
| 27 |
#include "AbstractRectAreaImageGrabber.h" |
| 28 |
#include "src/common/helper/MathHelper.h" |
| 29 |
#include "src/gui/snippingArea/WaylandSnippingArea.h" |
| 30 |
|
| 31 |
class GnomeWaylandImageGrabber : public AbstractRectAreaImageGrabber |
| 32 |
{ |
| 33 |
public: |
| 34 |
explicit GnomeWaylandImageGrabber(const QSharedPointer<IConfig> &config); |
| 35 |
QRect fullScreenRect() const override; |
| 36 |
QRect activeWindowRect() const override; |
| 37 |
|
| 38 |
protected: |
| 39 |
void grab() override; |
| 40 |
CursorDto getCursorWithPosition() const override; |
| 41 |
|
| 42 |
private: |
| 43 |
void postProcessing(const QPixmap &pixmap); |
| 44 |
QString tmpScreenshotFilename() const; |
| 45 |
}; |
| 46 |
|
| 47 |
#endif |