|
1 /* |
|
2 * Copyright (c) 2002 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: |
|
15 * |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef __CPbkStartupView_H__ |
|
21 #define __CPbkStartupView_H__ |
|
22 |
|
23 // INCLUDES |
|
24 #include "CPbkAppView.h" |
|
25 #include <MPbkAppUiExtension.h> |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class MPbkAppUiExtension; |
|
29 template<class ControlType> class CPbkControlContainer; |
|
30 |
|
31 // CLASS DECLARATION |
|
32 |
|
33 /** |
|
34 * Phonebook "Startup view" application view class. |
|
35 */ |
|
36 class CPbkStartupView : public CPbkAppView, |
|
37 public MPbkExtensionStartupObserver |
|
38 { |
|
39 public: // Construction and destruction |
|
40 static CPbkStartupView* NewL(MPbkAppUiExtension& aAppUiExtension); |
|
41 static CPbkStartupView* NewLC(MPbkAppUiExtension& aAppUiExtension); |
|
42 |
|
43 ~CPbkStartupView(); |
|
44 private: // From CAknView |
|
45 void DoActivateL(const TVwsViewId& aPrevViewId, |
|
46 TUid aCustomMessageId, |
|
47 const TDesC8& aCustomMessage); |
|
48 void DoDeactivate(); |
|
49 TUid Id() const; |
|
50 |
|
51 private: // From MPbkExtensionStartupObserver |
|
52 void HandleStartupComplete(); |
|
53 void HandleStartupFailedL(TInt aError); |
|
54 |
|
55 private: // Implementation |
|
56 CPbkStartupView(MPbkAppUiExtension& aAppUiExtension); |
|
57 void ConstructL(); |
|
58 |
|
59 static TInt ViewActivationTimeout(TAny* aThis); |
|
60 TInt ViewActivationTimeout(); |
|
61 private: // Data |
|
62 /// Ref: Application UI extension that will be started |
|
63 MPbkAppUiExtension& iAppUiExtension; |
|
64 typedef CPbkControlContainer<CCoeControl> CContainer; |
|
65 /// Own: this view's control container |
|
66 CContainer* iContainer; |
|
67 /// Own: timer for view activation |
|
68 CPeriodic* iTimer; |
|
69 }; |
|
70 |
|
71 #endif // __CPbkStartupView_H__ |
|
72 |
|
73 // End of File |