/***************************************************************************** * InterfaceWindow::QuitRequested *****************************************************************************/ bool InterfaceWindow::QuitRequested() { if( p_playlist ) { playlist_Stop( p_playlist ); } p_mediaControl->SetStatus(-1, INPUT_RATE_DEFAULT); _StoreSettings(); vlc_object_kill( p_intf ); return( true ); }
bool App::QuitRequested() { if (fMainWindow != NULL && fMainWindow->LockLooperWithTimeout(1500000) == B_OK) { BMessage windowSettings; fMainWindow->StoreSettings(windowSettings); fMainWindow->UnlockLooper(); _StoreSettings(windowSettings); } return true; }
void App::MessageReceived(BMessage* message) { switch (message->what) { case MSG_MAIN_WINDOW_CLOSED: { BMessage windowSettings; if (message->FindMessage("window settings", &windowSettings) == B_OK) { _StoreSettings(windowSettings); } fWindowCount--; if (fWindowCount == 0) Quit(); break; } default: BApplication::MessageReceived(message); break; } }