#ifndef DSDEVICE_H_
#define DSDEVICE_H_
#include <string>
#include <list>
#include "DS_DeviceDescriptor.h"
#include "CaptureDevice.h"
#include "avcap-export.h"
namespace avcap
{
class DS_ConnectorManager;
class DS_ControlManager;
class DS_VidCapManager;
class DS_DeviceDescriptor;
class DS_FormatManager;
class AVCAP_Export DS_Device : public CaptureDevice
{
private:
DS_VidCapManager* mVidCapMgr;
DS_ConnectorManager* mConnectorMgr;
DS_ControlManager* mControlMgr;
DS_FormatManager* mFormatMgr;
DS_DeviceDescriptor* mDSDeviceDescriptor;
public:
DS_Device(DS_DeviceDescriptor* dd);
virtual ~DS_Device();
inline const DeviceDescriptor* getDescriptor()
{ return (const DeviceDescriptor*) mDSDeviceDescriptor; }
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