equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2004-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 * Definition of the CUserSelections |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 /** |
|
21 @file |
|
22 */ |
|
23 |
|
24 #include "userselections.h" |
|
25 #include "sisregistrysession.h" |
|
26 |
|
27 using namespace Swi; |
|
28 |
|
29 /*static*/ CUserSelections* CUserSelections::NewL() |
|
30 { |
|
31 CUserSelections* self = new(ELeave) CUserSelections(); |
|
32 return self; |
|
33 } |
|
34 |
|
35 /*static*/ CUserSelections* CUserSelections::NewLC() |
|
36 { |
|
37 CUserSelections* self = CUserSelections::NewL(); |
|
38 CleanupStack::PushL(self); |
|
39 return self; |
|
40 } |
|
41 |
|
42 CUserSelections::CUserSelections() : iDrive(KNoDriveSelected) |
|
43 { |
|
44 } |
|
45 |
|
46 EXPORT_C void CUserSelections::SetOptionsL(const RArray<TBool>& aOptions) |
|
47 { |
|
48 //Delete already existing selected options |
|
49 iOptions.Close(); |
|
50 for (TInt i=0; i < aOptions.Count(); ++i) |
|
51 { |
|
52 User::LeaveIfError(iOptions.Append(aOptions[i])); |
|
53 } |
|
54 } |