equal
deleted
inserted
replaced
18 #ifndef CXESNAPSHOTCONTROL_H |
18 #ifndef CXESNAPSHOTCONTROL_H |
19 #define CXESNAPSHOTCONTROL_H |
19 #define CXESNAPSHOTCONTROL_H |
20 |
20 |
21 #include <QObject> |
21 #include <QObject> |
22 #include "cxeerror.h" |
22 #include "cxeerror.h" |
|
23 #include "cxenamespace.h" |
23 |
24 |
24 class CxeCameraDevice; |
25 class CxeCameraDevice; |
25 class CxeSnapshotControlPrivate; |
26 class CxeSnapshotControlPrivate; |
26 |
27 |
27 /*! |
28 /*! |
45 explicit CxeSnapshotControl(CxeCameraDevice &device); |
46 explicit CxeSnapshotControl(CxeCameraDevice &device); |
46 virtual ~CxeSnapshotControl(); |
47 virtual ~CxeSnapshotControl(); |
47 |
48 |
48 public: |
49 public: |
49 State state() const; |
50 State state() const; |
50 QSize calculateSnapshotSize(const QSize& displaySize, const QSize& outputResolution) const; |
51 QSize calculateSnapshotSize(const QSize& displaySize, Cxe::AspectRatio aspectRatio) const; |
51 void start(const QSize& size); |
52 void start(const QSize &size); |
52 void stop(); |
53 void stop(); |
53 |
54 |
54 signals: |
55 signals: |
55 void stateChanged(CxeSnapshotControl::State newState, CxeError::Id status); |
56 void stateChanged(CxeSnapshotControl::State newState, CxeError::Id status); |
56 void snapshotReady(CxeError::Id status, const QPixmap& snapshot); |
57 void snapshotReady(CxeError::Id status, const QImage &snapshot); |
57 |
58 |
58 public slots: |
59 public slots: |
59 void handleCameraEvent(int id, int error); |
60 void handleCameraEvent(int id, int error); |
60 |
61 |
61 private: |
62 private: |