|
1 /* |
|
2 * Copyright (c) 2007-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: Black out control class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef C_SHWBLACKOUTCONTROL_H |
|
22 #define C_SHWBLACKOUTCONTROL_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <uiacceltk/huiControl.h> |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class CGlxHuiUtility; |
|
29 class CHuiAnchorLayout; |
|
30 class CShwSlideshowView; |
|
31 class CHuiTexture; |
|
32 class CHuiImageVisual; |
|
33 |
|
34 /** |
|
35 * CShwBlackoutControl |
|
36 * |
|
37 * Black out control |
|
38 * |
|
39 * @lib shwslideshowviewplugin.lib |
|
40 * @internal reviewed 07/06/2007 by Kimmo Hoikka |
|
41 */ |
|
42 NONSHARABLE_CLASS( CShwBlackoutControl ) : public CHuiControl |
|
43 { |
|
44 public: |
|
45 /** |
|
46 * Factory function constructor |
|
47 */ |
|
48 static CShwBlackoutControl* NewL( CHuiEnv& aEnv, CHuiDisplay& aDisplay); |
|
49 |
|
50 /** |
|
51 * Destructor |
|
52 */ |
|
53 ~CShwBlackoutControl(); |
|
54 |
|
55 public: |
|
56 /** |
|
57 * Activates the blackout control: |
|
58 */ |
|
59 void ActivateL(); |
|
60 |
|
61 /** |
|
62 * Deactivates the blackout control. |
|
63 */ |
|
64 void Deactivate(); |
|
65 |
|
66 private: |
|
67 CShwBlackoutControl(CHuiEnv& aEnv, CHuiDisplay& aDisplay); |
|
68 void ConstructL(); |
|
69 |
|
70 private: |
|
71 CHuiDisplay& iDisplay; // not owned |
|
72 CHuiTexture* iBlackoutTexture; // owned |
|
73 CHuiAnchorLayout* iBlackoutLayout; // not owned |
|
74 CHuiImageVisual* iBlackoutImageVisual; // not owned |
|
75 TBool iActivated; // owned |
|
76 }; |
|
77 |
|
78 |
|
79 #endif // C_SHWBLACKOUTCONTROL_H |