2020-02-21 00:45:53 +07:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "stfwd.h"
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
class Capturer
|
|
|
|
{
|
|
|
|
public:
|
2020-03-21 17:03:58 +07:00
|
|
|
Capturer(Manager &manager, const Settings &settings);
|
2020-03-22 15:36:31 +07:00
|
|
|
~Capturer();
|
2020-02-21 00:45:53 +07:00
|
|
|
|
|
|
|
void capture();
|
|
|
|
void repeatCapture();
|
2020-03-21 17:03:58 +07:00
|
|
|
void updateSettings();
|
2020-02-21 00:45:53 +07:00
|
|
|
|
|
|
|
void captured(const TaskPtr &task);
|
|
|
|
void canceled();
|
|
|
|
|
|
|
|
private:
|
2020-03-22 15:36:31 +07:00
|
|
|
void updatePixmap();
|
2020-02-21 00:45:53 +07:00
|
|
|
|
|
|
|
Manager &manager_;
|
2020-03-21 17:03:58 +07:00
|
|
|
const Settings &settings_;
|
2020-03-22 15:36:31 +07:00
|
|
|
std::unique_ptr<CaptureAreaSelector> selector_;
|
2020-02-21 00:45:53 +07:00
|
|
|
};
|