/////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////
////																					 ////
////																					 ////
////								  - QTThread.h -   		    						 ////
////																					 ////
////																					 ////
////				        Implementation of QTThread Class             			     ////
////					      Version  1.0	(September 2001)	    					 ////
////																					 ////
////								  Nadege SONNET     								 ////
////																					 ////
////																					 ////
/////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////

#ifndef _QTTHREAD_
#define _QTTHREAD_


#include "../x/scolplugin.h"


#include <windows.h>
#include "Movies.h"

//-----------------------------------------------------------------------------
// QTThread Class Declarations
//-----------------------------------------------------------------------------
class QTThread
{
public:
	HANDLE		Thread ;
	DWORD		ThreadID ;
	bool		ThreadIsRunning ;
	Movie   mymovie;
	Movie   mybuffermovie;
	bool    *mynewimage;
	GrafPtr myoffscreenGWorld;

public:
	QTThread();
	virtual ~QTThread();

	HRESULT		Start(Movie mymovie,bool *newimage,GrafPtr offscreenGWorld);// Start the tread
	void		Stop();     // Stop the Thread
	/*inline*/ bool	IsRunning() { return ThreadIsRunning ; }
	DWORD WINAPI ThreadProc();

} ;



#endif