|
1 /* |
|
2 * Copyright (c) 2006-2006 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: AppUi class of application |
|
15 * Since : 3.2 |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef __CCASPLASHSCREENCONTROL_H__ |
|
21 #define __CCASPLASHSCREENCONTROL_H__ |
|
22 |
|
23 #include <coecntrl.h> |
|
24 |
|
25 //class CNcdDialogNotifier; |
|
26 //class MNcdSkinData; |
|
27 |
|
28 class CCASplashScreenControl : public CCoeControl, |
|
29 public MCoeControlObserver |
|
30 { |
|
31 public: |
|
32 |
|
33 // Two-phase Constructors |
|
34 static CCASplashScreenControl* NewL( CCASplashScreen &aParent ); |
|
35 |
|
36 static CCASplashScreenControl* NewLC( CCASplashScreen &aParent ); |
|
37 |
|
38 // destructor |
|
39 ~CCASplashScreenControl(); |
|
40 |
|
41 public: // Functions from base classes |
|
42 |
|
43 /** |
|
44 * From CoeControl,SizeChanged. |
|
45 */ |
|
46 void SizeChanged(); |
|
47 |
|
48 /** |
|
49 * From CoeControl,CountComponentControls. |
|
50 */ |
|
51 TInt CountComponentControls() const; |
|
52 |
|
53 /** |
|
54 * From CCoeControl,ComponentControl. |
|
55 */ |
|
56 CCoeControl* ComponentControl( TInt aIndex ) const; |
|
57 |
|
58 /** |
|
59 * From CCoeControl,Draw. |
|
60 */ |
|
61 void Draw( const TRect& aRect ) const; |
|
62 |
|
63 /** |
|
64 * From CCoeControl,OfferKeyEventL. |
|
65 */ |
|
66 TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType ); |
|
67 |
|
68 /** |
|
69 * From MCoeControlObserver, HandleControlEventL. |
|
70 */ |
|
71 // event handling section |
|
72 // e.g Listbox events |
|
73 void HandleControlEventL( CCoeControl* aControl, TCoeEvent aEventType ); |
|
74 |
|
75 /** |
|
76 * ShowSplashScreen. Views the splash screen for a certain time. |
|
77 */ |
|
78 void ShowSplashScreen( CGulIcon *aSplashImage, |
|
79 /*MNcdSkinData* aSkinData,*/ |
|
80 TBool aDismissable ); |
|
81 |
|
82 void HandleResourceChange( TInt aType ); |
|
83 |
|
84 protected: |
|
85 |
|
86 // default constructor |
|
87 CCASplashScreenControl( CCASplashScreen &aParent ); |
|
88 |
|
89 //Constructor method |
|
90 void ConstructL(); |
|
91 |
|
92 TBool LandscapeOrientation() const; |
|
93 |
|
94 |
|
95 private: // dat |
|
96 |
|
97 CCASplashScreen &iParent; |
|
98 |
|
99 CGulIcon* iSplashImage; |
|
100 // MNcdSkinData* iSkinData; |
|
101 |
|
102 TBool iDismissable; |
|
103 |
|
104 TBool iSplashDismissed; |
|
105 |
|
106 }; |
|
107 |
|
108 #endif // __CCASPLASHSCREENCONTROL_H__ |