52 { |
53 { |
53 delete iPrivate; |
54 delete iPrivate; |
54 } |
55 } |
55 |
56 |
56 // --------------------------------------------------------------------------- |
57 // --------------------------------------------------------------------------- |
57 // CSifUi::ShowConfirmationL() |
58 // CSifUi::ShowPreparingL() |
58 // --------------------------------------------------------------------------- |
59 // --------------------------------------------------------------------------- |
59 // |
60 // |
60 EXPORT_C TBool CSifUi::ShowConfirmationL( const CSifUiAppInfo& aAppInfo ) |
61 EXPORT_C void CSifUi::ShowPreparingL() |
61 { |
62 { |
62 return iPrivate->ShowConfirmationL( aAppInfo ); |
63 iPrivate->ShowPreparingL(); |
63 } |
64 } |
64 |
65 |
65 // --------------------------------------------------------------------------- |
66 // --------------------------------------------------------------------------- |
66 // CSifUi::SetMemorySelectionL() |
67 // CSifUi::SetMemorySelectionL() |
67 // --------------------------------------------------------------------------- |
68 // --------------------------------------------------------------------------- |
68 // |
69 // |
69 EXPORT_C void CSifUi::SetMemorySelectionL( const RArray<TInt>& aDriveNumbers ) |
70 EXPORT_C void CSifUi::SetMemorySelectionL( const RArray<TInt>& aDriveNumbers ) |
70 { |
71 { |
71 iPrivate->SetMemorySelectionL( aDriveNumbers ); |
72 iPrivate->SetMemorySelectionL( aDriveNumbers ); |
72 } |
|
73 |
|
74 // --------------------------------------------------------------------------- |
|
75 // CSifUi::SelectedDrive() |
|
76 // --------------------------------------------------------------------------- |
|
77 // |
|
78 EXPORT_C TInt CSifUi::SelectedDrive( TInt& aDriveNumber ) |
|
79 { |
|
80 return iPrivate->SelectedDrive( aDriveNumber ); |
|
81 } |
73 } |
82 |
74 |
83 // --------------------------------------------------------------------------- |
75 // --------------------------------------------------------------------------- |
84 // CSifUi::SetCertificateInfoL() |
76 // CSifUi::SetCertificateInfoL() |
85 // --------------------------------------------------------------------------- |
77 // --------------------------------------------------------------------------- |
89 { |
81 { |
90 iPrivate->SetCertificateInfoL( aCertificates ); |
82 iPrivate->SetCertificateInfoL( aCertificates ); |
91 } |
83 } |
92 |
84 |
93 // --------------------------------------------------------------------------- |
85 // --------------------------------------------------------------------------- |
|
86 // CSifUi::ShowConfirmationL() |
|
87 // --------------------------------------------------------------------------- |
|
88 // |
|
89 EXPORT_C TBool CSifUi::ShowConfirmationL( const CSifUiAppInfo& aAppInfo ) |
|
90 { |
|
91 return iPrivate->ShowConfirmationL( aAppInfo ); |
|
92 } |
|
93 |
|
94 // --------------------------------------------------------------------------- |
|
95 // CSifUi::SelectedDrive() |
|
96 // --------------------------------------------------------------------------- |
|
97 // |
|
98 EXPORT_C TInt CSifUi::SelectedDrive( TInt& aDriveNumber ) |
|
99 { |
|
100 return iPrivate->SelectedDrive( aDriveNumber ); |
|
101 } |
|
102 |
|
103 // --------------------------------------------------------------------------- |
94 // CSifUi::ShowProgressL() |
104 // CSifUi::ShowProgressL() |
95 // --------------------------------------------------------------------------- |
105 // --------------------------------------------------------------------------- |
96 // |
106 // |
97 EXPORT_C void CSifUi::ShowProgressL( const CSifUiAppInfo& aAppInfo, |
107 EXPORT_C void CSifUi::ShowProgressL( const CSifUiAppInfo& aAppInfo, |
98 TInt aProgressBarFinalValue, TInstallingPhase aPhase ) |
108 TInt aProgressBarFinalValue, TInstallingPhase aPhase ) |
117 { |
127 { |
118 return iPrivate->IsCancelled(); |
128 return iPrivate->IsCancelled(); |
119 } |
129 } |
120 |
130 |
121 // --------------------------------------------------------------------------- |
131 // --------------------------------------------------------------------------- |
|
132 // CSifUi::ShowCompleteL() |
|
133 // --------------------------------------------------------------------------- |
|
134 // |
|
135 EXPORT_C void CSifUi::ShowCompleteL() |
|
136 { |
|
137 iPrivate->ShowCompleteL(); |
|
138 } |
|
139 |
|
140 // --------------------------------------------------------------------------- |
|
141 // CSifUi::ShowFailedL() |
|
142 // --------------------------------------------------------------------------- |
|
143 // |
|
144 EXPORT_C void CSifUi::ShowFailedL( const CSifUiErrorInfo& aErrorInfo ) |
|
145 { |
|
146 iPrivate->ShowFailedL( aErrorInfo ); |
|
147 } |
|
148 |
|
149 // --------------------------------------------------------------------------- |
122 // CSifUi::SetButtonVisible() |
150 // CSifUi::SetButtonVisible() |
123 // --------------------------------------------------------------------------- |
151 // --------------------------------------------------------------------------- |
124 // |
152 // |
125 EXPORT_C void CSifUi::SetButtonVisible( TOptionalButton aButton, TBool aIsVisible ) |
153 EXPORT_C void CSifUi::SetButtonVisible( TOptionalButton aButton, TBool aIsVisible ) |
126 { |
154 { |
127 iPrivate->SetButtonVisible( aButton, aIsVisible ); |
155 iPrivate->SetButtonVisible( aButton, aIsVisible ); |
128 } |
156 } |
129 |
157 |
130 // --------------------------------------------------------------------------- |
158 // --------------------------------------------------------------------------- |
131 // CSifUi::ShowCompleteL() |
159 // CSifUi::ShowGrantCapabilitiesL() |
132 // --------------------------------------------------------------------------- |
160 // --------------------------------------------------------------------------- |
133 // |
161 // |
134 EXPORT_C void CSifUi::ShowCompleteL() |
162 EXPORT_C TBool CSifUi::ShowGrantCapabilitiesL( const TCapabilitySet& aCapabilities ) |
135 { |
163 { |
136 iPrivate->ShowCompleteL(); |
164 return iPrivate->ShowGrantCapabilitiesL( aCapabilities ); |
137 } |
165 } |
|
166 |
|
167 // --------------------------------------------------------------------------- |
|
168 // CSifUi::ShowSingleSelectionL() |
|
169 // --------------------------------------------------------------------------- |
|
170 // |
|
171 EXPORT_C TBool CSifUi::ShowSingleSelectionL( const TDesC& aTitle, |
|
172 const MDesCArray& aSelectableItems, TInt& aSelectedIndex ) |
|
173 { |
|
174 return iPrivate->ShowSingleSelectionL( aTitle, aSelectableItems, aSelectedIndex ); |
|
175 } |
|
176 |
|
177 // --------------------------------------------------------------------------- |
|
178 // CSifUi::ShowMultiSelectionL() |
|
179 // --------------------------------------------------------------------------- |
|
180 // |
|
181 EXPORT_C TBool CSifUi::ShowMultiSelectionL( const TDesC& aTitle, |
|
182 const MDesCArray& aSelectableItems, RArray<TInt>& aSelectedIndexes ) |
|
183 { |
|
184 return iPrivate->ShowMultiSelectionL( aTitle, aSelectableItems, aSelectedIndexes ); |
|
185 } |
|
186 |
138 |
187 |
139 // --------------------------------------------------------------------------- |
188 // --------------------------------------------------------------------------- |
140 // CSifUi::ShowFailedL() |
189 // CSifUi::ShowFailedL() |
141 // --------------------------------------------------------------------------- |
190 // --------------------------------------------------------------------------- |
142 // |
191 // |
|
192 // TODO: This function is deprecated, remove it completely. |
143 EXPORT_C void CSifUi::ShowFailedL( TInt aErrorCode, const TDesC& aErrorMessage, |
193 EXPORT_C void CSifUi::ShowFailedL( TInt aErrorCode, const TDesC& aErrorMessage, |
144 const TDesC& aErrorDetails ) |
194 const TDesC& aErrorDetails ) |
145 { |
195 { |
146 iPrivate->ShowFailedL( aErrorCode, aErrorMessage, aErrorDetails ); |
196 CSifUiErrorInfo* errorInfo = CSifUiErrorInfo::NewLC( Usif::EUnknown, aErrorCode, |
|
197 0, aErrorMessage, aErrorDetails ); |
|
198 iPrivate->ShowFailedL( *errorInfo ); |
|
199 CleanupStack::PopAndDestroy( errorInfo ); |
147 } |
200 } |
148 |
201 |
149 // --------------------------------------------------------------------------- |
202 // --------------------------------------------------------------------------- |
150 // CSifUi::CSifUi() |
203 // CSifUi::CSifUi() |
151 // --------------------------------------------------------------------------- |
204 // --------------------------------------------------------------------------- |