25     m_process.closeReadChannel(QProcess::StandardOutput);
 
   26     m_process.closeReadChannel(QProcess::StandardError);
 
   35     m_currentPhoto = QDateTime::currentDateTime().toString(QStringLiteral(
"yyyyMMdd_HH-mm-ss_")) + m_photoSuffix;
 
   37     auto arguments = m_argList;
 
   38     arguments = arguments.replaceInStrings(QStringLiteral(
"%1"), m_currentPhoto);
 
   41     m_process.start(m_cameraMode, arguments, {});
 
   42     m_process.waitForFinished(m_timeoutValue);
 
   45     return (m_process.exitCode() == EXIT_SUCCESS);
 
auto currentPhoto() const -> QString
return member
 
auto shootPhoto() -> bool
shoot a photo with gphoto2
 
Camera(QObject *parent=nullptr)
Camera constructor.
 
Preference who stores the preferences.
 
static PreferenceProvider & instance()
get instance (Meyers Singleton)