4 * This file is part of CameraPlus.
6 * Copyright (C) 2012-2013 Mohammed Sameer <msameer@foolab.org>
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23 #ifndef QT_CAM_CONFIG_H
24 #define QT_CAM_CONFIG_H
27 #include "qtcamimagesettings.h"
28 #include "qtcamvideosettings.h"
29 #include <QStringList>
31 #define SCANNER_TYPE_V4L2 "v4l2"
32 #define SCANNER_TYPE_ENUM "enum"
34 #define RENDERER_TYPE_MEEGO "meego"
35 #define RENDERER_TYPE_GENERIC "generic"
38 #define DATA_DIR "/usr/share/qtcamera/config/"
41 class QtCamConfigPrivate;
43 class QtCamConfig : public QObject {
47 QtCamConfig(QObject *parent = 0);
48 QtCamConfig(const QString& configPath, QObject *parent = 0);
50 virtual ~QtCamConfig();
52 QString deviceScannerType() const;
53 QString deviceScannerProperty() const;
55 QString videoSource() const;
57 QString viewfinderSink() const;
58 QString viewfinderRenderer() const;
59 bool viewfinderUseFence() const;
61 QString audioSource() const;
62 QString wrapperVideoSource() const;
63 QString wrapperVideoSourceProperty() const;
65 QtCamImageSettings *imageSettings(const QVariant& id);
66 QtCamVideoSettings *videoSettings(const QVariant& id);
68 QString imageEncodingProfileName() const;
69 QString imageEncodingProfilePath() const;
71 QString videoEncodingProfileName() const;
72 QString videoEncodingProfilePath() const;
74 QString imageSuffix() const;
75 QString videoSuffix() const;
77 QString audioCaptureCaps() const;
79 QString imageCaptureStartedSound() const;
80 QString imageCaptureEndedSound() const;
81 QString videoRecordingStartedSound() const;
82 QString videoRecordingEndedSound() const;
83 QString autoFocusAcquiredSound() const;
85 QStringList viewfinderFilters() const;
87 QString roiElement() const;
88 QString roiMessageName() const;
89 QString roiEnableProperty() const;
90 QString roiMessage() const;
93 QtCamConfigPrivate *d_ptr;
96 #endif /* QT_CAM_CONFIG_H */