Krita Source Code Documentation
Loading...
Searching...
No Matches
RecorderConfig Class Reference

#include <recorder_config.h>

Public Member Functions

double captureInterval () const
 
int compression () const
 
RecorderFormat format () const
 
int quality () const
 
bool realTimeCaptureMode () const
 
bool recordAutomatically () const
 
 RecorderConfig (bool readOnly)
 
bool recordIsolateLayerMode () const
 
int resolution () const
 
void setCaptureInterval (double value)
 
void setCompression (int value)
 
void setFormat (RecorderFormat value)
 
void setQuality (int value)
 
void setRealTimeCaptureMode (bool value)
 
void setRecordAutomatically (bool value)
 
void setRecordIsolateLayerMode (bool value)
 
void setResolution (int value)
 
void setSnapshotDirectory (const QString &value)
 
void setThreads (int value)
 
QString snapshotDirectory () const
 
int threads () const
 
 ~RecorderConfig ()
 

Private Attributes

KisConfigconfig
 

Detailed Description

Definition at line 16 of file recorder_config.h.

Constructor & Destructor Documentation

◆ RecorderConfig()

RecorderConfig::RecorderConfig ( bool readOnly)

Definition at line 29 of file recorder_config.cpp.

30 : config(new KisConfig(readOnly))
31{
32}
KisConfig * config

◆ ~RecorderConfig()

RecorderConfig::~RecorderConfig ( )

Definition at line 34 of file recorder_config.cpp.

35{
36 delete config;
37}

References config.

Member Function Documentation

◆ captureInterval()

double RecorderConfig::captureInterval ( ) const

Definition at line 51 of file recorder_config.cpp.

52{
53 return config->readEntry(keyCaptureInterval, 1.);
54}
T readEntry(const QString &name, const T &defaultValue=T())
Definition kis_config.h:789

References config, and KisConfig::readEntry().

◆ compression()

int RecorderConfig::compression ( ) const

Definition at line 84 of file recorder_config.cpp.

85{
86 return config->readEntry(keyCompression, 1);
87}

References config, and KisConfig::readEntry().

◆ format()

RecorderFormat RecorderConfig::format ( ) const

Definition at line 62 of file recorder_config.cpp.

63{
64 return static_cast<RecorderFormat>(config->readEntry(keyFormat, static_cast<int>(RecorderFormat::JPEG)));
65}
RecorderFormat

References config, JPEG, and KisConfig::readEntry().

◆ quality()

int RecorderConfig::quality ( ) const

Definition at line 73 of file recorder_config.cpp.

74{
75 return config->readEntry(keyQuality, 80);
76}

References config, and KisConfig::readEntry().

◆ realTimeCaptureMode()

bool RecorderConfig::realTimeCaptureMode ( ) const

Definition at line 115 of file recorder_config.cpp.

116{
117 return config->readEntry(keyRealTimeCaptureMode, false);
118}

References config, and KisConfig::readEntry().

◆ recordAutomatically()

bool RecorderConfig::recordAutomatically ( ) const

Definition at line 134 of file recorder_config.cpp.

135{
136 return config->readEntry(keyRecordAutomatically, false);
137}

References config, and KisConfig::readEntry().

◆ recordIsolateLayerMode()

bool RecorderConfig::recordIsolateLayerMode ( ) const

Definition at line 124 of file recorder_config.cpp.

125{
126 return config->readEntry(keyRecordIsolateLayerMode, false);
127}

References config, and KisConfig::readEntry().

◆ resolution()

int RecorderConfig::resolution ( ) const

Definition at line 95 of file recorder_config.cpp.

96{
97 return config->readEntry(keyResolution, 0);
98}

References config, and KisConfig::readEntry().

◆ setCaptureInterval()

void RecorderConfig::setCaptureInterval ( double value)

Definition at line 56 of file recorder_config.cpp.

57{
58 config->writeEntry(keyCaptureInterval, value);
59}
float value(const T *src, size_t ch)
void writeEntry(const QString &name, const T &value)
Definition kis_config.h:779

References config, value(), and KisConfig::writeEntry().

◆ setCompression()

void RecorderConfig::setCompression ( int value)

Definition at line 89 of file recorder_config.cpp.

90{
91 config->writeEntry(keyCompression, value);
92}

References config, value(), and KisConfig::writeEntry().

◆ setFormat()

void RecorderConfig::setFormat ( RecorderFormat value)

Definition at line 67 of file recorder_config.cpp.

68{
69 return config->writeEntry(keyFormat, static_cast<int>(value));
70}

References config, value(), and KisConfig::writeEntry().

◆ setQuality()

void RecorderConfig::setQuality ( int value)

Definition at line 78 of file recorder_config.cpp.

79{
80 config->writeEntry(keyQuality, value);
81}

References config, value(), and KisConfig::writeEntry().

◆ setRealTimeCaptureMode()

void RecorderConfig::setRealTimeCaptureMode ( bool value)

Definition at line 119 of file recorder_config.cpp.

120{
121 config->writeEntry(keyRealTimeCaptureMode, value);
122}

References config, value(), and KisConfig::writeEntry().

◆ setRecordAutomatically()

void RecorderConfig::setRecordAutomatically ( bool value)

Definition at line 139 of file recorder_config.cpp.

140{
141 config->writeEntry(keyRecordAutomatically, value);
142}

References config, value(), and KisConfig::writeEntry().

◆ setRecordIsolateLayerMode()

void RecorderConfig::setRecordIsolateLayerMode ( bool value)

Definition at line 129 of file recorder_config.cpp.

130{
131 config->writeEntry(keyRecordIsolateLayerMode, value);
132}

References config, value(), and KisConfig::writeEntry().

◆ setResolution()

void RecorderConfig::setResolution ( int value)

Definition at line 100 of file recorder_config.cpp.

101{
102 config->writeEntry(keyResolution, value);
103}

References config, value(), and KisConfig::writeEntry().

◆ setSnapshotDirectory()

void RecorderConfig::setSnapshotDirectory ( const QString & value)

Definition at line 45 of file recorder_config.cpp.

46{
47 config->writeEntry(keySnapshotDirectory, value);
48}

References config, value(), and KisConfig::writeEntry().

◆ setThreads()

void RecorderConfig::setThreads ( int value)

Definition at line 110 of file recorder_config.cpp.

111{
112 config->writeEntry(keyThreads, value);
113}

References config, value(), and KisConfig::writeEntry().

◆ snapshotDirectory()

QString RecorderConfig::snapshotDirectory ( ) const

Definition at line 40 of file recorder_config.cpp.

41{
42 return config->readEntry(keySnapshotDirectory, defaultSnapshotDirectory);
43}

References config, and KisConfig::readEntry().

◆ threads()

int RecorderConfig::threads ( ) const

Definition at line 105 of file recorder_config.cpp.

106{
107 return config->readEntry(keyThreads, 1);
108}

References config, and KisConfig::readEntry().

Member Data Documentation

◆ config

KisConfig* RecorderConfig::config
mutableprivate

Definition at line 56 of file recorder_config.h.


The documentation for this class was generated from the following files: