#ifndef QT_DEVICE_H
#define QT_DEVICE_H
#include <string>
#include <list>
#include "DeviceDescriptor.h"
#include "CaptureDevice.h"
#include "QT_FormatManager.h"
namespace avcap
{
class QT_DeviceDescriptor;
class QT_VidCapManager;
class QT_ConnectorManager;
class QT_ControlManager;
class QT_Device : public CaptureDevice
{
public:
private:
QT_DeviceDescriptor* mDeviceDescriptor;
QT_FormatManager* mFormatMgr;
QT_VidCapManager* mVidCapMgr;
QT_ConnectorManager* mConnectorMgr;
QT_ControlManager* mControlMgr;
public:
QT_Device(QT_DeviceDescriptor* dd);
virtual ~QT_Device();
inline const DeviceDescriptor* getDescriptor()
{ return (const DeviceDescriptor*) mDeviceDescriptor; }
inline CaptureManager* getVidCapMgr()
{ return (CaptureManager*) mVidCapMgr; }
inline ConnectorManager* getConnectorMgr()
{ return (ConnectorManager*) mConnectorMgr; }
inline ControlManager* getControlMgr()
{ return (ControlManager*) mControlMgr; }
inline FormatManager* getFormatMgr()
{ return (FormatManager*) mFormatMgr; }
private:
int open();
int close();
};
}
#endif