javatools/javaupdater/src/systemamstraderprivateclient.cpp
branchRCL_3
changeset 18 9ac0a0a7da70
parent 17 0fd27995241b
child 19 71c436fe3ce0
equal deleted inserted replaced
17:0fd27995241b 18:9ac0a0a7da70
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  systemamstraderprivateclient.cpp
       
    15 *               Part of OMJ S60 environment updater process.
       
    16 *               Used to close the old S60 java environment in a controlled way.
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 #include "systemamstraderprivateclient.h"
       
    22 
       
    23 
       
    24 // constants
       
    25 _LIT(KSystemAMSTraderPrivateServerName, "!SystemAMSTrader.Private");
       
    26 const TInt KShutDownJavaEnv = 3;
       
    27 
       
    28 
       
    29 //Definition
       
    30 TBool RSystemAMSTraderPrivateClient::ShutdownJavaEnv(TRequestStatus& aStatus)
       
    31 {
       
    32     TVersion version;
       
    33     TInt err;
       
    34     err = CreateSession(KSystemAMSTraderPrivateServerName, version);
       
    35     if (err == KErrNone)
       
    36     {
       
    37         SendReceive(KShutDownJavaEnv, TIpcArgs(), aStatus);
       
    38     }
       
    39     return err == KErrNone;
       
    40 }
       
    41