Kill CameraButtonRow and use the QtQuick Row component
[harmattan/cameraplus] / lib / qtcamquirks.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_QUIRKS_H
24 #define QT_CAM_QUIRKS_H
25
26 #include <QObject>
27
28 class QtCamQuirksPrivate;
29 class QtCamDevice;
30
31 class QtCamQuirks : public QObject {
32   Q_OBJECT
33
34   Q_ENUMS(QuirkType);
35
36 public:
37   typedef enum {
38     NoNightSceneMode = 0x1,
39     NoFlash = 0x2,
40     NoVideoTorch = 0x4,
41     NoAutoFocus = 0x8,
42     NoSceneModeChangeDuringRecording = 0x10,
43     NoRedEyeFlash = 0x20,
44     NoTouchFocus = 0x40,
45     NoFaceDetection = 0x80,
46   } QuirkType;
47
48   Q_DECLARE_FLAGS(QuirkTypes, QuirkType);
49
50   QtCamQuirks(const QuirkTypes& types, QObject *parent = 0);
51   ~QtCamQuirks();
52
53   QuirkTypes quirks() const;
54
55 private:
56   QtCamQuirksPrivate *d_ptr;
57 };
58
59 Q_DECLARE_OPERATORS_FOR_FLAGS(QtCamQuirks::QuirkTypes);
60
61 #endif /* QT_CAM_QUIRKS_H */