|
1 /* |
|
2 * Copyright (c) 2008 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: Declares UI class for application |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_APPMNGR2APPUI_H |
|
20 #define C_APPMNGR2APPUI_H |
|
21 |
|
22 #include <aknViewAppUi.h> // CAknViewAppUi |
|
23 #include "appmngr2modelobserver.h" // MAppMngr2ModelObserver |
|
24 |
|
25 class CAppMngr2Model; |
|
26 class CIdle; |
|
27 |
|
28 |
|
29 class CAppMngr2AppUi : public CAknViewAppUi, public MAppMngr2ModelObserver |
|
30 { |
|
31 public: // constructor and destructor |
|
32 void ConstructL(); |
|
33 ~CAppMngr2AppUi(); |
|
34 |
|
35 public: // new functions |
|
36 CAppMngr2Model& Model() const; |
|
37 |
|
38 public: // from MAppMngr2ModelObserver |
|
39 void InstalledAppsChanged( TInt aMoreRefreshesExpected ); |
|
40 void InstallationFilesChanged( TInt aMoreRefreshesExpected ); |
|
41 TBool InstalledAppsDisplayed(); |
|
42 TBool InstallationFilesDisplayed(); |
|
43 |
|
44 private: // new functions |
|
45 static TInt DelayedConstructL( TAny* aSelf ); |
|
46 |
|
47 private: // from CAknViewAppUi |
|
48 void HandleCommandL( TInt aCommand ); |
|
49 |
|
50 private: // data |
|
51 CAppMngr2Model* iModel; |
|
52 TInt iResourceFileOffset; |
|
53 CIdle* iIdle; |
|
54 enum TDelayedConstructionStep |
|
55 { |
|
56 EFirstStep, |
|
57 ESecondStep, |
|
58 EAllDone |
|
59 } iDelayedConstructionStep; |
|
60 TBool iConstructInstallationFilesFirst; |
|
61 }; |
|
62 |
|
63 #endif // C_APPMNGR2APPUI_H |
|
64 |