Exemple #1
0
    void RunMessageLoop( ) throw( )
    {
#ifdef RHODES_EMULATOR
        m_appWindow.MessageLoop();
#else
        MSG msg;
        while (GetMessage(&msg, NULL, 0, 0))
        {
            if (!m_appWindow.TranslateAccelerator(&msg))
            {
                TranslateMessage(&msg);
                DispatchMessage(&msg);
            }
        }
#endif

#if defined(OS_WINCE)&& !defined( OS_PLATFORM_CE )
        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();
    }
Exemple #2
0
CHttpServer::~CHttpServer(void)
{
  rho_sync_destroy();

  shutdown_poll(ctx);
  m_thread.RemoveHandle(m_hEvent);
  m_thread.Shutdown();
  shttpd_fini(ctx);
  LOG(INFO) + "Http server thread shutdown";

#if defined(_WIN32_WCE)
  CGPSController* pGPS = CGPSController::Instance();
  pGPS->DeleteInstance();
#endif
  if (m_pStartPage) {
	  free(m_pStartPage);
  }
  if (m_pOptionsPage) {
      free(m_pOptionsPage);
  }
#ifdef ENABLE_DYNAMIC_RHOBUNDLE
  if ( m_szRhobundleReloadUrl )
	  free( m_szRhobundleReloadUrl );
#endif
}
Exemple #3
0
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();
}
Exemple #4
0
void CRhodesModule::RunMessageLoop( ) throw( )
{
    m_appWindow.getWebKitEngine()->RunMessageLoop(m_appWindow);

#if defined(OS_WINCE)
	if(RHO_IS_WMDEVICE)
	{
		if (g_hNotify)
		  lpfn_Registry_CloseNotification(g_hNotify);

	 if ( g_hNotifyCell )
		 lpfn_Registry_CloseNotification(g_hNotifyCell);

		CGPSController* pGPS = CGPSController::Instance();
		pGPS->DeleteInstance();
	}
#endif
    rho_ringtone_manager_stop();

    rho::common::CRhodesApp::Destroy();

//	ReleaseMutex(m_hMutex);

    rho_platform_check_restart_application();
}
Exemple #5
0
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();
}
Exemple #6
0
    void RunMessageLoop( ) throw( )
    {
        MSG msg;
        while (GetMessage(&msg, NULL, 0, 0))
        {
            if (!m_appWindow.TranslateAccelerator(&msg))
            {
                TranslateMessage(&msg);
                DispatchMessage(&msg);
            }
        }
        // Stop local server
        //m_pServerHost->Stop();
        //delete m_pServerHost;
        //m_pServerHost = NULL;

#if defined(OS_WINCE)
        CGPSController* pGPS = CGPSController::Instance();
        pGPS->DeleteInstance();
#endif

        rho::common::CRhodesApp::Destroy();
    }