thedesk/desktop-portal/screenshotmanager.h

30 lines
588 B
C
Raw Normal View History

2023-06-06 06:11:51 -04:00
#ifndef SCREENSHOTMANAGER_H
#define SCREENSHOTMANAGER_H
#include <QObject>
struct ScreenshotManagerPrivate;
class ScreenshotManager : public QObject {
Q_OBJECT
public:
explicit ScreenshotManager(QObject* parent = nullptr);
~ScreenshotManager();
2023-06-06 07:16:05 -04:00
void setupForTheDesk();
2023-06-06 06:11:51 -04:00
void showScreenshotWindows();
QPixmap finalPixmap();
bool accepted();
signals:
void finished();
private:
ScreenshotManagerPrivate* d;
void accept(QPixmap pixmap);
void reject();
};
#endif // SCREENSHOTMANAGER_H