Kill QtCamViewfinderRendererGeneric
[harmattan/cameraplus] / lib / qtcamconfig.h
1 // -*- c++ -*-
2
3 /*!
4  * This file is part of CameraPlus.
5  *
6  * Copyright (C) 2012-2013 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
36 #ifndef DATA_DIR
37 #define DATA_DIR                              "/usr/share/qtcamera/config/"
38 #endif /* DATA_DIR */
39
40 class QtCamConfigPrivate;
41
42 class QtCamConfig : public QObject {
43   Q_OBJECT
44
45 public:
46   QtCamConfig(QObject *parent = 0);
47   QtCamConfig(const QString& configPath, QObject *parent = 0);
48
49   virtual ~QtCamConfig();
50
51   QString deviceScannerType() const;
52   QString deviceScannerProperty() const;
53
54   QString videoSource() const;
55
56   QString viewfinderSink() const;
57   QString viewfinderRenderer() const;
58   bool viewfinderUseFence() const;
59
60   QString audioSource() const;
61   QString wrapperVideoSource() const;
62   QString wrapperVideoSourceProperty() const;
63
64   QtCamImageSettings *imageSettings(const QVariant& id);
65   QtCamVideoSettings *videoSettings(const QVariant& id);
66
67   QString imageEncodingProfileName() const;
68   QString imageEncodingProfilePath() const;
69
70   QString videoEncodingProfileName() const;
71   QString videoEncodingProfilePath() const;
72
73   QString imageSuffix() const;
74   QString videoSuffix() const;
75
76   QString audioCaptureCaps() const;
77
78   QStringList viewfinderFilters() const;
79
80   QString roiElement() const;
81   QString roiMessageName() const;
82   QString roiEnableProperty() const;
83   QString roiMessage() const;
84
85 private:
86   QtCamConfigPrivate *d_ptr;
87 };
88
89 #endif /* QT_CAM_CONFIG_H */