author | zecke <zecke> | 2004-03-13 23:10:26 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-03-13 23:10:26 (UTC) |
commit | 6b5ec807e25094979f5631a3a46baf7415326d8a (patch) (side-by-side diff) | |
tree | a5af190712e332d3b6869795cb944b98102fdb1f /noncore/multimedia/camera/lib/zcameraio.cpp | |
parent | 874af2f5ce2d48a460d5d9fa1d6535b68e5966da (diff) | |
download | opie-6b5ec807e25094979f5631a3a46baf7415326d8a.zip opie-6b5ec807e25094979f5631a3a46baf7415326d8a.tar.gz opie-6b5ec807e25094979f5631a3a46baf7415326d8a.tar.bz2 |
ODP changes
Diffstat (limited to 'noncore/multimedia/camera/lib/zcameraio.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/camera/lib/zcameraio.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/noncore/multimedia/camera/lib/zcameraio.cpp b/noncore/multimedia/camera/lib/zcameraio.cpp index d59cbbb..c4be42f 100644 --- a/noncore/multimedia/camera/lib/zcameraio.cpp +++ b/noncore/multimedia/camera/lib/zcameraio.cpp @@ -9,48 +9,50 @@ ** packaging of this file. ** ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. ** **********************************************************************/ #include "zcameraio.h" #include <sys/types.h> #include <sys/stat.h> #include <errno.h> #include <string.h> #include <fcntl.h> #include <unistd.h> #include <stdio.h> #include <qimage.h> #include <qdatetime.h> #include <opie2/odebug.h> #define SHARPZDC "/dev/sharp_zdc" +using namespace Opie::Core; + ZCameraIO* ZCameraIO::_instance = 0; ZCameraIO* ZCameraIO::instance() { if ( !ZCameraIO::_instance ) { odebug << "Creating ZCameraIO::_instance" << oendl; ZCameraIO::_instance = new ZCameraIO(); } return ZCameraIO::_instance; } ZCameraIO::ZCameraIO() : _pressed( false ), _height( 0 ), _width( 0 ), _zoom( 0 ), _flip( -1 ), _rot( 0 ), _readlen( 0 ) { _driver = ::open( SHARPZDC, O_RDWR ); if ( _driver == -1 ) oerr << "Can't open camera driver: " << strerror(errno) << oendl; else init(); } |