diff options
author | rhester <[email protected]> | 2007-02-11 20:25:14 +0000 |
---|---|---|
committer | rhester <[email protected]> | 2007-02-11 20:25:14 +0000 |
commit | c0b2ecafcae40768a4747a1c86350fdfd4460110 (patch) | |
tree | 6d12b9f433c879802d1fdfc6720e311c3288d128 /beos/HBApp.cpp | |
parent | 498ec43ed5e16edf0dbcfbf3f768feaaa0d55a8d (diff) |
Removed beos tree as deprecated
Updated documentation
Minor edit to DownloadMacOsXContribBinaries.sh to make hostname handling more consistent
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@290 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'beos/HBApp.cpp')
-rw-r--r-- | beos/HBApp.cpp | 85 |
1 files changed, 0 insertions, 85 deletions
diff --git a/beos/HBApp.cpp b/beos/HBApp.cpp deleted file mode 100644 index 702c74d94..000000000 --- a/beos/HBApp.cpp +++ /dev/null @@ -1,85 +0,0 @@ -#include "HBApp.h" -#include "MainWindow.h" -#include "ScanWindow.h" - -#include "hb.h" - -int main() -{ - HBApp * app = new HBApp(); - app->Run(); - delete app; - return 0; -} - -HBApp::HBApp() - : BApplication( "application/x-vnd.titer-handbrake" ) -{ - fHandle = hb_init( HB_DEBUG_ALL, 0 ); - - fMainWin = new MainWindow( fHandle ); - fScanWin = new ScanWindow( fHandle ); - fScanWin->AddToSubset( fMainWin ); - - fMainWin->Show(); - fScanWin->Show(); - - SetPulseRate( 200000 ); /* 0.2 second */ -} - -void HBApp::MessageReceived( BMessage * message ) -{ - switch( message->what ) - { - default: - BApplication::MessageReceived( message ); - break; - } -} - -void HBApp::RefsReceived( BMessage * message ) -{ -} - -void HBApp::Pulse() -{ - hb_state_t s; - hb_get_state( fHandle, &s ); - - switch( s.state ) - { - case HB_STATE_IDLE: - break; - - case HB_STATE_SCANNING: - fScanWin->Update( &s ); - break; - - case HB_STATE_SCANDONE: - if( hb_list_count( hb_get_titles( fHandle ) ) ) - { - /* Success */ - fScanWin->Hide(); - fMainWin->Update( &s ); - } - else - { - /* Invalid volume */ - fScanWin->Update( &s ); - } - break; - - case HB_STATE_WORKING: - case HB_STATE_PAUSED: - case HB_STATE_WORKDONE: - fMainWin->Update( &s ); - break; - } -} - -bool HBApp::QuitRequested() -{ - hb_close( &fHandle ); - return BApplication::QuitRequested(); -} - |