1 /* |
|
2 * Copyright (c) 2007 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: Devicelock Background UI (window owning control) |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef LOCKAPPDEVICELOCKCONTAINER_H |
|
20 #define LOCKAPPDEVICELOCKCONTAINER_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <coecntrl.h> |
|
24 #include <eikimage.h> |
|
25 #include <eiklabel.h> |
|
26 #include <AknSkinnableClock.h> |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 class CAknsLayeredBackgroundControlContext; |
|
30 |
|
31 /** |
|
32 * CLockAppDevicelockContainer class contains UI components |
|
33 * for the devicelock control. |
|
34 * |
|
35 * @lib lockapp |
|
36 * @since 5.0 |
|
37 * @author Joona Petrell |
|
38 * @author Tamas Koteles |
|
39 * @see CLockAppDevicelockControl |
|
40 */ |
|
41 class CLockAppDevicelockContainer : public CCoeControl, MCoeControlObserver |
|
42 { |
|
43 public: |
|
44 |
|
45 /** |
|
46 * Two-phased constructor. |
|
47 */ |
|
48 static CLockAppDevicelockContainer* CLockAppDevicelockContainer::NewL( RWindowGroup& aWg ); |
|
49 |
|
50 /** |
|
51 * Destructor. |
|
52 */ |
|
53 ~CLockAppDevicelockContainer( ); |
|
54 |
|
55 public: |
|
56 |
|
57 /** |
|
58 * From CCoeControl, MopSupplyObject |
|
59 */ |
|
60 TTypeUid::Ptr MopSupplyObject( TTypeUid aId ); |
|
61 |
|
62 private: |
|
63 |
|
64 /** |
|
65 * 2nd stage construction |
|
66 */ |
|
67 void ConstructL( RWindowGroup& aWg ); |
|
68 |
|
69 TRect GetMainPaneRect( ); |
|
70 |
|
71 private: |
|
72 |
|
73 void SizeChanged( ); |
|
74 |
|
75 TInt CountComponentControls( ) const; |
|
76 |
|
77 CCoeControl* ComponentControl( TInt aIndex ) const; |
|
78 |
|
79 void Draw( const TRect& aRect ) const; |
|
80 |
|
81 void HandleControlEventL( CCoeControl* aControl, TCoeEvent aEventType ); |
|
82 |
|
83 private: |
|
84 |
|
85 CEikImage* iEikBitmap; |
|
86 CFbsBitmap* iBitmap; |
|
87 CFbsBitmap* iMask; |
|
88 |
|
89 // Owned background context. |
|
90 CAknsLayeredBackgroundControlContext* iBgContext; |
|
91 |
|
92 // Clock for landscape. |
|
93 CAknSkinnableClock* iClock; |
|
94 }; |
|
95 |
|
96 #endif |
|
97 |
|
98 // End of File |
|