summaryrefslogtreecommitdiffstats
path: root/HBManager.h
diff options
context:
space:
mode:
authorhandbrake <[email protected]>2006-01-14 12:46:58 +0000
committerhandbrake <[email protected]>2006-01-14 12:46:58 +0000
commitbe63e88ea3080ae0323e55a486474612db5db214 (patch)
tree708aedd76429bba6ff0223c3852c69a7721d7d55 /HBManager.h
HandBrake 0.1
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'HBManager.h')
-rw-r--r--HBManager.h55
1 files changed, 55 insertions, 0 deletions
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 <Looper.h>
+
+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