Diffstat (limited to 'noncore/multimedia/camera/zcameraio.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/camera/zcameraio.h | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/noncore/multimedia/camera/zcameraio.h b/noncore/multimedia/camera/zcameraio.h index 9d4b1d7..edce143 100644 --- a/noncore/multimedia/camera/zcameraio.h +++ b/noncore/multimedia/camera/zcameraio.h | |||
@@ -18,6 +18,11 @@ | |||
18 | 18 | ||
19 | #include <qobject.h> | ||
20 | |||
19 | class QImage; | 21 | class QImage; |
22 | class QTime; | ||
20 | 23 | ||
21 | class ZCameraIO | 24 | class ZCameraIO : public QObject |
22 | { | 25 | { |
26 | Q_OBJECT | ||
27 | |||
23 | public: | 28 | public: |
@@ -33,3 +38,6 @@ class ZCameraIO | |||
33 | 38 | ||
39 | // low level interface | ||
40 | |||
34 | bool setCaptureFrame( int w, int h, int zoom = 256, bool rot = true ); | 41 | bool setCaptureFrame( int w, int h, int zoom = 256, bool rot = true ); |
42 | bool setZoom( int zoom = 0 ); | ||
35 | void setReadMode( int = IMAGE | XFLIP | YFLIP ); | 43 | void setReadMode( int = IMAGE | XFLIP | YFLIP ); |
@@ -40,7 +48,10 @@ class ZCameraIO | |||
40 | bool isFinderReversed() const; | 48 | bool isFinderReversed() const; |
41 | bool isOpen() const; | ||
42 | 49 | ||
43 | bool snapshot( QImage* ); | ||
44 | bool snapshot( unsigned char* ); | 50 | bool snapshot( unsigned char* ); |
51 | bool snapshot( QImage* ); | ||
52 | |||
53 | // high level interface | ||
54 | bool isOpen() const; | ||
45 | static ZCameraIO* instance(); | 55 | static ZCameraIO* instance(); |
56 | void captureFrame( int w, int h, int zoom, QImage* image ); | ||
46 | 57 | ||
@@ -53,2 +64,5 @@ class ZCameraIO | |||
53 | 64 | ||
65 | signals: | ||
66 | void shutterClicked(); | ||
67 | |||
54 | private: | 68 | private: |
@@ -62,2 +76,4 @@ class ZCameraIO | |||
62 | int _readlen; | 76 | int _readlen; |
77 | |||
78 | QTime* _timer; | ||
63 | }; | 79 | }; |