equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
76 */ |
76 */ |
77 EPackageTypeWidget |
77 EPackageTypeWidget |
78 |
78 |
79 }; |
79 }; |
80 |
80 |
81 /** |
|
82 * For UI during update process |
|
83 **/ |
|
84 |
|
85 enum TUIUpdateState |
|
86 { |
|
87 ENormal, |
|
88 EDownloading, |
|
89 EInstalling, |
|
90 EUpdated, |
|
91 EFailed, |
|
92 EDownloaded |
|
93 }; |
|
94 |
|
95 |
81 |
96 /** |
82 /** |
97 * @return TPackageType The type of this node content. |
83 * @return TPackageType The type of this node content. |
98 **/ |
84 **/ |
99 virtual TPackageType Type() const = 0; |
85 virtual TPackageType Type() const = 0; |
181 * @return TInt This describes how deep in the dependency hierarchy |
167 * @return TInt This describes how deep in the dependency hierarchy |
182 * this node is. Zero means that node is a root. |
168 * this node is. Zero means that node is a root. |
183 */ |
169 */ |
184 virtual TInt Depth() const = 0; |
170 virtual TInt Depth() const = 0; |
185 |
171 |
186 virtual void SetUiState( TUIUpdateState aState ) = 0; |
|
187 |
|
188 virtual TUIUpdateState UiState() const = 0; |
|
189 |
|
190 // for progress bar in UI |
|
191 virtual void SetProgress( TInt aProgress ) = 0; |
|
192 |
|
193 virtual TInt Progress() const = 0; |
|
194 |
|
195 virtual void SetTotal( TInt aTotal ) = 0; |
|
196 |
|
197 virtual TInt Total() const = 0; |
|
198 |
|
199 |
|
200 |
172 |
201 protected: |
173 protected: |
202 |
174 |
203 virtual ~MIAUpdateNode() { } |
175 virtual ~MIAUpdateNode() { } |
204 |
176 |