summaryrefslogtreecommitdiffstats
path: root/core/Manager.h
diff options
context:
space:
mode:
authorhandbrake <[email protected]>2006-01-14 12:53:59 +0000
committerhandbrake <[email protected]>2006-01-14 12:53:59 +0000
commita9a84221af31ca7d11d1aa182d8b152270203f9f (patch)
treeda452de9a4d3bb509d59de4a65fe12e9fb8e7825 /core/Manager.h
parent939b35fc70bb688d38b086afebd8d14d8193d2c9 (diff)
HandBrake 0.3
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'core/Manager.h')
-rw-r--r--core/Manager.h61
1 files changed, 61 insertions, 0 deletions
diff --git a/core/Manager.h b/core/Manager.h
new file mode 100644
index 000000000..8aa6cec3a
--- /dev/null
+++ b/core/Manager.h
@@ -0,0 +1,61 @@
+/* $Id: Manager.h,v 1.27 2003/09/30 21:21:32 titer Exp $
+
+ This file is part of the HandBrake source code.
+ Homepage: <http://beos.titer.org/handbrake/>.
+ It may be used under the terms of the GNU General Public License. */
+
+#ifndef HB_MANAGER_H
+#define HB_MANAGER_H
+
+#include "Common.h"
+#include "Thread.h"
+
+class HBManager : public HBThread
+{
+ public:
+ HBManager( bool debug = false );
+ ~HBManager();
+ void DoWork();
+
+ /* Methods called by the interface */
+ bool NeedUpdate();
+ HBStatus GetStatus();
+ void ScanVolumes( char * device );
+ void StartRip( HBTitle * title, HBAudio * audio1,
+ HBAudio * audio2, char * file );
+ void SuspendRip();
+ void ResumeRip();
+ void StopRip();
+ uint8_t * GetPreview( HBTitle * title, uint32_t image );
+
+ /* Methods called by the working threads */
+ int GetPid();
+ void Scanning( char * volume, int title );
+ void ScanDone( HBList * titleList );
+ void Done();
+ void Error();
+ void SetPosition( float pos );
+
+ private:
+ void FixPictureSettings( HBTitle * title );
+
+ int fPid;
+
+ /* Booleans used in DoWork() */
+ bool fStopScan;
+ volatile bool fStopRip;
+ bool fRipDone;
+ bool fError;
+
+ /* Scanner thread */
+ HBScanner * fScanner;
+
+ /* Status infos */
+ bool fNeedUpdate;
+ HBStatus fStatus;
+ HBTitle * fCurTitle;
+ HBAudio * fCurAudio1;
+ HBAudio * fCurAudio2;
+};
+
+#endif