|
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: Base class for all dialer containers |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CDIALERCONTAINERBASE_H |
|
21 #define CDIALERCONTAINERBASE_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <coecntrl.h> |
|
25 #include <coemain.h> |
|
26 #include <bldvariant.hrh> |
|
27 |
|
28 #include "dialercommon.h" |
|
29 |
|
30 // CONSTANTS |
|
31 |
|
32 // FORWARD DECLARATIONS |
|
33 |
|
34 // CLASS DECLARATION |
|
35 class CAknButton; |
|
36 class TAknsItemID; |
|
37 class CGulIcon; |
|
38 |
|
39 /** |
|
40 * CDialerContainerBase container class |
|
41 * |
|
42 * @lib dialer.lib |
|
43 * @since S60 v5.0 |
|
44 */ |
|
45 NONSHARABLE_CLASS(CDialerContainerBase) : public CCoeControl, |
|
46 public MCoeControlObserver |
|
47 { |
|
48 public: // Constructors and destructor |
|
49 |
|
50 /** |
|
51 * Destructor. |
|
52 */ |
|
53 virtual ~CDialerContainerBase(); |
|
54 |
|
55 |
|
56 protected: |
|
57 |
|
58 // Constructor |
|
59 CDialerContainerBase( |
|
60 CCoeControl& aContainer ); |
|
61 |
|
62 /** |
|
63 * Base constructor. |
|
64 */ |
|
65 void BaseConstructL( ); |
|
66 |
|
67 /** |
|
68 * Set variety currently in use |
|
69 */ |
|
70 virtual void SetVariety( ) = 0; |
|
71 |
|
72 /** |
|
73 * Set layout |
|
74 */ |
|
75 virtual void SetLayout( ) = 0; |
|
76 |
|
77 |
|
78 protected: // Functions from CCoeControl |
|
79 |
|
80 /** |
|
81 * @see CCoeControl |
|
82 */ |
|
83 TTypeUid::Ptr MopSupplyObject( TTypeUid aId ); |
|
84 |
|
85 /** |
|
86 * @see CCoeControl |
|
87 */ |
|
88 virtual void SizeChanged(); |
|
89 |
|
90 /** |
|
91 * @see CCoeControl |
|
92 */ |
|
93 virtual void PositionChanged(); |
|
94 |
|
95 /** |
|
96 * @see CCoeControl |
|
97 */ |
|
98 void HandleResourceChange( TInt aType ); |
|
99 |
|
100 |
|
101 protected: // From MCoeControlObserver |
|
102 |
|
103 /** |
|
104 * @see MCoeControlObserver |
|
105 */ |
|
106 virtual void HandleControlEventL( CCoeControl* /*aControl*/, TCoeEvent /*aEventType*/ ) {}; |
|
107 |
|
108 protected: // Data |
|
109 |
|
110 // Variety set according to conditions of number etc of buttons. |
|
111 // See Variety method of each implementing class. |
|
112 TInt iVariety; |
|
113 |
|
114 // Parent container |
|
115 CCoeControl& iParentControl; |
|
116 |
|
117 |
|
118 }; |
|
119 |
|
120 #endif // CDIALERCONTAINERBASE_H |
|
121 |
|
122 // End of File |