|
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: Application side control in the status pane signal area. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDE FILES |
|
20 #include "aknsignalindicatorcontainer.h" |
|
21 #include "AknSignal.h" |
|
22 |
|
23 #include <AknTasHook.h> |
|
24 // ============================ MEMBER FUNCTIONS =============================== |
|
25 |
|
26 // ----------------------------------------------------------------------------- |
|
27 // CAknSignalIndicatorContainer::CAknSignalIndicatorContainer |
|
28 // C++ default constructor can NOT contain any code, that |
|
29 // might leave. |
|
30 // ----------------------------------------------------------------------------- |
|
31 // |
|
32 CAknSignalIndicatorContainer::CAknSignalIndicatorContainer() |
|
33 { |
|
34 AKNTASHOOK_ADD( this, "CAknSignalIndicatorContainer" ); |
|
35 } |
|
36 |
|
37 // ----------------------------------------------------------------------------- |
|
38 // Destructor |
|
39 // ----------------------------------------------------------------------------- |
|
40 // |
|
41 CAknSignalIndicatorContainer::~CAknSignalIndicatorContainer() |
|
42 { |
|
43 AKNTASHOOK_REMOVE(); |
|
44 delete iPane; |
|
45 } |
|
46 |
|
47 // ----------------------------------------------------------------------------- |
|
48 // CAknSignalIndicatorContainer::ConstructFromResourceL |
|
49 // (other items were commented in a header). |
|
50 // ----------------------------------------------------------------------------- |
|
51 // |
|
52 void CAknSignalIndicatorContainer::ConstructFromResourceL(TResourceReader& aReader) |
|
53 { |
|
54 iPane = new (ELeave) CAknSignalPane(); |
|
55 iPane->SetContainerWindowL(*this); |
|
56 iPane->ConstructFromResourceL(aReader); |
|
57 iPane->ActivateL(); |
|
58 MakeVisible( ETrue ); |
|
59 } |
|
60 |
|
61 // ----------------------------------------------------------------------------- |
|
62 // CAknSignalIndicatorContainer::SizeChanged |
|
63 // (other items were commented in a header). |
|
64 // ----------------------------------------------------------------------------- |
|
65 // |
|
66 void CAknSignalIndicatorContainer::SizeChanged() |
|
67 { |
|
68 TPoint tl = Rect().iTl; |
|
69 if (iPane) |
|
70 iPane->SetExtent( tl, Size() ); |
|
71 } |
|
72 |
|
73 // ----------------------------------------------------------------------------- |
|
74 // CAknSignalIndicatorContainer::CountComponentControls |
|
75 // (other items were commented in a header). |
|
76 // ----------------------------------------------------------------------------- |
|
77 // |
|
78 TInt CAknSignalIndicatorContainer::CountComponentControls() const |
|
79 { |
|
80 if ( iPane ) |
|
81 { |
|
82 return 1; |
|
83 } |
|
84 return 0; |
|
85 } |
|
86 |
|
87 // ----------------------------------------------------------------------------- |
|
88 // CAknSignalIndicatorContainer::ComponentControl |
|
89 // (other items were commented in a header). |
|
90 // ----------------------------------------------------------------------------- |
|
91 // |
|
92 CCoeControl* CAknSignalIndicatorContainer::ComponentControl(TInt /*aIndex*/) const |
|
93 { |
|
94 return iPane; |
|
95 } |
|
96 |
|
97 |
|
98 // End of File |
|
99 |
|
100 |