summaryrefslogtreecommitdiff
path: root/noncore/multimedia/camera/zcameraio.h
Side-by-side diff
Diffstat (limited to 'noncore/multimedia/camera/zcameraio.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/multimedia/camera/zcameraio.h22
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 @@
+#include <qobject.h>
+
class QImage;
+class QTime;
-class ZCameraIO
+class ZCameraIO : public QObject
{
+ Q_OBJECT
+
public:
@@ -33,3 +38,6 @@ class ZCameraIO
+ // low level interface
+
bool setCaptureFrame( int w, int h, int zoom = 256, bool rot = true );
+ bool setZoom( int zoom = 0 );
void setReadMode( int = IMAGE | XFLIP | YFLIP );
@@ -40,7 +48,10 @@ class ZCameraIO
bool isFinderReversed() const;
- bool isOpen() const;
- bool snapshot( QImage* );
bool snapshot( unsigned char* );
+ bool snapshot( QImage* );
+
+ // high level interface
+ bool isOpen() const;
static ZCameraIO* instance();
+ void captureFrame( int w, int h, int zoom, QImage* image );
@@ -53,2 +64,5 @@ class ZCameraIO
+ signals:
+ void shutterClicked();
+
private:
@@ -62,2 +76,4 @@ class ZCameraIO
int _readlen;
+
+ QTime* _timer;
};