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 #ifndef QT_DEVICE_H 00025 #define QT_DEVICE_H 00026 00027 #include <string> 00028 #include <list> 00029 00030 #include "DeviceDescriptor.h" 00031 #include "CaptureDevice.h" 00032 #include "QT_FormatManager.h" 00033 00034 namespace avcap 00035 { 00036 // forward declarations 00037 class QT_DeviceDescriptor; 00038 class QT_VidCapManager; 00039 class QT_ConnectorManager; 00040 class QT_ControlManager; 00041 00043 00044 class QT_Device : public CaptureDevice 00045 { 00046 public: 00047 00048 private: 00049 QT_DeviceDescriptor* mDeviceDescriptor; 00050 QT_FormatManager* mFormatMgr; 00051 QT_VidCapManager* mVidCapMgr; 00052 QT_ConnectorManager* mConnectorMgr; 00053 QT_ControlManager* mControlMgr; 00054 00055 public: 00056 QT_Device(QT_DeviceDescriptor* dd); 00057 00058 virtual ~QT_Device(); 00059 00060 inline const DeviceDescriptor* getDescriptor() 00061 { return (const DeviceDescriptor*) mDeviceDescriptor; } 00062 00063 inline CaptureManager* getVidCapMgr() 00064 { return (CaptureManager*) mVidCapMgr; } 00065 00066 inline ConnectorManager* getConnectorMgr() 00067 { return (ConnectorManager*) mConnectorMgr; } 00068 00069 inline ControlManager* getControlMgr() 00070 { return (ControlManager*) mControlMgr; } 00071 00072 inline FormatManager* getFormatMgr() 00073 { return (FormatManager*) mFormatMgr; } 00074 00075 private: 00076 int open(); 00077 00078 int close(); 00079 }; 00080 } 00081 00082 #endif // QT_DEVICE_H 00083