4 * This file is part of CameraPlus.
6 * Copyright (C) 2012 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"
30 #define SCANNER_TYPE_V4L2 "v4l2"
31 #define SCANNER_TYPE_ENUM "enum"
33 #define RENDERER_TYPE_MEEGO "meego"
34 #define RENDERER_TYPE_GENERIC "generic"
36 class QtCamConfigPrivate;
38 class QtCamConfig : public QObject {
42 QtCamConfig(QObject *parent = 0);
43 QtCamConfig(const QString& configPath, QObject *parent = 0);
45 virtual ~QtCamConfig();
47 QString deviceScannerType() const;
48 QString deviceScannerProperty() const;
50 QString videoSource() const;
51 QString viewfinderSink() const;
52 QString viewfinderRenderer() const;
53 QString audioSource() const;
54 QString wrapperVideoSource() const;
55 QString wrapperVideoSourceProperty() const;
57 QtCamImageSettings *imageSettings(const QVariant& id);
58 QtCamVideoSettings *videoSettings(const QVariant& id);
60 QString imageEncodingProfileName() const;
61 QString imageEncodingProfilePath() const;
63 QString videoEncodingProfileName() const;
64 QString videoEncodingProfilePath() const;
66 QString imageSuffix() const;
67 QString videoSuffix() const;
69 QString audioCaptureCaps() const;
71 QString imageCaptureStartedSound() const;
72 QString imageCaptureEndedSound() const;
73 QString videoRecordingStartedSound() const;
74 QString videoRecordingEndedSound() const;
75 QString autoFocusAcquiredSound() const;
78 QtCamConfigPrivate *d_ptr;
81 #endif /* QT_CAM_CONFIG_H */