#ifndef V4L1_DEVICE_H_
#define V4L1_DEVICE_H_
#include <string>
#include <list>
#include "V4L1_DeviceDescriptor.h"
#include "CaptureDevice.h"
namespace avcap
{
class V4L1_ConnectorManager;
class V4L1_ControlManager;
class V4L1_VidCapManager;
class V4L1_DeviceDescriptor;
class V4L1_FormatManager;
class V4L1_Device : public CaptureDevice
{
public:
private:
V4L1_VidCapManager *mVidCapMgr;
V4L1_ConnectorManager *mConnectorMgr;
V4L1_ControlManager *mControlMgr;
V4L1_FormatManager *mFormatMgr;
V4L1_DeviceDescriptor *mDeviceDescriptor;
public:
V4L1_Device(V4L1_DeviceDescriptor* dd);
virtual ~V4L1_Device();
inline const DeviceDescriptor* getDescriptor()
{ return 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