From be63e88ea3080ae0323e55a486474612db5db214 Mon Sep 17 00:00:00 2001 From: handbrake Date: Sat, 14 Jan 2006 12:46:58 +0000 Subject: HandBrake 0.1 git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- HBManager.h | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 HBManager.h (limited to 'HBManager.h') diff --git a/HBManager.h b/HBManager.h new file mode 100644 index 000000000..c1cabca15 --- /dev/null +++ b/HBManager.h @@ -0,0 +1,55 @@ +/* $Id: HBManager.h,v 1.25 2003/08/24 13:55:18 titer Exp $ */ + +#ifndef _HB_MANAGER_H +#define _HB_MANAGER_H + +#include + +class HBWindow; +class HBPictureWin; +class HBFifo; + +class HBManager : public BLooper +{ + public: + HBManager( HBWindow * window ); + ~HBManager(); + virtual void MessageReceived( BMessage * message ); + + /* Methods called by the interface */ + void Start( HBVolumeInfo * volumeInfo, + HBTitleInfo * titleInfo, + HBAudioInfo * audio1Info, + HBAudioInfo * audio2Info, + char * file ); + void Suspend(); + void Resume(); + bool Cancel(); + + /* Methods called by the working threads */ + void SetPosition( float position ); + void SetFrameRate( float current, float average ); + void Done(); + void Error(); + + private: + void Stop(); + void DetectVolumes(); + + /* Interface */ + HBWindow * fWindow; + + /* Fifos & threads */ + BList * fThreadList; + BList * fFifoList; + + /* DVD infos */ + BList * fVolumeList; + + /* Status infos */ + float fPosition; + float fCurrentFrameRate; + float fAverageFrameRate; +}; + +#endif -- cgit v1.2.3