7b2e2030417e8b9306ceb932f6f3522a9c061366
[harmattan/cameraplus] / lib / qtcamconfig.h
1 // -*- c++ -*-
2
3 /*!
4  * This file is part of CameraPlus.
5  *
6  * Copyright (C) 2012 Mohammed Sameer <msameer@foolab.org>
7  *
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.
12  *
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.
17  *
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
21  */
22
23 #ifndef QT_CAM_CONFIG_H
24 #define QT_CAM_CONFIG_H
25
26 #include <QObject>
27 #include "qtcamimagesettings.h"
28 #include "qtcamvideosettings.h"
29 #include <QStringList>
30
31 #define SCANNER_TYPE_V4L2                     "v4l2"
32 #define SCANNER_TYPE_ENUM                     "enum"
33
34 #define RENDERER_TYPE_MEEGO                   "meego"
35 #define RENDERER_TYPE_GENERIC                 "generic"
36
37 class QtCamConfigPrivate;
38
39 class QtCamConfig : public QObject {
40   Q_OBJECT
41
42 public:
43   QtCamConfig(QObject *parent = 0);
44   QtCamConfig(const QString& configPath, QObject *parent = 0);
45
46   virtual ~QtCamConfig();
47
48   QString deviceScannerType() const;
49   QString deviceScannerProperty() const;
50
51   QString videoSource() const;
52
53   QString viewfinderSink() const;
54   QString viewfinderRenderer() const;
55   bool viewfinderUseFence() const;
56
57   QString audioSource() const;
58   QString wrapperVideoSource() const;
59   QString wrapperVideoSourceProperty() const;
60
61   QtCamImageSettings *imageSettings(const QVariant& id);
62   QtCamVideoSettings *videoSettings(const QVariant& id);
63
64   QString imageEncodingProfileName() const;
65   QString imageEncodingProfilePath() const;
66
67   QString videoEncodingProfileName() const;
68   QString videoEncodingProfilePath() const;
69
70   QString imageSuffix() const;
71   QString videoSuffix() const;
72
73   QString audioCaptureCaps() const;
74
75   QString imageCaptureStartedSound() const;
76   QString imageCaptureEndedSound() const;
77   QString videoRecordingStartedSound() const;
78   QString videoRecordingEndedSound() const;
79   QString autoFocusAcquiredSound() const;
80
81   QStringList viewfinderFilters() const;
82
83 private:
84   QtCamConfigPrivate *d_ptr;
85 };
86
87 #endif /* QT_CAM_CONFIG_H */