installationservices/swinstallationfw/source/sif.cpp
branchRCL_3
changeset 26 8b7f4e561641
parent 25 7333d7932ef7
child 27 e8965914fac7
equal deleted inserted replaced
25:7333d7932ef7 26:8b7f4e561641
     1 /*
       
     2 * Copyright (c) 2008-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 the License "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: 
       
    15 * This file implements the RSoftwareInstall API.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #include <usif/sif/sif.h>
       
    21 #include "sifservercommon.h"
       
    22 
       
    23 using namespace Usif;
       
    24 
       
    25 EXPORT_C RSoftwareInstall::RSoftwareInstall()
       
    26 	{
       
    27 	}
       
    28 
       
    29 EXPORT_C TInt RSoftwareInstall::Connect()
       
    30 	{
       
    31 	TVersion ver = Version();
       
    32 	return iTransport.Connect(KSifServerName, ver, KServerImageName, KSifServerUid);
       
    33 	}
       
    34 
       
    35 EXPORT_C void RSoftwareInstall::Close()
       
    36 	{
       
    37 	iTransport.Close();
       
    38 	}
       
    39 
       
    40 EXPORT_C void RSoftwareInstall::GetComponentInfo(const TDesC& aFileName, CComponentInfo& aComponentInfo, TRequestStatus& aStatus)
       
    41 	{
       
    42 	iTransport.GetComponentInfo(aFileName, aComponentInfo, aStatus);
       
    43 	}
       
    44 
       
    45 EXPORT_C void RSoftwareInstall::GetComponentInfo(RFile& aFileHandle, CComponentInfo& aComponentInfo, TRequestStatus& aStatus)
       
    46 	{
       
    47 	iTransport.GetComponentInfo(aFileHandle, aComponentInfo, aStatus);
       
    48 	}
       
    49 
       
    50 EXPORT_C void RSoftwareInstall::Install(const TDesC& aFileName, TRequestStatus& aStatus, TBool aExclusiveOperation)
       
    51 	{
       
    52 	iTransport.Install(aFileName, aStatus, aExclusiveOperation);
       
    53 	}
       
    54 
       
    55 EXPORT_C void RSoftwareInstall::Install(const TDesC& aFileName, const COpaqueNamedParams& aArguments,
       
    56 										COpaqueNamedParams& aResults, TRequestStatus& aStatus,
       
    57 										TBool aExclusiveOperation)
       
    58 	{
       
    59 	iTransport.Install(aFileName, aArguments, aResults, aStatus, aExclusiveOperation);
       
    60 	}
       
    61 
       
    62 EXPORT_C void RSoftwareInstall::Install(RFile& aFileHandle, TRequestStatus& aStatus, TBool aExclusiveOperation)
       
    63 	{
       
    64 	iTransport.Install(aFileHandle, aStatus, aExclusiveOperation);
       
    65 	}
       
    66 
       
    67 EXPORT_C void RSoftwareInstall::Install(RFile& aFileHandle, const COpaqueNamedParams& aArguments,
       
    68 										COpaqueNamedParams& aResults, TRequestStatus& aStatus,
       
    69 										TBool aExclusiveOperation)
       
    70 	{
       
    71 	iTransport.Install(aFileHandle, aArguments, aResults, aStatus, aExclusiveOperation);
       
    72 	}
       
    73 
       
    74 EXPORT_C void RSoftwareInstall::Uninstall(TComponentId aComponentId, TRequestStatus& aStatus, TBool aExclusiveOperation)
       
    75 	{
       
    76 	iTransport.Uninstall(aComponentId, aStatus, aExclusiveOperation);
       
    77 	}
       
    78 
       
    79 EXPORT_C void RSoftwareInstall::Uninstall(TComponentId aComponentId, const COpaqueNamedParams& aArguments,
       
    80 										COpaqueNamedParams& aResults, TRequestStatus& aStatus,
       
    81 										TBool aExclusiveOperation)
       
    82 	{
       
    83 	iTransport.Uninstall(aComponentId, aArguments, aResults, aStatus, aExclusiveOperation);
       
    84 	}
       
    85 
       
    86 EXPORT_C void RSoftwareInstall::Activate(TComponentId aComponentId, TRequestStatus& aStatus)
       
    87 	{
       
    88 	iTransport.Activate(aComponentId, aStatus);
       
    89 	}
       
    90 
       
    91 	EXPORT_C void RSoftwareInstall::Deactivate(TComponentId aComponentId, TRequestStatus& aStatus)
       
    92 	{
       
    93 	iTransport.Deactivate(aComponentId, aStatus);
       
    94 	}
       
    95 
       
    96 EXPORT_C void RSoftwareInstall::CancelOperation()
       
    97 	{
       
    98 	iTransport.CancelOperation();
       
    99 	}