appinstaller/AppinstUi/sisxsifplugin/src/sisxsifplugin.cpp
branchRCL_3
changeset 25 7333d7932ef7
equal deleted inserted replaced
24:5cc91383ab1e 25:7333d7932ef7
       
     1 /*
       
     2 * Copyright (c) 2010 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: Native SISX SIF (Software Install Framework) plugin.
       
    15 *
       
    16 */
       
    17 
       
    18 #include "sisxsifplugin.h"              // CSisxSifPlugin
       
    19 #include "sisxsifpluginactiveimpl.h"    // CSisxSifPluginActiveImpl
       
    20 
       
    21 using namespace Usif;
       
    22 
       
    23 
       
    24 // ======== MEMBER FUNCTIONS ========
       
    25 
       
    26 // ---------------------------------------------------------------------------
       
    27 // CSisxSifPlugin::NewL()
       
    28 // ---------------------------------------------------------------------------
       
    29 //
       
    30 CSisxSifPlugin* CSisxSifPlugin::NewL()
       
    31 	{
       
    32 	CSisxSifPlugin *self = new( ELeave ) CSisxSifPlugin;
       
    33 	CleanupStack::PushL( self );
       
    34 	self->ConstructL();
       
    35 	CleanupStack::Pop( self );
       
    36 	return self;
       
    37 	}
       
    38 
       
    39 // ---------------------------------------------------------------------------
       
    40 // CSisxSifPlugin::~CSisxSifPlugin()
       
    41 // ---------------------------------------------------------------------------
       
    42 //
       
    43 CSisxSifPlugin::~CSisxSifPlugin()
       
    44 	{
       
    45 	delete iImpl;
       
    46 	}
       
    47 
       
    48 // ---------------------------------------------------------------------------
       
    49 // CSisxSifPlugin::GetComponentInfo()
       
    50 // ---------------------------------------------------------------------------
       
    51 //
       
    52 void CSisxSifPlugin::GetComponentInfo( const TDesC& aFileName,
       
    53         const TSecurityContext& aSecurityContext,
       
    54         CComponentInfo& aComponentInfo,
       
    55         TRequestStatus& aStatus )
       
    56 	{
       
    57 	iImpl->GetComponentInfo( aFileName, aSecurityContext, aComponentInfo, aStatus );
       
    58 	}
       
    59 
       
    60 // ---------------------------------------------------------------------------
       
    61 // CSisxSifPlugin::GetComponentInfo()
       
    62 // ---------------------------------------------------------------------------
       
    63 //
       
    64 void CSisxSifPlugin::GetComponentInfo( RFile& aFileHandle,
       
    65         const TSecurityContext& aSecurityContext,
       
    66         CComponentInfo& aComponentInfo,
       
    67         TRequestStatus& aStatus )
       
    68 	{
       
    69 	iImpl->GetComponentInfo( aFileHandle, aSecurityContext, aComponentInfo, aStatus );
       
    70 	}
       
    71 
       
    72 // ---------------------------------------------------------------------------
       
    73 // CSisxSifPlugin::Install()
       
    74 // ---------------------------------------------------------------------------
       
    75 //
       
    76 void CSisxSifPlugin::Install( const TDesC& aFileName,
       
    77         const TSecurityContext& aSecurityContext,
       
    78         const COpaqueNamedParams& aInputParams,
       
    79         COpaqueNamedParams& aOutputParams,
       
    80         TRequestStatus& aStatus )
       
    81 	{
       
    82 	iImpl->Install( aFileName, aSecurityContext, aInputParams, aOutputParams, aStatus );
       
    83 	}
       
    84 
       
    85 // ---------------------------------------------------------------------------
       
    86 // CSisxSifPlugin::Install()
       
    87 // ---------------------------------------------------------------------------
       
    88 //
       
    89 void CSisxSifPlugin::Install( RFile& aFileHandle,
       
    90         const TSecurityContext& aSecurityContext,
       
    91         const COpaqueNamedParams& aInputParams,
       
    92         COpaqueNamedParams& aOutputParams,
       
    93         TRequestStatus& aStatus )
       
    94 	{
       
    95 	iImpl->Install( aFileHandle, aSecurityContext, aInputParams, aOutputParams, aStatus );
       
    96 	}
       
    97 
       
    98 // ---------------------------------------------------------------------------
       
    99 // CSisxSifPlugin::Uninstall()
       
   100 // ---------------------------------------------------------------------------
       
   101 //
       
   102 void CSisxSifPlugin::Uninstall( TComponentId aComponentId,
       
   103         const TSecurityContext& aSecurityContext,
       
   104         const COpaqueNamedParams& aInputParams,
       
   105         COpaqueNamedParams& aOutputParams,
       
   106         TRequestStatus& aStatus )
       
   107 	{
       
   108 	iImpl->Uninstall( aComponentId, aSecurityContext, aInputParams, aOutputParams, aStatus );
       
   109 	}
       
   110 
       
   111 // ---------------------------------------------------------------------------
       
   112 // CSisxSifPlugin::Activate()
       
   113 // ---------------------------------------------------------------------------
       
   114 //
       
   115 void CSisxSifPlugin::Activate( TComponentId aComponentId,
       
   116         const TSecurityContext& aSecurityContext,
       
   117         TRequestStatus& aStatus )
       
   118 	{
       
   119 	iImpl->Activate( aComponentId, aSecurityContext, aStatus );
       
   120 	}
       
   121 
       
   122 // ---------------------------------------------------------------------------
       
   123 // CSisxSifPlugin::Deactivate()
       
   124 // ---------------------------------------------------------------------------
       
   125 //
       
   126 void CSisxSifPlugin::Deactivate( TComponentId aComponentId,
       
   127         const TSecurityContext& aSecurityContext,
       
   128         TRequestStatus& aStatus )
       
   129 	{
       
   130 	iImpl->Deactivate( aComponentId, aSecurityContext, aStatus );
       
   131 	}
       
   132 
       
   133 // ---------------------------------------------------------------------------
       
   134 // CSisxSifPlugin::CancelOperation()
       
   135 // ---------------------------------------------------------------------------
       
   136 //
       
   137 void CSisxSifPlugin::CancelOperation()
       
   138     {
       
   139     iImpl->Cancel();
       
   140     }
       
   141 
       
   142 // ---------------------------------------------------------------------------
       
   143 // CSisxSifPlugin::CSisxSifPlugin()
       
   144 // ---------------------------------------------------------------------------
       
   145 //
       
   146 CSisxSifPlugin::CSisxSifPlugin()
       
   147     {
       
   148     }
       
   149 
       
   150 // ---------------------------------------------------------------------------
       
   151 // CSisxSifPlugin::ConstructL()
       
   152 // ---------------------------------------------------------------------------
       
   153 //
       
   154 void CSisxSifPlugin::ConstructL()
       
   155     {
       
   156     iImpl = CSisxSifPluginActiveImpl::NewL();
       
   157     }
       
   158