FotoBox
FotoBox::PreferenceProvider Class Reference

Preference who stores the preferences. More...

#include <preferenceprovider.h>

+ Inheritance diagram for FotoBox::PreferenceProvider:
+ Collaboration diagram for FotoBox::PreferenceProvider:

Public Slots

void setPhotoFolder (const QString &i_value)
 set photo output directory More...
 
void setPhotoName (const QString &i_value)
 set photo name template More...
 
void setCountdownColor (const QString &i_value)
 set font color of the countdown More...
 
void setBackgroundColor (const QString &i_value)
 set background color of the FotoBox UI More...
 
void setCameraMode (const QString &i_value)
 set the camera framework to be used More...
 
void setArgumentLine (const QString &i_value)
 set camera framework arguments More...
 
void setCountdown (int i_value)
 set countdown until photo is taken More...
 
void setInputPin (unsigned int i_value)
 set pigpio GPIO input pin More...
 
void setOutputPin (unsigned int i_value)
 set pigpio GPIO output pin More...
 
void setQueryInterval (unsigned int i_value)
 set how often the pin should be queried More...
 
void setTimeoutValue (int i_value)
 set timeout value for the camera framework More...
 
void setGrayscale (bool i_value)
 set grayscale bool (monochrome photography) More...
 
void setShowButtons (bool i_value)
 set whether buttons are displayed on the UI More...
 
void setPrint (bool i_value)
 set print on or off More...
 
void setPrinterName (const QString &i_value)
 set printer name More...
 

Signals

void photoFolderChanged (QString)
 signal: photo output directory has changed More...
 
void photoNameChanged (QString)
 signal: photo name template has changed More...
 
void countdownColorChanged (QString)
 signal: font color of the countdown has changed More...
 
void backgroundColorChanged (QString)
 signal: background color of the FotoBox UI has changed More...
 
void cameraModeChanged (QString)
 signal: the camera framework to be used has changed More...
 
void argumentLineChanged (QString)
 signal: camera framework arguments has changed More...
 
void countdownChanged (int)
 signal: countdown until photo is taken has changed More...
 
void inputPinChanged (unsigned int)
 signal: pigpio GPIO input pin has changed More...
 
void outputPinChanged (unsigned int)
 signal: pigpio GPIO output pin has changed More...
 
void queryIntervalChanged (unsigned int)
 signal: how often the pin should be queried has changed More...
 
void timeoutValueChanged (int)
 signal: timeout value for the camera framework has changed More...
 
void grayscaleChanged (bool)
 signal: grayscale (monochrome photography) has changed More...
 
void showButtonsChanged (bool)
 signal: whether buttons are displayed on the UI has changed More...
 
void printChanged (bool)
 signal: print has changed More...
 
void printerNameChanged (QString)
 signal: printer name has changed More...
 

Public Member Functions

 PreferenceProvider (const PreferenceProvider &)=delete
 PreferenceProvider delete copy constructor (Singleton) More...
 
PreferenceProvideroperator= (const PreferenceProvider &)=delete
 PreferenceProvider delete copy assignment (Singleton) More...
 
 PreferenceProvider (PreferenceProvider &&other)=delete
 PreferenceProvider delete move constructor (Singleton) More...
 
PreferenceProvideroperator= (PreferenceProvider &&other)=delete
 PreferenceProvider delete move assignment (Singleton) More...
 
auto photoFolder () const -> QString
 photo output directory More...
 
auto photoName () const -> QString
 photo name template More...
 
auto countdownColor () const -> QString
 font color of the countdown More...
 
auto backgroundColor () const -> QString
 background color of the FotoBox UI More...
 
QString cameraMode () const
 the camera framework to be used More...
 
auto argumentLine () const -> QString
 camera framework arguments More...
 
auto countdown () const -> int
 countdown until photo is taken More...
 
auto inputPin () const -> unsigned int
 pigpio GPIO input pin More...
 
auto outputPin () const -> unsigned int
 pigpio GPIO output pin More...
 
auto queryInterval () const -> unsigned int
 how often the pin should be queried More...
 
auto timeoutValue () const -> int
 timeout value for the camera framework More...
 
auto grayscale () const -> bool
 show photo in grayscale (monochrome photography) More...
 
auto showButtons () const -> bool
 buttons are displayed on the UI More...
 
auto print () const -> bool
 print on or off More...
 
auto printerName () const -> QString
 printer name More...
 

Static Public Member Functions

static PreferenceProviderinstance ()
 get instance (Meyers Singleton) More...
 

Properties

QString photoFolder
 
QString photoName
 
QString countdownColor
 
QString backgroundColor
 
QString cameraMode
 
QString argumentLine
 
int countdown
 
unsigned int inputPin
 
unsigned int outputPin
 
unsigned int queryInterval
 
int timeoutValue
 
bool grayscale
 
bool showButtons
 
bool print
 
QString printerName
 

Private Member Functions

 PreferenceProvider (QObject *parent=nullptr)
 hide Preferences default constructor (Singleton) More...
 
 ~PreferenceProvider () override=default
 hide Preferences destructor (Singleton) More...
 

Private Attributes

QString m_photoFolder
 
QString m_photoName
 
QString m_countdownColor
 
QString m_backgroundColor
 
QString m_cameraMode
 
QString m_argumentLine
 
int m_countdown = 0
 
unsigned int m_inputPin = 0
 
unsigned int m_outputPin = 0
 
unsigned int m_queryInterval = 0
 
int m_timeoutValue = 0
 
bool m_grayscale = false
 
bool m_showButtons = false
 
bool m_print = false
 
QString m_printerName
 

Detailed Description

Preference who stores the preferences.

Definition at line 18 of file preferenceprovider.h.

Constructor & Destructor Documentation

◆ PreferenceProvider() [1/3]

FotoBox::PreferenceProvider::PreferenceProvider ( QObject *  parent = nullptr)
explicitprivate

hide Preferences default constructor (Singleton)

Parameters
parentQObject

Definition at line 19 of file preferenceprovider.cpp.

19  : QObject(nullptr)
20 {
21 
22 }

◆ ~PreferenceProvider()

FotoBox::PreferenceProvider::~PreferenceProvider ( )
overrideprivatedefault

hide Preferences destructor (Singleton)

◆ PreferenceProvider() [2/3]

FotoBox::PreferenceProvider::PreferenceProvider ( const PreferenceProvider )
delete

PreferenceProvider delete copy constructor (Singleton)

◆ PreferenceProvider() [3/3]

FotoBox::PreferenceProvider::PreferenceProvider ( PreferenceProvider &&  other)
delete

PreferenceProvider delete move constructor (Singleton)

Member Function Documentation

◆ argumentLine()

auto FotoBox::PreferenceProvider::argumentLine ( ) const -> QString

camera framework arguments

Returns
QString
See also
m_argumentLine

Definition at line 115 of file preferenceprovider.cpp.

116 {
117  return m_argumentLine;
118 }

References m_argumentLine.

◆ argumentLineChanged

void FotoBox::PreferenceProvider::argumentLineChanged ( QString  )
signal

signal: camera framework arguments has changed

Referenced by setArgumentLine().

+ Here is the caller graph for this function:

◆ backgroundColor()

auto FotoBox::PreferenceProvider::backgroundColor ( ) const -> QString

background color of the FotoBox UI

Returns
QString
See also
m_backgroundColor

Definition at line 85 of file preferenceprovider.cpp.

86 {
87  return m_backgroundColor;
88 }

References m_backgroundColor.

◆ backgroundColorChanged

void FotoBox::PreferenceProvider::backgroundColorChanged ( QString  )
signal

signal: background color of the FotoBox UI has changed

Referenced by setBackgroundColor().

+ Here is the caller graph for this function:

◆ cameraMode()

auto FotoBox::PreferenceProvider::cameraMode ( ) const

the camera framework to be used

Returns
QString
See also
m_cameraMode

Definition at line 100 of file preferenceprovider.cpp.

101 {
102  return m_cameraMode;
103 }

References m_cameraMode.

◆ cameraModeChanged

void FotoBox::PreferenceProvider::cameraModeChanged ( QString  )
signal

signal: the camera framework to be used has changed

Referenced by setCameraMode().

+ Here is the caller graph for this function:

◆ countdown()

auto FotoBox::PreferenceProvider::countdown ( ) const -> int

countdown until photo is taken

Returns
int
See also
m_countdown

Definition at line 55 of file preferenceprovider.cpp.

56 {
57  return m_countdown;
58 }

References m_countdown.

◆ countdownChanged

void FotoBox::PreferenceProvider::countdownChanged ( int  )
signal

signal: countdown until photo is taken has changed

Referenced by setCountdown().

+ Here is the caller graph for this function:

◆ countdownColor()

auto FotoBox::PreferenceProvider::countdownColor ( ) const -> QString

font color of the countdown

Returns
QString
See also
m_countdownColor

Definition at line 70 of file preferenceprovider.cpp.

71 {
72  return m_countdownColor;
73 }

References m_countdownColor.

◆ countdownColorChanged

void FotoBox::PreferenceProvider::countdownColorChanged ( QString  )
signal

signal: font color of the countdown has changed

Referenced by setCountdownColor().

+ Here is the caller graph for this function:

◆ grayscale()

auto FotoBox::PreferenceProvider::grayscale ( ) const -> bool

show photo in grayscale (monochrome photography)

Returns
bool
See also
m_grayscale

Definition at line 190 of file preferenceprovider.cpp.

191 {
192  return m_grayscale;
193 }

References m_grayscale.

◆ grayscaleChanged

void FotoBox::PreferenceProvider::grayscaleChanged ( bool  )
signal

signal: grayscale (monochrome photography) has changed

Referenced by setGrayscale().

+ Here is the caller graph for this function:

◆ inputPin()

auto FotoBox::PreferenceProvider::inputPin ( ) const -> unsigned int

pigpio GPIO input pin

Returns
unsigned int
See also
m_inputPin

Definition at line 130 of file preferenceprovider.cpp.

131 {
132  return m_inputPin;
133 }

References m_inputPin.

◆ inputPinChanged

void FotoBox::PreferenceProvider::inputPinChanged ( unsigned int  )
signal

signal: pigpio GPIO input pin has changed

Referenced by setInputPin().

+ Here is the caller graph for this function:

◆ instance()

auto FotoBox::PreferenceProvider::instance ( )
static

get instance (Meyers Singleton)

Returns
Preferences&

Definition at line 12 of file preferenceprovider.cpp.

13 {
14  //thread safe static initializer
16  return instance;
17 }
static PreferenceProvider & instance()
get instance (Meyers Singleton)
PreferenceProvider(QObject *parent=nullptr)
hide Preferences default constructor (Singleton)

Referenced by FotoBox::FotoBox::buttons(), FotoBox::Camera::Camera(), FotoBox::Preferences::connectUi(), FotoBox::FotoBox::countdown(), FotoBox::FotoBox::drawText(), FotoBox::FotoBox::FotoBox(), FotoBox::FotoBox::loadPhoto(), FotoBox::FotoBox::mouseReleaseEvent(), FotoBox::FotoBox::photo(), and FotoBox::FotoBox::~FotoBox().

+ Here is the caller graph for this function:

◆ operator=() [1/2]

PreferenceProvider& FotoBox::PreferenceProvider::operator= ( const PreferenceProvider )
delete

PreferenceProvider delete copy assignment (Singleton)

◆ operator=() [2/2]

PreferenceProvider& FotoBox::PreferenceProvider::operator= ( PreferenceProvider &&  other)
delete

PreferenceProvider delete move assignment (Singleton)

◆ outputPin()

auto FotoBox::PreferenceProvider::outputPin ( ) const -> unsigned int

pigpio GPIO output pin

Returns
unsigned int
See also
m_outputPin

Definition at line 145 of file preferenceprovider.cpp.

146 {
147  return m_outputPin;
148 }

References m_outputPin.

◆ outputPinChanged

void FotoBox::PreferenceProvider::outputPinChanged ( unsigned int  )
signal

signal: pigpio GPIO output pin has changed

Referenced by setOutputPin().

+ Here is the caller graph for this function:

◆ photoFolder()

auto FotoBox::PreferenceProvider::photoFolder ( ) const -> QString

photo output directory

Returns
QString
See also
m_photoFolder

Definition at line 25 of file preferenceprovider.cpp.

26 {
27  return m_photoFolder;
28 }

References m_photoFolder.

◆ photoFolderChanged

void FotoBox::PreferenceProvider::photoFolderChanged ( QString  )
signal

signal: photo output directory has changed

Referenced by setPhotoFolder().

+ Here is the caller graph for this function:

◆ photoName()

auto FotoBox::PreferenceProvider::photoName ( ) const -> QString

photo name template

Returns
QString
See also
m_photoName

Definition at line 40 of file preferenceprovider.cpp.

41 {
42  return m_photoName;
43 }

References m_photoName.

◆ photoNameChanged

void FotoBox::PreferenceProvider::photoNameChanged ( QString  )
signal

signal: photo name template has changed

Referenced by setPhotoName().

+ Here is the caller graph for this function:

◆ print()

auto FotoBox::PreferenceProvider::print ( ) const -> bool

print on or off

Returns
bool
See also
m_print

Definition at line 220 of file preferenceprovider.cpp.

221 {
222  return m_print;
223 }

References m_print.

◆ printChanged

void FotoBox::PreferenceProvider::printChanged ( bool  )
signal

signal: print has changed

Referenced by setPrint().

+ Here is the caller graph for this function:

◆ printerName()

auto FotoBox::PreferenceProvider::printerName ( ) const -> QString

printer name

Returns
QString
See also
m_printerName

Definition at line 235 of file preferenceprovider.cpp.

236 {
237  return m_printerName;
238 }

References m_printerName.

◆ printerNameChanged

void FotoBox::PreferenceProvider::printerNameChanged ( QString  )
signal

signal: printer name has changed

Referenced by setPrinterName().

+ Here is the caller graph for this function:

◆ queryInterval()

auto FotoBox::PreferenceProvider::queryInterval ( ) const -> unsigned int

how often the pin should be queried

Returns
unsigned int
See also
m_queryInterval

Definition at line 160 of file preferenceprovider.cpp.

161 {
162  return m_queryInterval;
163 }

References m_queryInterval.

◆ queryIntervalChanged

void FotoBox::PreferenceProvider::queryIntervalChanged ( unsigned int  )
signal

signal: how often the pin should be queried has changed

Referenced by setQueryInterval().

+ Here is the caller graph for this function:

◆ setArgumentLine

void FotoBox::PreferenceProvider::setArgumentLine ( const QString &  i_value)
slot

set camera framework arguments

Parameters
i_valueQString&

Definition at line 120 of file preferenceprovider.cpp.

121 {
122  if (m_argumentLine == i_value) {
123  return;
124  }
125 
126  m_argumentLine = i_value;
128 }
void argumentLineChanged(QString)
signal: camera framework arguments has changed

References argumentLineChanged(), and m_argumentLine.

Referenced by FotoBox::Preferences::connectUi().

+ Here is the caller graph for this function:

◆ setBackgroundColor

void FotoBox::PreferenceProvider::setBackgroundColor ( const QString &  i_value)
slot

set background color of the FotoBox UI

Parameters
i_valueQString&

Definition at line 90 of file preferenceprovider.cpp.

91 {
92  if (m_backgroundColor == i_value) {
93  return;
94  }
95 
96  m_backgroundColor = i_value;
98 }
void backgroundColorChanged(QString)
signal: background color of the FotoBox UI has changed

References backgroundColorChanged(), and m_backgroundColor.

Referenced by FotoBox::Preferences::connectUi().

+ Here is the caller graph for this function:

◆ setCameraMode

void FotoBox::PreferenceProvider::setCameraMode ( const QString &  i_value)
slot

set the camera framework to be used

Parameters
i_valueQString&

Definition at line 105 of file preferenceprovider.cpp.

106 {
107  if (m_cameraMode == i_value) {
108  return;
109  }
110 
111  m_cameraMode = i_value;
113 }
void cameraModeChanged(QString)
signal: the camera framework to be used has changed

References cameraModeChanged(), and m_cameraMode.

Referenced by FotoBox::Preferences::connectUi().

+ Here is the caller graph for this function:

◆ setCountdown

void FotoBox::PreferenceProvider::setCountdown ( int  i_value)
slot

set countdown until photo is taken

Parameters
i_valueint

Definition at line 60 of file preferenceprovider.cpp.

61 {
62  if (m_countdown == i_value) {
63  return;
64  }
65 
66  m_countdown = i_value;
68 }
void countdownChanged(int)
signal: countdown until photo is taken has changed

References countdownChanged(), and m_countdown.

Referenced by FotoBox::Preferences::connectUi().

+ Here is the caller graph for this function:

◆ setCountdownColor

void FotoBox::PreferenceProvider::setCountdownColor ( const QString &  i_value)
slot

set font color of the countdown

Parameters
i_valueQString&

Definition at line 75 of file preferenceprovider.cpp.

76 {
77  if (m_countdownColor == i_value) {
78  return;
79  }
80 
81  m_countdownColor = i_value;
83 }
void countdownColorChanged(QString)
signal: font color of the countdown has changed

References countdownColorChanged(), and m_countdownColor.

Referenced by FotoBox::Preferences::connectUi().

+ Here is the caller graph for this function:

◆ setGrayscale

void FotoBox::PreferenceProvider::setGrayscale ( bool  i_value)
slot

set grayscale bool (monochrome photography)

Parameters
i_valueint

Definition at line 195 of file preferenceprovider.cpp.

196 {
197  if (m_grayscale == i_value) {
198  return;
199  }
200 
201  m_grayscale = i_value;
203 }
void grayscaleChanged(bool)
signal: grayscale (monochrome photography) has changed

References grayscaleChanged(), and m_grayscale.

Referenced by FotoBox::Preferences::connectUi().

+ Here is the caller graph for this function:

◆ setInputPin

void FotoBox::PreferenceProvider::setInputPin ( unsigned int  i_value)
slot

set pigpio GPIO input pin

Parameters
i_valueunsigned int

Definition at line 135 of file preferenceprovider.cpp.

136 {
137  if (m_inputPin == i_value) {
138  return;
139  }
140 
141  m_inputPin = i_value;
142  Q_EMIT inputPinChanged(m_inputPin);
143 }
void inputPinChanged(unsigned int)
signal: pigpio GPIO input pin has changed

References inputPinChanged(), and m_inputPin.

Referenced by FotoBox::Preferences::connectUi().

+ Here is the caller graph for this function:

◆ setOutputPin

void FotoBox::PreferenceProvider::setOutputPin ( unsigned int  i_value)
slot

set pigpio GPIO output pin

Parameters
i_valueunsigned int

Definition at line 150 of file preferenceprovider.cpp.

151 {
152  if (m_outputPin == i_value) {
153  return;
154  }
155 
156  m_outputPin = i_value;
158 }
void outputPinChanged(unsigned int)
signal: pigpio GPIO output pin has changed

References m_outputPin, and outputPinChanged().

Referenced by FotoBox::Preferences::connectUi().

+ Here is the caller graph for this function:

◆ setPhotoFolder

void FotoBox::PreferenceProvider::setPhotoFolder ( const QString &  i_value)
slot

set photo output directory

Parameters
i_valueQString&

Definition at line 30 of file preferenceprovider.cpp.

31 {
32  if (m_photoFolder == i_value) {
33  return;
34  }
35 
36  m_photoFolder = i_value;
38 }
void photoFolderChanged(QString)
signal: photo output directory has changed

References m_photoFolder, and photoFolderChanged().

Referenced by FotoBox::Preferences::connectUi().

+ Here is the caller graph for this function:

◆ setPhotoName

void FotoBox::PreferenceProvider::setPhotoName ( const QString &  i_value)
slot

set photo name template

Parameters
i_valueQString&

Definition at line 45 of file preferenceprovider.cpp.

46 {
47  if (m_photoName == i_value) {
48  return;
49  }
50 
51  m_photoName = i_value;
53 }
void photoNameChanged(QString)
signal: photo name template has changed

References m_photoName, and photoNameChanged().

Referenced by FotoBox::Preferences::connectUi().

+ Here is the caller graph for this function:

◆ setPrint

void FotoBox::PreferenceProvider::setPrint ( bool  i_value)
slot

set print on or off

Parameters
i_valuebool

Definition at line 225 of file preferenceprovider.cpp.

226 {
227  if (m_print == i_value) {
228  return;
229  }
230 
231  m_print = i_value;
232  Q_EMIT printChanged(m_print);
233 }
void printChanged(bool)
signal: print has changed

References m_print, and printChanged().

Referenced by FotoBox::Preferences::connectUi().

+ Here is the caller graph for this function:

◆ setPrinterName

void FotoBox::PreferenceProvider::setPrinterName ( const QString &  i_value)
slot

set printer name

Parameters
i_valueQString&

Definition at line 240 of file preferenceprovider.cpp.

241 {
242  if (m_printerName == i_value) {
243  return;
244  }
245 
246  m_printerName = i_value;
248 }
void printerNameChanged(QString)
signal: printer name has changed

References m_printerName, and printerNameChanged().

Referenced by FotoBox::Preferences::connectUi().

+ Here is the caller graph for this function:

◆ setQueryInterval

void FotoBox::PreferenceProvider::setQueryInterval ( unsigned int  i_value)
slot

set how often the pin should be queried

Parameters
i_valueunsigned int

Definition at line 165 of file preferenceprovider.cpp.

166 {
167  if (m_queryInterval == i_value) {
168  return;
169  }
170 
171  m_queryInterval = i_value;
173 }
void queryIntervalChanged(unsigned int)
signal: how often the pin should be queried has changed

References m_queryInterval, and queryIntervalChanged().

Referenced by FotoBox::Preferences::connectUi().

+ Here is the caller graph for this function:

◆ setShowButtons

void FotoBox::PreferenceProvider::setShowButtons ( bool  i_value)
slot

set whether buttons are displayed on the UI

Parameters
i_valuebool

Definition at line 210 of file preferenceprovider.cpp.

211 {
212  if (m_showButtons == i_value) {
213  return;
214  }
215 
216  m_showButtons = i_value;
218 }
void showButtonsChanged(bool)
signal: whether buttons are displayed on the UI has changed

References m_showButtons, and showButtonsChanged().

Referenced by FotoBox::Preferences::connectUi().

+ Here is the caller graph for this function:

◆ setTimeoutValue

void FotoBox::PreferenceProvider::setTimeoutValue ( int  i_value)
slot

set timeout value for the camera framework

Parameters
i_valueint

Definition at line 180 of file preferenceprovider.cpp.

181 {
182  if (m_timeoutValue == i_value) {
183  return;
184  }
185 
186  m_timeoutValue = i_value;
188 }
void timeoutValueChanged(int)
signal: timeout value for the camera framework has changed

References m_timeoutValue, and timeoutValueChanged().

Referenced by FotoBox::Preferences::connectUi().

+ Here is the caller graph for this function:

◆ showButtons()

auto FotoBox::PreferenceProvider::showButtons ( ) const -> bool

buttons are displayed on the UI

Returns
bool
See also
m_showButtons

Definition at line 205 of file preferenceprovider.cpp.

206 {
207  return m_showButtons;
208 }

References m_showButtons.

◆ showButtonsChanged

void FotoBox::PreferenceProvider::showButtonsChanged ( bool  )
signal

signal: whether buttons are displayed on the UI has changed

Referenced by setShowButtons().

+ Here is the caller graph for this function:

◆ timeoutValue()

auto FotoBox::PreferenceProvider::timeoutValue ( ) const -> int

timeout value for the camera framework

Returns
int
See also
m_timeoutValue

Definition at line 175 of file preferenceprovider.cpp.

176 {
177  return m_timeoutValue;
178 }

References m_timeoutValue.

◆ timeoutValueChanged

void FotoBox::PreferenceProvider::timeoutValueChanged ( int  )
signal

signal: timeout value for the camera framework has changed

Referenced by setTimeoutValue().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_argumentLine

QString FotoBox::PreferenceProvider::m_argumentLine
private

camera framework arguments

Definition at line 50 of file preferenceprovider.h.

Referenced by argumentLine(), and setArgumentLine().

◆ m_backgroundColor

QString FotoBox::PreferenceProvider::m_backgroundColor
private

background color of the FotoBox UI

Definition at line 44 of file preferenceprovider.h.

Referenced by backgroundColor(), and setBackgroundColor().

◆ m_cameraMode

QString FotoBox::PreferenceProvider::m_cameraMode
private

the camera framework to be used

Definition at line 47 of file preferenceprovider.h.

Referenced by cameraMode(), and setCameraMode().

◆ m_countdown

int FotoBox::PreferenceProvider::m_countdown = 0
private

countdown until photo is taken

Definition at line 53 of file preferenceprovider.h.

Referenced by countdown(), and setCountdown().

◆ m_countdownColor

QString FotoBox::PreferenceProvider::m_countdownColor
private

font color of the countdown

Definition at line 41 of file preferenceprovider.h.

Referenced by countdownColor(), and setCountdownColor().

◆ m_grayscale

bool FotoBox::PreferenceProvider::m_grayscale = false
private

show photo in grayscale (monochrome photography)

Definition at line 68 of file preferenceprovider.h.

Referenced by grayscale(), and setGrayscale().

◆ m_inputPin

unsigned int FotoBox::PreferenceProvider::m_inputPin = 0
private

pigpio GPIO input pin

Definition at line 56 of file preferenceprovider.h.

Referenced by inputPin(), and setInputPin().

◆ m_outputPin

unsigned int FotoBox::PreferenceProvider::m_outputPin = 0
private

pigpio GPIO output pin

Definition at line 59 of file preferenceprovider.h.

Referenced by outputPin(), and setOutputPin().

◆ m_photoFolder

QString FotoBox::PreferenceProvider::m_photoFolder
private

photo output directory

Definition at line 35 of file preferenceprovider.h.

Referenced by photoFolder(), and setPhotoFolder().

◆ m_photoName

QString FotoBox::PreferenceProvider::m_photoName
private

photo name template

Definition at line 38 of file preferenceprovider.h.

Referenced by photoName(), and setPhotoName().

◆ m_print

bool FotoBox::PreferenceProvider::m_print = false
private

turn print on or off

Definition at line 74 of file preferenceprovider.h.

Referenced by print(), and setPrint().

◆ m_printerName

QString FotoBox::PreferenceProvider::m_printerName
private

printer name

Definition at line 77 of file preferenceprovider.h.

Referenced by printerName(), and setPrinterName().

◆ m_queryInterval

unsigned int FotoBox::PreferenceProvider::m_queryInterval = 0
private

how often the pin should be queried

Definition at line 62 of file preferenceprovider.h.

Referenced by queryInterval(), and setQueryInterval().

◆ m_showButtons

bool FotoBox::PreferenceProvider::m_showButtons = false
private

buttons are displayed on the UI

Definition at line 71 of file preferenceprovider.h.

Referenced by setShowButtons(), and showButtons().

◆ m_timeoutValue

int FotoBox::PreferenceProvider::m_timeoutValue = 0
private

timeout value for the camera framework

Definition at line 65 of file preferenceprovider.h.

Referenced by setTimeoutValue(), and timeoutValue().

Property Documentation

◆ argumentLine

QString FotoBox::PreferenceProvider::argumentLine
readwrite

Definition at line 77 of file preferenceprovider.h.

◆ backgroundColor

QString FotoBox::PreferenceProvider::backgroundColor
readwrite

Definition at line 77 of file preferenceprovider.h.

◆ cameraMode

QString FotoBox::PreferenceProvider::cameraMode
readwrite

Definition at line 77 of file preferenceprovider.h.

◆ countdown

int FotoBox::PreferenceProvider::countdown
readwrite

Definition at line 77 of file preferenceprovider.h.

◆ countdownColor

QString FotoBox::PreferenceProvider::countdownColor
readwrite

Definition at line 77 of file preferenceprovider.h.

◆ grayscale

bool FotoBox::PreferenceProvider::grayscale
readwrite

Definition at line 77 of file preferenceprovider.h.

◆ inputPin

unsigned int FotoBox::PreferenceProvider::inputPin
readwrite

Definition at line 77 of file preferenceprovider.h.

◆ outputPin

unsigned int FotoBox::PreferenceProvider::outputPin
readwrite

Definition at line 77 of file preferenceprovider.h.

◆ photoFolder

QString FotoBox::PreferenceProvider::photoFolder
readwrite

Definition at line 77 of file preferenceprovider.h.

◆ photoName

QString FotoBox::PreferenceProvider::photoName
readwrite

Definition at line 77 of file preferenceprovider.h.

◆ print

bool FotoBox::PreferenceProvider::print
readwrite

Definition at line 77 of file preferenceprovider.h.

◆ printerName

QString FotoBox::PreferenceProvider::printerName
readwrite

Definition at line 77 of file preferenceprovider.h.

◆ queryInterval

unsigned int FotoBox::PreferenceProvider::queryInterval
readwrite

Definition at line 77 of file preferenceprovider.h.

◆ showButtons

bool FotoBox::PreferenceProvider::showButtons
readwrite

Definition at line 77 of file preferenceprovider.h.

◆ timeoutValue

int FotoBox::PreferenceProvider::timeoutValue
readwrite

Definition at line 77 of file preferenceprovider.h.


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