//---------------------------------------------------------------------------
#ifndef RTSPRecorderService_H
#define RTSPRecorderService_H
//---------------------------------------------------------------------------
#include <SysUtils.hpp>
#include <Classes.hpp>
#include <SvcMgr.hpp>
#include <vcl.h>
#include "vidgrab.hpp"
//---------------------------------------------------------------------------

const int VIDEOGRABBERSCOUNT = 2;

class TRTSPRecordService : public TService
{
__published:    // IDE-managed Components
	void __fastcall ServiceStart(TService *Sender, bool &Started);
	void __fastcall ServiceExecute(TService *Sender);

private:        // User declarations
	TVideoGrabber *VideoGrabbers[VIDEOGRABBERSCOUNT];

public:         // User declarations
	__fastcall TRTSPRecordService(TComponent* Owner);
	TServiceController __fastcall GetServiceController(void);

	friend void __stdcall ServiceController(unsigned CtrlCode);
};
//---------------------------------------------------------------------------
extern PACKAGE TRTSPRecordService *RTSPRecordService;
//---------------------------------------------------------------------------
#endif
