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


// Event.h: interface for the Event class. 
// 
////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_EVENT_H__51025C5E_1B49_43F5_BE72_8C7165737CAA__INCLUDED_) 
#define AFX_EVENT_H__51025C5E_1B49_43F5_BE72_8C7165737CAA__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
class Event   
{ 
public: 
	Event( DWORD c ) {  m_type = c; } 
	virtual ~Event(); 
 
	DWORD type() { return m_type ;  } 
 
protected: 
	Event() ;  
	DWORD m_type ; //event type ;  
 
}; 
 
 
//base class of all can handle event class 
class EventQueue  
{ 
public: 
    virtual DWORD AcceptEvent(Event *) = 0; 
}; 
 
 
// now all event ;  
 
enum 
{ 
	CMD_EXIT, 
	CMD_TUNER, 
	INFO_TUNER 
	 
}; 
 
 
#endif // !defined(AFX_EVENT_H__51025C5E_1B49_43F5_BE72_8C7165737CAA__INCLUDED_)