include/avcap/CaptureDevice.h

Go to the documentation of this file.
00001 /*
00002  * (c) 2005, 2008 Nico Pranke <Nico.Pranke@googlemail.com>, Robin Luedtke <RobinLu@gmx.de>
00003  *
00004  * This file is part of avcap.
00005  *
00006  * avcap is free software: you can redistribute it and/or modify
00007  * it under the terms of the GNU General Public License as published by
00008  * the Free Software Foundation, either version 3 of the License, or
00009  * (at your option) any later version.
00010  *
00011  * avcap is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with avcap.  If not, see <http://www.gnu.org/licenses/>.
00018  */
00019 
00020 /* avcap is free for non-commercial use.
00021  * To use it in commercial endeavors, please contact Nico Pranke <Nico.Pranke@googlemail.com>
00022  */
00023 
00024 
00025 #ifndef CAPTUREDEVICE_H_
00026 #define CAPTUREDEVICE_H_
00027 
00028 #include <string>
00029 #include <list>
00030 
00031 #include "avcap-export.h"
00032 #include "DeviceDescriptor.h"
00033 
00035 
00036 namespace avcap
00037 {
00038         // forward declarations
00039         class ConnectorManager;
00040         class ControlManager;
00041         class CaptureManager;
00042         class DeviceDescriptor;
00043         class FormatManager;
00044 
00088         class AVCAP_Export CaptureDevice
00089         {
00090         public:
00092                 inline CaptureDevice()
00093                         {}
00094 
00096                 virtual inline ~CaptureDevice()
00097                         {}
00098 
00100 
00101                 virtual const DeviceDescriptor* getDescriptor() = 0;
00102 
00104 
00105                 virtual CaptureManager* getVidCapMgr() = 0;
00106 
00108 
00109                 virtual ConnectorManager* getConnectorMgr() = 0;
00110 
00114                 virtual ControlManager* getControlMgr() = 0;
00115 
00117 
00118                 virtual FormatManager* getFormatMgr() = 0;
00119 
00120         private:
00122 
00125                 virtual int open() = 0;
00126 
00128 
00133                 virtual int close() = 0;
00134         };
00135 }
00136 
00137 #endif // CAPTUREDEVICE_H_
00138 

Generated on Mon Nov 30 11:10:30 2009 for avcap-0.1 by  doxygen 1.5.1