www.pudn.com > DVBPlayer.rar > DvbReciver.h, change:2004-07-15,size:1415b


// DvbReciver.h: interface for the CDvbReciver class. 
// 
////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_DVBRECIVER_H__31E9A9BE_1FB2_4820_9DC0_9ECBF5CA53ED__INCLUDED_) 
#define AFX_DVBRECIVER_H__31E9A9BE_1FB2_4820_9DC0_9ECBF5CA53ED__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
#include "event.h" 
#include "queue.h" 
 
#include <vector> 
 
#define MAX_EVENT_TARGETS 4 
 
#include "uiinterface.h" 
#include "dsm.h" 
#include "tuners.h" 
#include "thread.h" 
#include "semaphore.h" 
 
 
using namespace std ; 
 
 
// this is a dvb data reciver 
class CDvbReciver  : public EventQueue 
{ 
public: 
	DWORD RegisterActiveUI(UiInterface * ui); 
	static void ServiceThreadFunc(void* pvoid); 
	int ServiceEvent(Event* p); 
	void Tuner ( TunerAttr* p  ); 
	void Exit(); 
	CWnd* GetMainUiWnd(); 
	DWORD AcceptEvent( Event* ); 
	int MainHandle(); 
	BOOL Init(CWnd* pwnd); 
	CDvbReciver(); 
	virtual ~CDvbReciver(); 
 
protected: 
	UiInterface*	m_ui ;  // ui pointer 
	 
	Queue < Event * >*m_eventQueue; //event queue 
	Thread*			m_service_thread ;  
	Semaphore *m_eventSem; 
	BOOL	is_run ;  
	vector < UiInterface * >*m_uiList; 
	 
	 
	    
 
	//tuner 
	BOOL	is_tunered ; //  
	TunerParams tuner_param ;  
	 
 
 
}; 
 
#endif // !defined(AFX_DVBRECIVER_H__31E9A9BE_1FB2_4820_9DC0_9ECBF5CA53ED__INCLUDED_)