void CRhodesModule::RunMessageLoop( ) throw( ) { #ifdef RHODES_EMULATOR m_appWindow.MessageLoop(); #else m_appWindow.getWebKitEngine()->RunMessageLoop(m_appWindow); #endif #if defined(OS_WINCE)&& !defined( OS_PLATFORM_MOTCE ) if (g_hNotify) RegistryCloseNotification(g_hNotify); if ( g_hNotifyCell ) RegistryCloseNotification(g_hNotifyCell); CGPSController* pGPS = CGPSController::Instance(); pGPS->DeleteInstance(); #endif rho_ringtone_manager_stop(); #if !defined(_WIN32_WCE) rho_clientregister_destroy(); #endif #ifdef RHODES_EMULATOR m_appWindow.DestroyUi(); #endif rho::common::CRhodesApp::Destroy(); net::CNetRequestImpl::deinitConnection(); }
void CRhodesModule::RunMessageLoop( ) throw( ) { #if defined(OS_WINDOWS_DESKTOP) m_appWindow.MessageLoop(); #else m_appWindow.getWebKitEngine()->RunMessageLoop(m_appWindow); #endif #if defined(OS_WINCE)&& !defined( OS_PLATFORM_MOTCE ) if (g_hNotify) RegistryCloseNotification(g_hNotify); if ( g_hNotifyCell ) RegistryCloseNotification(g_hNotifyCell); CGPSController* pGPS = CGPSController::Instance(); pGPS->DeleteInstance(); #endif rho_ringtone_manager_stop(); //#if !defined(_WIN32_WCE) // rho::sync::CClientRegister::Destroy(); //#endif #if defined(OS_WINDOWS_DESKTOP) m_appWindow.DestroyUi(); #endif rho::common::CRhodesApp::Destroy(); // net::CNetRequestImpl::deinitConnection(); #if !defined(OS_WINDOWS_DESKTOP) // ReleaseMutex(m_hMutex); #endif rho_platform_check_restart_application(); }