|
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 |
|
22 /** |
|
23 @file |
|
24 @internalTechnology |
|
25 */ |
|
26 |
|
27 #ifndef __USERSELECTIONS_H__ |
|
28 #define __USERSELECTIONS_H__ |
|
29 |
|
30 #include <e32base.h> |
|
31 |
|
32 namespace Swi |
|
33 { |
|
34 /** |
|
35 * Class which contains details of the user's selections. |
|
36 */ |
|
37 class CUserSelections : public CBase |
|
38 { |
|
39 public: |
|
40 static CUserSelections* NewL(); |
|
41 |
|
42 static CUserSelections* NewLC(); |
|
43 |
|
44 /** |
|
45 * Returns selected language |
|
46 * |
|
47 * @return Selected Language |
|
48 */ |
|
49 TLanguage Language() const; |
|
50 |
|
51 /** |
|
52 * Returns selected drive. |
|
53 * |
|
54 * @return User selected drive to install applications on |
|
55 */ |
|
56 TChar Drive() const; |
|
57 |
|
58 /** |
|
59 * Returns selected options. |
|
60 * |
|
61 * @return User selected drive to install applications on |
|
62 */ |
|
63 const RArray<TBool>& Options() const; |
|
64 |
|
65 /** |
|
66 * Sets selected drive. |
|
67 * |
|
68 * aDrive The drive the user selected to install the applications on |
|
69 */ |
|
70 void SetDrive(TChar aSelectedDrive); |
|
71 |
|
72 /** |
|
73 * Sete selected language. |
|
74 * |
|
75 * aLanguage The language the user selected |
|
76 */ |
|
77 void SetLanguage(TLanguage aLanguage); |
|
78 |
|
79 /** |
|
80 * Sets selected options. |
|
81 * |
|
82 * aDrive The drive the user selected to install the applications on |
|
83 */ |
|
84 IMPORT_C void SetOptionsL(const RArray<TBool>& aOptions); |
|
85 |
|
86 ~CUserSelections(); |
|
87 private: |
|
88 // constructor |
|
89 CUserSelections(); |
|
90 |
|
91 private: |
|
92 |
|
93 /// Drive user wished to install application(s) onto |
|
94 TChar iDrive; |
|
95 |
|
96 /// List of languages user has selected to install |
|
97 TLanguage iLanguage; |
|
98 |
|
99 /// List of options, ETrue if the option was selected by the user, EFalse otherwise |
|
100 RArray<TBool> iOptions; |
|
101 }; |
|
102 |
|
103 } // end namespace Swi |
|
104 |
|
105 #include "userselections.inl" |
|
106 |
|
107 #endif |