|
1 /* |
|
2 * Copyright (c) 2002 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: |
|
15 * Handles single place on screen. |
|
16 * One place may contain several popup windows from LAF |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 #ifndef BUBBLEPLACE_H |
|
22 #define BUBBLEPLACE_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <coecntrl.h> |
|
26 #include <bldvariant.hrh> |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 class CBubbleManager; |
|
30 class CBubbleImageManager; |
|
31 class CBubbleOutlook; |
|
32 |
|
33 |
|
34 // CLASS DECLARATION |
|
35 |
|
36 /** |
|
37 * CBubblePlace container class |
|
38 * |
|
39 * Handles single place on screen. |
|
40 * |
|
41 * @lib bubblemanager |
|
42 * @since 1.0 |
|
43 */ |
|
44 class CBubblePlace : public CCoeControl |
|
45 { |
|
46 public: |
|
47 |
|
48 // Place enums |
|
49 enum TPhoneBubblePlace |
|
50 { |
|
51 EBottom = 0, |
|
52 EBottomRightActive, |
|
53 EBottomRightHeld, |
|
54 EMiddleActive, |
|
55 EMiddleHeld, |
|
56 ETopLeft, |
|
57 ETopRight, |
|
58 EHide, |
|
59 E2InConf, |
|
60 E3InConf, |
|
61 E4InConf, |
|
62 E5InConf, |
|
63 EBottomText, // Call object text |
|
64 EBottomImage, // Call object image |
|
65 EVideo, |
|
66 EBottomCnap, |
|
67 EMiddleCnap, |
|
68 EVideoCnap, |
|
69 EBottomRightCnap, |
|
70 EBottomImageCnap, // 19 |
|
71 EBottomRightActiveTouch, |
|
72 EBottomRightActiveCnapTouch, |
|
73 EMiddleHeldTouch // 22 |
|
74 }; |
|
75 |
|
76 public: // Constructors and destructor |
|
77 |
|
78 /** |
|
79 * Symbian OS 2nd phase constructor. |
|
80 * @param aBubblePlace Current place |
|
81 * @param aBubbleManager Main container |
|
82 */ |
|
83 void ConstructL( const TPhoneBubblePlace& aBubblePlace, |
|
84 CBubbleManager& aBubbleManager ); |
|
85 |
|
86 /** |
|
87 * Destructor. |
|
88 */ |
|
89 ~CBubblePlace(); |
|
90 |
|
91 public: //member functions |
|
92 |
|
93 /** |
|
94 * Set current place in use. |
|
95 * @param aIsUsed ETrue if set in use. |
|
96 */ |
|
97 void SetIsUsed( const TBool& aIsUsed ); |
|
98 |
|
99 /** |
|
100 * Query is used? |
|
101 * @return is used. |
|
102 */ |
|
103 TBool IsUsed( ) const; |
|
104 |
|
105 /** |
|
106 * Get current place. |
|
107 * @return The place enumeration. |
|
108 */ |
|
109 TPhoneBubblePlace GetBubblePlace( ) const; |
|
110 |
|
111 /** |
|
112 * Get current outlook component. Abstraction! |
|
113 * @return BubbleOutlook, not always in use! |
|
114 */ |
|
115 CBubbleOutlook& GetBubbleOutlook( ) const; |
|
116 |
|
117 private: // Functions from base classes |
|
118 |
|
119 /** |
|
120 * From CCoeControl |
|
121 */ |
|
122 void SizeChanged(); |
|
123 |
|
124 /** |
|
125 * From CCoeControl |
|
126 */ |
|
127 void PositionChanged(); |
|
128 |
|
129 /** |
|
130 * From CCoeControl |
|
131 */ |
|
132 TInt CountComponentControls() const; |
|
133 |
|
134 /** |
|
135 * From CCoeControl |
|
136 */ |
|
137 CCoeControl* ComponentControl( TInt aIndex ) const; |
|
138 |
|
139 |
|
140 private: //data |
|
141 |
|
142 // Current place |
|
143 TPhoneBubblePlace iBubblePlace; |
|
144 // Current outlook |
|
145 CBubbleOutlook* iBubbleOutlook; |
|
146 // Is place in use? |
|
147 TBool iIsUsed; |
|
148 |
|
149 private: |
|
150 |
|
151 friend class CT_CBubblePlace; |
|
152 |
|
153 }; |
|
154 |
|
155 #endif // BUBBLEPLACE_H |
|
156 |
|
157 // End of File |