|
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: Base class for SISX SIF plugin UI handlers. |
|
15 * |
|
16 */ |
|
17 |
|
18 #include "sisxsifpluginuihandlerbase.h" // CSisxSifPluginUiHandlerBase |
|
19 #include "sisxsifplugininstallparams.h" // CSisxSifPluginInstallParams |
|
20 |
|
21 using namespace Usif; |
|
22 |
|
23 |
|
24 // ======== MEMBER FUNCTIONS ======== |
|
25 |
|
26 // --------------------------------------------------------------------------- |
|
27 // CSisxSifPluginUiHandlerBase::CSisxSifPluginUiHandlerBase() |
|
28 // --------------------------------------------------------------------------- |
|
29 // |
|
30 CSisxSifPluginUiHandlerBase::CSisxSifPluginUiHandlerBase( RFs& aFs ) : iFs( aFs ) |
|
31 { |
|
32 } |
|
33 |
|
34 // --------------------------------------------------------------------------- |
|
35 // CSisxSifPluginUiHandlerBase::~CSisxSifPluginUiHandlerBase() |
|
36 // --------------------------------------------------------------------------- |
|
37 // |
|
38 CSisxSifPluginUiHandlerBase::~CSisxSifPluginUiHandlerBase() |
|
39 { |
|
40 delete iInstallParams; |
|
41 } |
|
42 |
|
43 // --------------------------------------------------------------------------- |
|
44 // CSisxSifPluginUiHandlerBase::SetInstallParamsL() |
|
45 // --------------------------------------------------------------------------- |
|
46 // |
|
47 void CSisxSifPluginUiHandlerBase::SetInstallParamsL( |
|
48 const CSisxSifPluginInstallParams& aInstallParams ) |
|
49 { |
|
50 if( iInstallParams ) |
|
51 { |
|
52 delete iInstallParams; |
|
53 iInstallParams = NULL; |
|
54 } |
|
55 iInstallParams = CSisxSifPluginInstallParams::NewL( aInstallParams ); |
|
56 } |
|
57 |
|
58 // --------------------------------------------------------------------------- |
|
59 // CSisxSifPluginUiHandlerBase::SetMaxInstalledSize() |
|
60 // --------------------------------------------------------------------------- |
|
61 // |
|
62 void CSisxSifPluginUiHandlerBase::SetMaxInstalledSize( TInt aSize ) |
|
63 { |
|
64 iMaxInstalledSize = aSize; |
|
65 } |
|
66 |
|
67 // --------------------------------------------------------------------------- |
|
68 // CSisxSifPluginUiHandlerBase::SetDriveSelectionRequired() |
|
69 // --------------------------------------------------------------------------- |
|
70 // |
|
71 void CSisxSifPluginUiHandlerBase::SetDriveSelectionRequired( TBool aIsRequired ) |
|
72 { |
|
73 iIsDriveSelectionRequired = aIsRequired; |
|
74 } |
|
75 |