void CmdExitLoop::execute() { // Get the instance of OSFactory OSFactory *pOsFactory = OSFactory::instance( getIntf() ); // Exit the main OS loop pOsFactory->getOSLoop()->exit(); }
void VlcProc::manage() { // Did the user request to quit vlc ? if( !vlc_object_alive( getIntf() ) ) { // Get the instance of OSFactory OSFactory *pOsFactory = OSFactory::instance( getIntf() ); // Exit the main OS loop pOsFactory->getOSLoop()->exit(); return; } }
MacOSXWindow::MacOSXWindow( intf_thread_t *pIntf, GenericWindow &rWindow, bool dragDrop, bool playOnDrop, MacOSXWindow *pParentWindow ): OSWindow( pIntf ), m_pParent( pParentWindow ), m_dragDrop( dragDrop ) { // Create the window Rect rect; SetRect( &rect, 0, 0, 0, 0 ); CreateNewWindow( kDocumentWindowClass, kWindowNoShadowAttribute | kWindowNoTitleBarAttribute, &rect, &m_win ); // Create the event handler for this window OSFactory *pOSFactory = OSFactory::instance( getIntf() ); ((MacOSXLoop*)pOSFactory->getOSLoop())->registerWindow( rWindow, m_win ); }