#ifndef V4L2_DEVICE_H_
#define V4L2_DEVICE_H_
#include <string>
#include <list>
#include "V4L2_DeviceDescriptor.h"
#include "CaptureDevice.h"
namespace avcap
{
class V4L2_ConnectorManager;
class V4L2_ControlManager;
class V4L2_VidCapManager;
class V4L2_DeviceDescriptor;
class V4L2_FormatManager;
class V4L2_Device : public CaptureDevice
{
public:
private:
V4L2_VidCapManager *mVidCapMgr;
V4L2_ConnectorManager *mConnectorMgr;
V4L2_ControlManager *mControlMgr;
V4L2_FormatManager *mFormatMgr;
V4L2_DeviceDescriptor *mDeviceDescriptor;
public:
V4L2_Device(V4L2_DeviceDescriptor* dd);
virtual ~V4L2_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