rllib  1
rlwebcam.h
Go to the documentation of this file.
00001 /***************************************************************************
00002                           rlwebcam.h  -  description
00003                              -------------------
00004     begin                : Mo Aug 24 2009
00005     copyright            : (C) 2009 by Rainer Lehrig
00006     email                : lehrig@t-online.de
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This library is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE as        *
00013  *   published by the Free Software Foundation                             *
00014  *                                                                         *
00015  ***************************************************************************/
00016 #ifndef _RL_WEBCAM_H_
00017 #define _RL_WEBCAM_H_
00018 
00019 #include "rldefine.h"
00020 #include "rlsocket.h"
00021 #include "rlstring.h"
00022 
00077 class rlWebcam
00078 {
00079 public:
00080   rlWebcam();
00081   virtual ~rlWebcam();
00082   int setUrl(const char *url);
00083   int disconnect();
00084   const char *getSnapshot(int timeout=3000);
00085   const char *getFrame(int timeout=3000);
00086   const char *getUrl();
00087   const char *getHost();
00088   int getPort();
00089   const char *getPath();
00090   int debug;
00091   rlString filename;
00092 
00093 private:
00094   rlSocket *sock;
00095   rlString url, temp1, temp2, temp3;
00096 };
00097 #endif