equal
deleted
inserted
replaced
1 /* |
|
2 * Copyright (c) 2010 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: CCoeControl to show a logo at camera application startup |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CAMSTARTUPLOGO_H |
|
19 #define CAMSTARTUPLOGO_H |
|
20 |
|
21 #include <e32std.h> |
|
22 #include <coecntrl.h> |
|
23 |
|
24 #include "camstartuplogocontroller.h" |
|
25 |
|
26 class CFbsBitmap; |
|
27 class CPeriodic; |
|
28 |
|
29 |
|
30 // Class declaration |
|
31 /** |
|
32 * CCoeControl to show a logo at camera application startup |
|
33 */ |
|
34 class CCamStartupLogo : public CCoeControl, |
|
35 public MCamStartupLogoControllerObserver |
|
36 { |
|
37 public: |
|
38 static CCamStartupLogo* NewL(CCamStartupLogoController& aController, |
|
39 const TRect& aRect); |
|
40 virtual ~CCamStartupLogo(); |
|
41 |
|
42 private: |
|
43 CCamStartupLogo(CCamStartupLogoController& aController, |
|
44 const TRect& aRect); |
|
45 void ConstructL(); |
|
46 |
|
47 void ShowL(); |
|
48 void Hide(); |
|
49 |
|
50 void Draw(const TRect& aRect) const; |
|
51 |
|
52 void StartupLogoControllerStateChanged(TStartupLogoState aNewState); |
|
53 |
|
54 private: //data |
|
55 CFbsBitmap* iLogo; // own |
|
56 CFbsBitmap* iLogoMask; // own |
|
57 |
|
58 TRect iRect; |
|
59 |
|
60 TBool iWindowCreated; |
|
61 |
|
62 CCamStartupLogoController& iController; |
|
63 }; |
|
64 |
|
65 #endif // CAMSTARTUPLOGO_H |
|