|
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 * Logs "Detail" view container control class implementation |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef __Logs_App_CLogsDetailControlContainer_H__ |
|
21 #define __Logs_App_CLogsDetailControlContainer_H__ |
|
22 |
|
23 // INCLUDES |
|
24 #include "CLogsBaseControlContainer.h" |
|
25 #include "MLogsObserver.h" |
|
26 |
|
27 // CONSTANTS |
|
28 |
|
29 // MACROS |
|
30 |
|
31 // DATA TYPES |
|
32 |
|
33 // FUNCTION PROTOTYPES |
|
34 |
|
35 // FORWARD DECLARATIONS |
|
36 class CLogsDetailView; |
|
37 class CAknSingleHeadingStyleListBox; |
|
38 class CAknNavigationDecorator; |
|
39 class CCoeControl; |
|
40 class CEikLabel; |
|
41 class CPhoneNumberFormat; |
|
42 class CLogsDetailAdapter; |
|
43 |
|
44 // CLASS DECLARATION |
|
45 |
|
46 /** |
|
47 * Logs "Detail" view container control class implementation. |
|
48 */ |
|
49 |
|
50 class CLogsDetailControlContainer |
|
51 : public CLogsBaseControlContainer |
|
52 { |
|
53 public: // construction |
|
54 /** |
|
55 * Standard creation function. |
|
56 * |
|
57 * @param aAppView this control's application view. |
|
58 * @param aDetailView owner of this class. |
|
59 * @param aRect client rect size |
|
60 * @return new object |
|
61 */ |
|
62 static CLogsDetailControlContainer* NewL |
|
63 ( CLogsDetailView* aView |
|
64 , const TRect& aRect |
|
65 ); |
|
66 |
|
67 /** |
|
68 * Destructor. Deletes child controls. |
|
69 */ |
|
70 ~CLogsDetailControlContainer(); |
|
71 |
|
72 private: |
|
73 /** |
|
74 * C++ constuctor |
|
75 * @param aView |
|
76 */ |
|
77 CLogsDetailControlContainer( CLogsDetailView* aView ); |
|
78 |
|
79 /** |
|
80 * Constructor, second phase. |
|
81 * |
|
82 * @param aAppView this control's application view. |
|
83 * @param aRect client rect size |
|
84 */ |
|
85 void ConstructL( const TRect& aRect ); |
|
86 |
|
87 /** |
|
88 * Initialize & update navigation pane |
|
89 */ |
|
90 void InitNaviPaneL(); |
|
91 |
|
92 /** |
|
93 * Handles focus change events. This will hand over focus changes to list so that |
|
94 * focus animations are displayed on the list. |
|
95 */ |
|
96 void FocusChanged(TDrawNow aDrawNow); |
|
97 |
|
98 public: |
|
99 /** |
|
100 * Returns the iListBox. |
|
101 * @return listbox instance related to control container |
|
102 */ |
|
103 CAknSingleHeadingStyleListBox* ListBox(); |
|
104 |
|
105 /** |
|
106 * Update contents |
|
107 */ |
|
108 void UpdateL(); |
|
109 |
|
110 protected: // from CCoeControl |
|
111 CCoeControl* ComponentControl( TInt aIndex ) const; |
|
112 |
|
113 void SizeChanged(); |
|
114 |
|
115 void GetHelpContext( TCoeHelpContext& aContext ) const; |
|
116 |
|
117 private: // data |
|
118 /// Own: ListBox control |
|
119 CAknSingleHeadingStyleListBox* iListBox; |
|
120 |
|
121 /// Ref: Pointer to the detail view. |
|
122 CLogsDetailView* iView; |
|
123 |
|
124 /// Own: fetching data text |
|
125 HBufC* iFetchingDataText; |
|
126 |
|
127 /// Own: Tab group with time & arrows |
|
128 CAknNavigationDecorator* iDecoratedTabGroup; |
|
129 |
|
130 /// Own: Title texts for various purposes |
|
131 HBufC* iPrivateNumber; |
|
132 HBufC* iUnknownNumber; |
|
133 HBufC* iPayphoneNumber; |
|
134 HBufC* iEmergencyCall; |
|
135 HBufC* iOperServNumber; |
|
136 HBufC* iGroupCall; |
|
137 CEikLabel* iTitleLabel; |
|
138 HBufC* iCsdNumber; |
|
139 |
|
140 /// Own: show csd flag |
|
141 // TBool iShowCsd; |
|
142 |
|
143 /// Own: object with groupping, clipping and A&H functionality |
|
144 CPhoneNumberFormat* iPhoneNumber; |
|
145 |
|
146 //Ref: listbox adapter |
|
147 CLogsDetailAdapter* iAdapter; |
|
148 }; |
|
149 |
|
150 #endif // __Logs_App_CLogsDetailControlContainer_H__ |
|
151 |
|
152 // End of File |
|
153 |