File indexing completed on 2024-06-23 04:26:29

0001 /*
0002  *  SPDX-FileCopyrightText: 2020 Dmitrii Utkin <loentar@gmail.com>
0003  *
0004  *  SPDX-License-Identifier: LGPL-2.1-only
0005  */
0006 
0007 #ifndef RECORDER_CONFIG_H
0008 #define RECORDER_CONFIG_H
0009 
0010 #include "recorder_format.h"
0011 
0012 #include <QtGlobal>
0013 
0014 class KisConfig;
0015 
0016 class RecorderConfig
0017 {
0018 public:
0019     RecorderConfig(bool readOnly);
0020     ~RecorderConfig();
0021 
0022     QString snapshotDirectory() const;
0023     void setSnapshotDirectory(const QString &value);
0024 
0025     double captureInterval() const;
0026     void setCaptureInterval(double value);
0027 
0028     RecorderFormat format() const;
0029     void setFormat(RecorderFormat value);
0030 
0031     // for JPEG (0...100)
0032     int quality() const;
0033     void setQuality(int value);
0034 
0035     // for PNG (0...10)
0036     int compression() const;
0037     void setCompression(int value);
0038 
0039     int resolution() const;
0040     void setResolution(int value);
0041 
0042     int threads() const;
0043     void setThreads(int value);
0044 
0045     bool realTimeCaptureMode() const;
0046     void setRealTimeCaptureMode(bool value);
0047 
0048     bool recordIsolateLayerMode() const;
0049     void setRecordIsolateLayerMode(bool value);
0050 
0051     bool recordAutomatically() const;
0052     void setRecordAutomatically(bool value);
0053 
0054 private:
0055     Q_DISABLE_COPY(RecorderConfig)
0056     mutable KisConfig *config;
0057 };
0058 
0059 #endif // RECORDER_CONFIG_H