//---------------------------------------------------------------------------- // Laser Guard Ltd. // Copyright © 2000-2002. All Rights Reserved. // Version 1.0 01/01/2000 // Last modification: 08/10/2003 // PROJECT: // SUBSYSTEM: // FILE: VideoCamera.h // AUTHOR: Sergey Chizhevskiy // OVERVIEW // ~~~~~~~~ // Header file of VideoCamera.h //---------------------------------------------------------------------------- // VideoCamera.h: interface for the CVideoCamera class. // ////////////////////////////////////////////////////////////////////// #if !defined(AFX_VIDEOCAMERA_H__65EB3433_5B66_4881_9714_275ED154976D__INCLUDED_) #define AFX_VIDEOCAMERA_H__65EB3433_5B66_4881_9714_275ED154976D__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 //#include "VideoPinCO.h" #include "VideoDevice.h" enum { VC_NONE, VC_PTZ, VC_FIX }; class CVideoCaptureSource; class CVideoCamera : public CVideoDevice { public: CVideoCamera(); virtual ~CVideoCamera(); public: virtual void CheckState(); virtual BOOL Connect( CVideoPin *pPin, BOOL bAutoConnect = TRUE, BOOL bAutoDisconnect = TRUE, DWORD dwTimeLimit = 3000UL ); virtual BOOL Disconnect(); virtual BOOL AssignCaptureSource( CVideoCaptureSource *pVideoCaptureSource ); virtual CVideoCaptureSource *GetVideoCaptureSource() { return m_pVideoCaptureSource; } int GetType() { return m_nType; } BOOL IsLock() { return m_bLock; } void Lock() { m_bLock = TRUE; } void Unlock() { m_bLock = FALSE; } public: CString* GetName() { return &m_Name; } void SetName( CString* pName ) { m_Name = *pName; } private: // data for automatic connection CVideoPin *m_pWaitPin; // time of start connection DWORD m_dwWaitTime; // maximum connection time in automatic mode DWORD m_dwTimeLimit; // is nessesary to disconnect automaticaly after connect BOOL m_bAutoDisconnect; protected: CString m_Name; int m_nType; int m_bLock; CVideoCaptureSource *m_pVideoCaptureSource; }; #endif