FotoBox
|
Preference who stores the preferences. More...
#include <preferenceprovider.h>
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... | |
PreferenceProvider & | operator= (const PreferenceProvider &)=delete |
PreferenceProvider delete copy assignment (Singleton) More... | |
PreferenceProvider (PreferenceProvider &&other)=delete | |
PreferenceProvider delete move constructor (Singleton) More... | |
PreferenceProvider & | operator= (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 PreferenceProvider & | instance () |
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 | |
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 |
Preference who stores the preferences.
Definition at line 18 of file preferenceprovider.h.
|
explicitprivate |
hide Preferences default constructor (Singleton)
parent | QObject |
Definition at line 19 of file preferenceprovider.cpp.
|
overrideprivatedefault |
hide Preferences destructor (Singleton)
|
delete |
PreferenceProvider delete copy constructor (Singleton)
|
delete |
PreferenceProvider delete move constructor (Singleton)
auto FotoBox::PreferenceProvider::argumentLine | ( | ) | const -> QString |
camera framework arguments
Definition at line 115 of file preferenceprovider.cpp.
References m_argumentLine.
|
signal |
signal: camera framework arguments has changed
Referenced by setArgumentLine().
auto FotoBox::PreferenceProvider::backgroundColor | ( | ) | const -> QString |
background color of the FotoBox UI
Definition at line 85 of file preferenceprovider.cpp.
References m_backgroundColor.
|
signal |
signal: background color of the FotoBox UI has changed
Referenced by setBackgroundColor().
auto FotoBox::PreferenceProvider::cameraMode | ( | ) | const |
the camera framework to be used
Definition at line 100 of file preferenceprovider.cpp.
References m_cameraMode.
|
signal |
signal: the camera framework to be used has changed
Referenced by setCameraMode().
auto FotoBox::PreferenceProvider::countdown | ( | ) | const -> int |
countdown until photo is taken
Definition at line 55 of file preferenceprovider.cpp.
References m_countdown.
|
signal |
signal: countdown until photo is taken has changed
Referenced by setCountdown().
auto FotoBox::PreferenceProvider::countdownColor | ( | ) | const -> QString |
font color of the countdown
Definition at line 70 of file preferenceprovider.cpp.
References m_countdownColor.
|
signal |
signal: font color of the countdown has changed
Referenced by setCountdownColor().
auto FotoBox::PreferenceProvider::grayscale | ( | ) | const -> bool |
show photo in grayscale (monochrome photography)
Definition at line 190 of file preferenceprovider.cpp.
References m_grayscale.
|
signal |
signal: grayscale (monochrome photography) has changed
Referenced by setGrayscale().
auto FotoBox::PreferenceProvider::inputPin | ( | ) | const -> unsigned int |
pigpio GPIO input pin
Definition at line 130 of file preferenceprovider.cpp.
References m_inputPin.
|
signal |
signal: pigpio GPIO input pin has changed
Referenced by setInputPin().
|
static |
get instance (Meyers Singleton)
Definition at line 12 of file preferenceprovider.cpp.
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().
|
delete |
PreferenceProvider delete copy assignment (Singleton)
|
delete |
PreferenceProvider delete move assignment (Singleton)
auto FotoBox::PreferenceProvider::outputPin | ( | ) | const -> unsigned int |
pigpio GPIO output pin
Definition at line 145 of file preferenceprovider.cpp.
References m_outputPin.
|
signal |
signal: pigpio GPIO output pin has changed
Referenced by setOutputPin().
auto FotoBox::PreferenceProvider::photoFolder | ( | ) | const -> QString |
photo output directory
Definition at line 25 of file preferenceprovider.cpp.
References m_photoFolder.
|
signal |
signal: photo output directory has changed
Referenced by setPhotoFolder().
auto FotoBox::PreferenceProvider::photoName | ( | ) | const -> QString |
photo name template
Definition at line 40 of file preferenceprovider.cpp.
References m_photoName.
|
signal |
signal: photo name template has changed
Referenced by setPhotoName().
auto FotoBox::PreferenceProvider::print | ( | ) | const -> bool |
print on or off
Definition at line 220 of file preferenceprovider.cpp.
References m_print.
|
signal |
auto FotoBox::PreferenceProvider::printerName | ( | ) | const -> QString |
printer name
Definition at line 235 of file preferenceprovider.cpp.
References m_printerName.
|
signal |
signal: printer name has changed
Referenced by setPrinterName().
auto FotoBox::PreferenceProvider::queryInterval | ( | ) | const -> unsigned int |
how often the pin should be queried
Definition at line 160 of file preferenceprovider.cpp.
References m_queryInterval.
|
signal |
signal: how often the pin should be queried has changed
Referenced by setQueryInterval().
|
slot |
set camera framework arguments
i_value | QString& |
Definition at line 120 of file preferenceprovider.cpp.
References argumentLineChanged(), and m_argumentLine.
Referenced by FotoBox::Preferences::connectUi().
|
slot |
set background color of the FotoBox UI
i_value | QString& |
Definition at line 90 of file preferenceprovider.cpp.
References backgroundColorChanged(), and m_backgroundColor.
Referenced by FotoBox::Preferences::connectUi().
|
slot |
set the camera framework to be used
i_value | QString& |
Definition at line 105 of file preferenceprovider.cpp.
References cameraModeChanged(), and m_cameraMode.
Referenced by FotoBox::Preferences::connectUi().
|
slot |
set countdown until photo is taken
i_value | int |
Definition at line 60 of file preferenceprovider.cpp.
References countdownChanged(), and m_countdown.
Referenced by FotoBox::Preferences::connectUi().
|
slot |
set font color of the countdown
i_value | QString& |
Definition at line 75 of file preferenceprovider.cpp.
References countdownColorChanged(), and m_countdownColor.
Referenced by FotoBox::Preferences::connectUi().
|
slot |
set grayscale bool (monochrome photography)
i_value | int |
Definition at line 195 of file preferenceprovider.cpp.
References grayscaleChanged(), and m_grayscale.
Referenced by FotoBox::Preferences::connectUi().
|
slot |
set pigpio GPIO input pin
i_value | unsigned int |
Definition at line 135 of file preferenceprovider.cpp.
References inputPinChanged(), and m_inputPin.
Referenced by FotoBox::Preferences::connectUi().
|
slot |
set pigpio GPIO output pin
i_value | unsigned int |
Definition at line 150 of file preferenceprovider.cpp.
References m_outputPin, and outputPinChanged().
Referenced by FotoBox::Preferences::connectUi().
|
slot |
set photo output directory
i_value | QString& |
Definition at line 30 of file preferenceprovider.cpp.
References m_photoFolder, and photoFolderChanged().
Referenced by FotoBox::Preferences::connectUi().
|
slot |
set photo name template
i_value | QString& |
Definition at line 45 of file preferenceprovider.cpp.
References m_photoName, and photoNameChanged().
Referenced by FotoBox::Preferences::connectUi().
|
slot |
set print on or off
i_value | bool |
Definition at line 225 of file preferenceprovider.cpp.
References m_print, and printChanged().
Referenced by FotoBox::Preferences::connectUi().
|
slot |
set printer name
i_value | QString& |
Definition at line 240 of file preferenceprovider.cpp.
References m_printerName, and printerNameChanged().
Referenced by FotoBox::Preferences::connectUi().
|
slot |
set how often the pin should be queried
i_value | unsigned int |
Definition at line 165 of file preferenceprovider.cpp.
References m_queryInterval, and queryIntervalChanged().
Referenced by FotoBox::Preferences::connectUi().
|
slot |
set whether buttons are displayed on the UI
i_value | bool |
Definition at line 210 of file preferenceprovider.cpp.
References m_showButtons, and showButtonsChanged().
Referenced by FotoBox::Preferences::connectUi().
|
slot |
set timeout value for the camera framework
i_value | int |
Definition at line 180 of file preferenceprovider.cpp.
References m_timeoutValue, and timeoutValueChanged().
Referenced by FotoBox::Preferences::connectUi().
auto FotoBox::PreferenceProvider::showButtons | ( | ) | const -> bool |
buttons are displayed on the UI
Definition at line 205 of file preferenceprovider.cpp.
References m_showButtons.
|
signal |
signal: whether buttons are displayed on the UI has changed
Referenced by setShowButtons().
auto FotoBox::PreferenceProvider::timeoutValue | ( | ) | const -> int |
timeout value for the camera framework
Definition at line 175 of file preferenceprovider.cpp.
References m_timeoutValue.
|
signal |
signal: timeout value for the camera framework has changed
Referenced by setTimeoutValue().
|
private |
camera framework arguments
Definition at line 50 of file preferenceprovider.h.
Referenced by argumentLine(), and setArgumentLine().
|
private |
background color of the FotoBox UI
Definition at line 44 of file preferenceprovider.h.
Referenced by backgroundColor(), and setBackgroundColor().
|
private |
the camera framework to be used
Definition at line 47 of file preferenceprovider.h.
Referenced by cameraMode(), and setCameraMode().
|
private |
countdown until photo is taken
Definition at line 53 of file preferenceprovider.h.
Referenced by countdown(), and setCountdown().
|
private |
font color of the countdown
Definition at line 41 of file preferenceprovider.h.
Referenced by countdownColor(), and setCountdownColor().
|
private |
show photo in grayscale (monochrome photography)
Definition at line 68 of file preferenceprovider.h.
Referenced by grayscale(), and setGrayscale().
|
private |
pigpio GPIO input pin
Definition at line 56 of file preferenceprovider.h.
Referenced by inputPin(), and setInputPin().
|
private |
pigpio GPIO output pin
Definition at line 59 of file preferenceprovider.h.
Referenced by outputPin(), and setOutputPin().
|
private |
photo output directory
Definition at line 35 of file preferenceprovider.h.
Referenced by photoFolder(), and setPhotoFolder().
|
private |
photo name template
Definition at line 38 of file preferenceprovider.h.
Referenced by photoName(), and setPhotoName().
|
private |
turn print on or off
Definition at line 74 of file preferenceprovider.h.
Referenced by print(), and setPrint().
|
private |
printer name
Definition at line 77 of file preferenceprovider.h.
Referenced by printerName(), and setPrinterName().
|
private |
how often the pin should be queried
Definition at line 62 of file preferenceprovider.h.
Referenced by queryInterval(), and setQueryInterval().
|
private |
buttons are displayed on the UI
Definition at line 71 of file preferenceprovider.h.
Referenced by setShowButtons(), and showButtons().
|
private |
timeout value for the camera framework
Definition at line 65 of file preferenceprovider.h.
Referenced by setTimeoutValue(), and timeoutValue().
|
readwrite |
Definition at line 77 of file preferenceprovider.h.
|
readwrite |
Definition at line 77 of file preferenceprovider.h.
|
readwrite |
Definition at line 77 of file preferenceprovider.h.
|
readwrite |
Definition at line 77 of file preferenceprovider.h.
|
readwrite |
Definition at line 77 of file preferenceprovider.h.
|
readwrite |
Definition at line 77 of file preferenceprovider.h.
|
readwrite |
Definition at line 77 of file preferenceprovider.h.
|
readwrite |
Definition at line 77 of file preferenceprovider.h.
|
readwrite |
Definition at line 77 of file preferenceprovider.h.
|
readwrite |
Definition at line 77 of file preferenceprovider.h.
|
readwrite |
Definition at line 77 of file preferenceprovider.h.
|
readwrite |
Definition at line 77 of file preferenceprovider.h.
|
readwrite |
Definition at line 77 of file preferenceprovider.h.
|
readwrite |
Definition at line 77 of file preferenceprovider.h.
|
readwrite |
Definition at line 77 of file preferenceprovider.h.