/*!
* This file is part of CameraPlus.
*
- * Copyright (C) 2012 Mohammed Sameer <msameer@foolab.org>
+ * Copyright (C) 2012-2013 Mohammed Sameer <msameer@foolab.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
#include <QStringList>
#include <QDebug>
-#define CONFIGURATION_FILE "/etc/qtcamera/qtcamera.ini"
+#define CONFIGURATION_FILE DATA_DIR"/qtcamera.ini"
class QtCamConfigPrivate {
public:
return d_ptr->conf->value("viewfinder-sink/renderer").toString();
}
+bool QtCamConfig::viewfinderUseFence() const {
+ return d_ptr->conf->value("viewfinder-sink/use-fence").toBool();
+}
+
QString QtCamConfig::audioSource() const {
return d_ptr->element("audio-source");
}
QString QtCamConfig::videoSuffix() const {
return d_ptr->conf->value("video/extension").toString();
}
+
+QStringList QtCamConfig::viewfinderFilters() const {
+ return d_ptr->conf->value("viewfinder-filters/elements").toStringList();
+}
+
+QString QtCamConfig::roiElement() const {
+ return d_ptr->conf->value("roi/element").toString();
+}
+
+QString QtCamConfig::roiMessageName() const {
+ return d_ptr->conf->value("roi/message").toString();
+}
+
+QString QtCamConfig::roiEnableProperty() const {
+ return d_ptr->conf->value("roi/enable").toString();
+}
+
+QString QtCamConfig::roiMessage() const {
+ return d_ptr->conf->value("roi/message").toString();
+}
+
+bool QtCamConfig::isPreviewSupported() const {
+ return d_ptr->conf->value("general/preview-supported").toBool();
+}