9 class QtCamModePrivate;
10 class QtCamDevicePrivate;
15 class QtCamMode : public QObject {
18 Q_PROPERTY(bool canCapture READ canCapture NOTIFY canCaptureChanged);
19 Q_PROPERTY(bool active READ isActive NOTIFY activeChanged);
22 QtCamMode(QtCamModePrivate *d, const char *mode, const char *done, QObject *parent = 0);
27 virtual bool canCapture();
31 virtual void applySettings() = 0;
33 QtCamDevice *device() const;
39 void previewAvailable(const QImage& image, const QString& fileName);
40 void saved(const QString& fileName);
41 void canCaptureChanged();
45 virtual void start() = 0;
46 virtual void stop() = 0;
48 // TODO: move this from here
49 void setPreviewSize(const QSize& size);
51 // TODO: move this from here
52 void setFileName(const QString& fileName);
54 QtCamModePrivate *d_ptr;
57 #endif /* QT_CAM_MODE_H */