From 63ac729b32331438a607ec5b8be046143c7592e6 Mon Sep 17 00:00:00 2001 From: deva Date: Sat, 26 Mar 2005 10:32:50 +0000 Subject: Added an error object for genereic error message handling. --- src/camera.h | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) (limited to 'src/camera.h') diff --git a/src/camera.h b/src/camera.h index 5190954..44901aa 100644 --- a/src/camera.h +++ b/src/camera.h @@ -28,6 +28,10 @@ #ifndef __CAMERA_H__ #define __CAMERA_H__ +#include +using namespace std; +#include "error.h" + #include #include #include @@ -46,19 +50,34 @@ #include +/** + * This class represents the symbolic representation of the camera and + * the network functionality. + */ class Camera { public: - Camera(const char *ip, - const int port); + Camera(); ~Camera(); + void connect(const char *ip, + const int port); + void setCpr(char *newcpr); + + // Camera actions void start(); void stop(); void freeze(); void unfreeze(); void snapshot(); + // Status methods + bool hasError(); + string getErrorString(); + private: + // Error object passed to all sub objects. + Error *errorstatus; + pthread_t playertid; pthread_t decodetid; pthread_t encodetid; -- cgit v1.2.3