Renames nshooter into camshooter
[nnokia.git] / camshooter.h
1 #ifndef NSHOOTER_H
2 #define NSHOOTER_H
3
4 #include <QObject>
5 #include <QCamera>
6 #include <QCameraImageCapture>
7
8 class CamShooter : public QObject {
9     Q_OBJECT
10
11 public:
12     CamShooter(QObject *parent=NULL);
13     virtual ~CamShooter();
14     void go();
15 signals:
16     void fileReady(const QString &);
17
18 private slots:
19     void slot_cam_state(QCamera::State state);
20     void slot_cam_status(QCamera::Status status);
21     void slot_cam_lockstatus(QCamera::LockStatus status, QCamera::LockChangeReason reason);
22     void slot_cap_captured(int id, const QImage &preview);
23     void slot_cap_imageSaved(int id, const QString &fileName);
24
25 protected:
26     void debug_dump(const char *);
27
28     QCamera *camera;
29     QCameraImageCapture *imageCapture;
30     QImageEncoderSettings encoderSettings;
31 };
32
33
34 #endif // NSHOOTER_H