javamanager/javaappscheme/src.s60/serviceapp.cpp
changeset 76 4ad59aaee882
parent 61 bf7ee68962da
child 72 1f0034e370aa
equal deleted inserted replaced
69:773449708c84 76:4ad59aaee882
    54 }
    54 }
    55 
    55 
    56 void ServiceApp::quit()
    56 void ServiceApp::quit()
    57 {
    57 {
    58     LOG(EJavaQtServiceApp, EInfo, "ServiceApp quit() called");
    58     LOG(EJavaQtServiceApp, EInfo, "ServiceApp quit() called");
       
    59     exit(KErrNone); // Exit with OK status
    59 }
    60 }
    60 
    61 
    61 
    62 
    62 // ----------UriService---------------
    63 // ----------UriService---------------
    63 
    64 
    86 bool UriService::view(const QString& uri, bool retValue)
    87 bool UriService::view(const QString& uri, bool retValue)
    87 {
    88 {
    88     LOG(EJavaQtServiceApp, EInfo, "UriService::view(uri, retValue) called");
    89     LOG(EJavaQtServiceApp, EInfo, "UriService::view(uri, retValue) called");
    89     std::wstring stdWStrUri = uri.toStdWString();
    90     std::wstring stdWStrUri = uri.toStdWString();
    90     LOG1(EJavaQtServiceApp, EInfo, "url is %S", stdWStrUri.c_str());
    91     LOG1(EJavaQtServiceApp, EInfo, "url is %S", stdWStrUri.c_str());
    91     if (retValue)
       
    92     {
       
    93         LOG(EJavaQtServiceApp, EInfo, "UriService::view retValue parameter is true");
       
    94     }
       
    95 
    92 
    96     XQRequestInfo info = requestInfo();
    93     XQRequestInfo info = requestInfo();
    97     bool asyncAnswer = !info.isSynchronous();
       
    98 
    94 
    99     // Start javalauncher.exe and pass the Url to it
    95     // Start javalauncher.exe and pass the Url to it
   100     _LIT(KJavaLauncherExe, "javalauncher.exe");
    96     _LIT(KJavaLauncherExe, "javalauncher.exe");
   101     RProcess rProcess;
    97     RProcess rProcess;
   102     retValue = true;
    98     retValue = true;