| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
#ifndef KSNIP_COMMANDLINECAPTUREPARAMETER_H |
| 21 |
#define KSNIP_COMMANDLINECAPTUREPARAMETER_H |
| 22 |
|
| 23 |
#include <QString> |
| 24 |
|
| 25 |
#include "src/common/enum/CaptureModes.h" |
| 26 |
|
| 27 |
struct CommandLineCaptureParameter |
| 28 |
{ |
| 29 |
CaptureModes captureMode = CaptureModes::RectArea; |
| 30 |
int delay = 0; |
| 31 |
bool isWithCursor = false; |
| 32 |
bool isWithSave = false; |
| 33 |
bool isWithUpload = false; |
| 34 |
QString savePath = QString(); |
| 35 |
|
| 36 |
explicit CommandLineCaptureParameter() = default; |
| 37 |
|
| 38 |
explicit CommandLineCaptureParameter(CaptureModes captureMode, int delay, bool isWithCursor) |
| 39 |
{ |
| 40 |
this->captureMode = captureMode; |
| 41 |
this->delay = delay; |
| 42 |
this->isWithCursor = isWithCursor; |
| 43 |
this->isWithSave = false; |
| 44 |
this->savePath = QString(); |
| 45 |
this->isWithUpload = false; |
| 46 |
} |
| 47 |
}; |
| 48 |
|
| 49 |
#endif |