63
|
1 |
/*
|
|
2 |
* Copyright (c) 2005-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: Phonebook 2 names list control.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#ifndef CPBK2NAMESLISTCONTROL_H
|
|
20 |
#define CPBK2NAMESLISTCONTROL_H
|
|
21 |
|
|
22 |
// INCLUDES
|
|
23 |
#include <coecntrl.h>
|
|
24 |
#include <MPbk2ContactUiControl.h>
|
|
25 |
#include <MPbk2ContactUiControl2.h>
|
|
26 |
#include <MVPbkContactViewObserver.h>
|
|
27 |
#include <MPbk2PointerEventInspector.h>
|
|
28 |
#include <MPbk2ContactUiControlUpdate.h>
|
|
29 |
#include <MPbk2UiControlCmdItem.h>
|
|
30 |
#include <mpbk2commanditemupdater.h>
|
|
31 |
#include <eiksbobs.h>
|
|
32 |
#include <aknsfld.h>
|
|
33 |
#include <eiklbo.h>
|
|
34 |
#include "CPbk2ControlContainer.h"
|
|
35 |
#include <aknmarkingmodeobserver.h>
|
|
36 |
|
|
37 |
// FORWARD DECLARATIONS
|
|
38 |
class MPbk2NamesListState;
|
|
39 |
class CPbk2ContactViewListBox;
|
|
40 |
class CPbk2NamesListStateFactory;
|
|
41 |
class CVPbkContactManager;
|
|
42 |
class MPbk2ContactNameFormatter;
|
|
43 |
class MPbk2ControlObserver;
|
|
44 |
class CPbk2StorePropertyArray;
|
|
45 |
class CAknSearchField;
|
|
46 |
class CPbk2ThumbnailLoader;
|
|
47 |
class MPbk2FilteredViewStack;
|
|
48 |
class CPbk2UiControlEventSender;
|
|
49 |
class CPbk2FilteredViewStackObserver;
|
|
50 |
class CPbk2ListBoxSelectionObserver;
|
|
51 |
class MPbk2ContactUiControlExtension;
|
|
52 |
class CPbk2PredictiveSearchFilter;
|
|
53 |
class CPbk2ContactViewDoubleListBox;
|
|
54 |
class MVPbkContactLinkArray;
|
|
55 |
class CPbk2NamesListControlBgTask;
|
|
56 |
class CPbk2ThumbnailManager;
|
|
57 |
class CPbk2HandleMassUpdate;
|
|
58 |
|
|
59 |
// CLASS DECLARATION
|
|
60 |
|
|
61 |
/**
|
|
62 |
* Phonebook 2 names list control.
|
|
63 |
* Responsible for delegating control calls to control state objects,
|
|
64 |
* selecting correct state object based on events etc. indications,
|
|
65 |
* and notifying observers about control events. In other words
|
|
66 |
* this class manages the names list control framework and performs
|
|
67 |
* the high level operations itself but delegates the detailed operations
|
|
68 |
* to names list state classes.
|
|
69 |
*/
|
|
70 |
class CPbk2NamesListControl : public CCoeControl,
|
|
71 |
public MPbk2ContactUiControl,
|
|
72 |
public MPbk2ContactUiControl2,
|
|
73 |
public MVPbkContactViewObserver,
|
|
74 |
public MPbk2PointerEventInspector,
|
|
75 |
public MCoeControlObserver,
|
|
76 |
public MPbk2ContactUiControlUpdate,
|
|
77 |
public MEikScrollBarObserver,
|
|
78 |
public MAdaptiveSearchTextObserver,
|
|
79 |
public MEikListBoxObserver,
|
|
80 |
public MPbk2ControlContainerForegroundEventObserver,
|
|
81 |
public MPbk2CommandItemUpdater,
|
|
82 |
public MVPbkContactViewObserverExtension,
|
|
83 |
public MAknMarkingModeObserver
|
|
84 |
{
|
|
85 |
public: // Enumerations
|
|
86 |
|
|
87 |
/// The names list states
|
|
88 |
enum TPbk2NamesListState
|
|
89 |
{
|
|
90 |
/// Startup state
|
|
91 |
EStateStartup = 0,
|
|
92 |
/// Not ready state
|
|
93 |
EStateNotReady,
|
|
94 |
EStateEmpty,
|
|
95 |
EStateReady,
|
|
96 |
EStateFiltered,
|
|
97 |
EStateHidden
|
|
98 |
};
|
|
99 |
|
|
100 |
/// The names list Background Events
|
|
101 |
enum TPbk2NamesListBgEvents
|
|
102 |
{
|
|
103 |
/// Startup state
|
|
104 |
EStateBgTaskEmpty = 0,
|
|
105 |
/// Mark & Unmark States
|
|
106 |
EStateSaveMarkedContacts,
|
|
107 |
EStateRestoreMarkedContacts
|
|
108 |
};
|
|
109 |
|
|
110 |
public: // Constructors and destructor
|
|
111 |
|
|
112 |
/**
|
|
113 |
* Creates a new instance of this class.
|
|
114 |
*
|
|
115 |
* @param aResourceId Id of the resource where the control
|
|
116 |
* is defined in.
|
|
117 |
* @param aContainer This control's container.
|
|
118 |
* @param aManager Virtual Phonebook contact manager.
|
|
119 |
* @param aView The contact view.
|
|
120 |
* @param aNameFormatter Name formatter.
|
|
121 |
* @param aStoreProperties An array containg properties
|
|
122 |
* for the stores that are shown.
|
|
123 |
* @return A new instance of this class.
|
|
124 |
*/
|
|
125 |
IMPORT_C static CPbk2NamesListControl* NewL(
|
|
126 |
TInt aResourceId,
|
|
127 |
const CCoeControl* aContainer,
|
|
128 |
CVPbkContactManager& aManager,
|
|
129 |
MVPbkContactViewBase& aView,
|
|
130 |
MPbk2ContactNameFormatter& aNameFormatter,
|
|
131 |
CPbk2StorePropertyArray& aStoreProperties );
|
|
132 |
|
|
133 |
/**
|
|
134 |
* Creates a new instance of this class.
|
|
135 |
*
|
|
136 |
* @param aResourceId Id of the resource where the control
|
|
137 |
* is defined in.
|
|
138 |
* @param aContainer This control's container.
|
|
139 |
* @param aManager Virtual Phonebook contact manager.
|
|
140 |
* @param aView The contact view.
|
|
141 |
* @param aNameFormatter Name formatter.
|
|
142 |
* @param aStoreProperties An array containg properties
|
|
143 |
* for the stores that are shown.
|
|
144 |
* @param aThumbManager Thumbnail manager for social phonebook //TODO
|
|
145 |
* @return A new instance of this class.
|
|
146 |
*/
|
|
147 |
IMPORT_C static CPbk2NamesListControl* NewL(
|
|
148 |
TInt aResourceId,
|
|
149 |
const CCoeControl* aContainer,
|
|
150 |
CVPbkContactManager& aManager,
|
|
151 |
MVPbkContactViewBase& aView,
|
|
152 |
MPbk2ContactNameFormatter& aNameFormatter,
|
|
153 |
CPbk2StorePropertyArray& aStoreProperties,
|
|
154 |
CPbk2ThumbnailManager* aThumbManager );
|
|
155 |
|
|
156 |
/**
|
|
157 |
* Constructor. Defined as public for custom control needs.
|
|
158 |
*
|
|
159 |
* @param aContainer This control's container.
|
|
160 |
* @param aManager Virtual Phonebook contact manager.
|
|
161 |
* @param aView The contact view.
|
|
162 |
* @param aNameFormatter Name formatter.
|
|
163 |
* @param aStoreProperties An array containg properties
|
|
164 |
* for the stores that are shown.
|
|
165 |
*/
|
|
166 |
IMPORT_C CPbk2NamesListControl(
|
|
167 |
const CCoeControl* aContainer,
|
|
168 |
CVPbkContactManager& aManager,
|
|
169 |
MVPbkContactViewBase& aView,
|
|
170 |
MPbk2ContactNameFormatter& aNameFormatter,
|
|
171 |
CPbk2StorePropertyArray& aStoreProperties );
|
|
172 |
|
|
173 |
/**
|
|
174 |
* Destructor.
|
|
175 |
*/
|
|
176 |
~CPbk2NamesListControl();
|
|
177 |
|
|
178 |
public: // Interface
|
|
179 |
|
|
180 |
/**
|
|
181 |
* Adds an observer to this control.
|
|
182 |
*
|
|
183 |
* @param aObserver The observer to add.
|
|
184 |
*/
|
|
185 |
IMPORT_C void AddObserverL(
|
|
186 |
MPbk2ControlObserver& aObserver );
|
|
187 |
|
|
188 |
/**
|
|
189 |
* Removes an observer from this control.
|
|
190 |
*
|
|
191 |
* @param aObserver The observer to remove.
|
|
192 |
*/
|
|
193 |
IMPORT_C void RemoveObserver(
|
|
194 |
MPbk2ControlObserver& aObserver );
|
|
195 |
|
|
196 |
/**
|
|
197 |
* Resets the control.
|
|
198 |
* -Clears marks
|
|
199 |
* -Resets the find box
|
|
200 |
* -Sets focus to the first contact
|
|
201 |
* -Removes the thumbnail
|
|
202 |
* -Updates the state of the control asynchronously according to
|
|
203 |
* the Virtual Phonebook view state
|
|
204 |
*/
|
|
205 |
IMPORT_C void Reset();
|
|
206 |
|
|
207 |
/**
|
|
208 |
* Sets the new view for the control. This will cause
|
|
209 |
* the control to reset its state according to state of aView
|
|
210 |
* asynchronously.
|
|
211 |
*/
|
|
212 |
IMPORT_C void SetViewL( MVPbkContactViewBase& aView );
|
|
213 |
|
|
214 |
/**
|
|
215 |
* Sets the new view for the control. This will cause
|
|
216 |
* the control to reset its state according to state of aView
|
|
217 |
* asynchronously. Control takes given view's ownership.
|
|
218 |
*/
|
|
219 |
IMPORT_C void GiveViewL( MVPbkContactViewBase* aView );
|
|
220 |
|
|
221 |
/**
|
|
222 |
* Use this method to block pointer events from this control.
|
|
223 |
*/
|
|
224 |
IMPORT_C void AllowPointerEvents( TBool aAllow );
|
|
225 |
|
|
226 |
/**
|
|
227 |
* Set the group contact link for curently open group.
|
|
228 |
*
|
|
229 |
* @param aGroupLinktoSet The input group contact link
|
|
230 |
*/
|
|
231 |
IMPORT_C void SetCurrentGroupLinkL( MVPbkContactLink* aGroupLinktoSet);
|
|
232 |
/**
|
|
233 |
* Fetches the current view
|
|
234 |
*
|
|
235 |
* @return Current view.
|
|
236 |
*/
|
|
237 |
MVPbkContactViewBase& View();
|
|
238 |
|
|
239 |
/**
|
|
240 |
* Foreground event handling function.
|
|
241 |
* @param aForeground - Indicates the required focus state of the control.
|
|
242 |
* Needs to be called when there is a Foreground Event trigerred for the View.
|
|
243 |
*/
|
|
244 |
|
|
245 |
IMPORT_C void HandleViewForegroundEventL( TBool aForeground );
|
|
246 |
|
|
247 |
/**
|
|
248 |
* For special case: Call this function to skip showing the
|
|
249 |
* blocking progress note when mass update is going on in nameslistview.
|
|
250 |
* When done, MassUpdateSkipProgressNote(EFalse) must always be
|
|
251 |
* called to reset back to original state (even if a Leave would happen in between)
|
|
252 |
* @param aSkip - ETrue if progress note should not be displayed. EFalse reset to normal.
|
|
253 |
*/
|
|
254 |
IMPORT_C void MassUpdateSkipProgressNote( TBool aSkip );
|
|
255 |
|
|
256 |
/**
|
|
257 |
* Set the iOpeningCca flag.
|
|
258 |
* @param aIsOpening - Indicates user is opening cca or not.
|
|
259 |
*/
|
|
260 |
IMPORT_C void SetOpeningCca( TBool aIsOpening );
|
|
261 |
|
|
262 |
public: // From CCoeControl
|
|
263 |
void MakeVisible(
|
|
264 |
TBool aVisible );
|
|
265 |
TKeyResponse OfferKeyEventL(
|
|
266 |
const TKeyEvent& aKeyEvent,
|
|
267 |
TEventCode aType );
|
|
268 |
void ConstructFromResourceL(
|
|
269 |
TResourceReader& aReader );
|
|
270 |
void ActivateL();
|
|
271 |
TInt CountComponentControls() const;
|
|
272 |
CCoeControl* ComponentControl(
|
|
273 |
TInt aIndex ) const;
|
|
274 |
void FocusChanged(
|
|
275 |
TDrawNow aDrawNow );
|
|
276 |
void SizeChanged();
|
|
277 |
void Draw(
|
|
278 |
const TRect& aRect ) const;
|
|
279 |
void HandleResourceChange(
|
|
280 |
TInt aType );
|
|
281 |
void HandlePointerEventL(
|
|
282 |
const TPointerEvent& aPointerEvent );
|
|
283 |
|
|
284 |
public: // From MPbk2ContactUiControl
|
|
285 |
MPbk2ContactUiControl* ParentControl() const;
|
|
286 |
TInt NumberOfContacts() const;
|
|
287 |
const MVPbkBaseContact* FocusedContactL() const;
|
|
288 |
const MVPbkViewContact* FocusedViewContactL() const;
|
|
289 |
const MVPbkStoreContact* FocusedStoreContact() const;
|
|
290 |
void SetFocusedContactL(
|
|
291 |
const MVPbkBaseContact& aContact );
|
|
292 |
void SetFocusedContactL(
|
|
293 |
const MVPbkContactBookmark& aContactBookmark );
|
|
294 |
void SetFocusedContactL(
|
|
295 |
const MVPbkContactLink& aContactLink );
|
|
296 |
TInt FocusedContactIndex() const;
|
|
297 |
void SetFocusedContactIndexL(
|
|
298 |
TInt aIndex );
|
|
299 |
TInt NumberOfContactFields() const;
|
|
300 |
const MVPbkBaseContactField* FocusedField() const;
|
|
301 |
TInt FocusedFieldIndex() const;
|
|
302 |
void SetFocusedFieldIndex(
|
|
303 |
TInt aIndex );
|
|
304 |
TBool ContactsMarked() const;
|
|
305 |
MVPbkContactLinkArray* SelectedContactsL() const;
|
|
306 |
MVPbkContactLinkArray* SelectedContactsOrFocusedContactL() const;
|
|
307 |
MPbk2ContactLinkIterator* SelectedContactsIteratorL() const;
|
|
308 |
CArrayPtr<MVPbkContactStore>* SelectedContactStoresL() const;
|
|
309 |
void ClearMarks();
|
|
310 |
void SetSelectedContactL(
|
|
311 |
TInt aIndex,
|
|
312 |
TBool aSelected );
|
|
313 |
void SetSelectedContactL(
|
|
314 |
const MVPbkContactBookmark& aContactBookmark,
|
|
315 |
TBool aSelected );
|
|
316 |
void SetSelectedContactL(
|
|
317 |
const MVPbkContactLink& aContactLink,
|
|
318 |
TBool aSelected );
|
|
319 |
|
|
320 |
void DynInitMenuPaneL(
|
|
321 |
TInt aResourceId,
|
|
322 |
CEikMenuPane* aMenuPane ) const;
|
|
323 |
void ProcessCommandL (
|
|
324 |
TInt aCommandId ) const;
|
|
325 |
void UpdateAfterCommandExecution();
|
|
326 |
TInt GetMenuFilteringFlagsL() const;
|
|
327 |
CPbk2ViewState* ControlStateL() const;
|
|
328 |
void RestoreControlStateL(
|
|
329 |
CPbk2ViewState* aState );
|
|
330 |
const TDesC& FindTextL();
|
|
331 |
void ResetFindL();
|
|
332 |
void ShowThumbnail();
|
|
333 |
void HideThumbnail();
|
|
334 |
void SetBlank(
|
|
335 |
TBool aBlank );
|
|
336 |
void RegisterCommand(
|
|
337 |
MPbk2Command* aCommand );
|
|
338 |
void SetTextL(
|
|
339 |
const TDesC& aText );
|
|
340 |
TAny* ContactUiControlExtension(TUid aExtensionUid );
|
|
341 |
|
|
342 |
public: // From MPbk2ContactUiControl2
|
|
343 |
TInt CommandItemCount() const;
|
|
344 |
const MPbk2UiControlCmdItem& CommandItemAt( TInt aIndex ) const;
|
|
345 |
const MPbk2UiControlCmdItem* FocusedCommandItem() const;
|
|
346 |
void DeleteCommandItemL( TInt aIndex );
|
|
347 |
void AddCommandItemL(MPbk2UiControlCmdItem* aCommand, TInt aIndex);
|
|
348 |
|
|
349 |
public: // From MVPbkContactViewObserver
|
|
350 |
void ContactViewReady(
|
|
351 |
MVPbkContactViewBase& aView );
|
|
352 |
void ContactViewUnavailable(
|
|
353 |
MVPbkContactViewBase& aView );
|
|
354 |
void ContactAddedToView(
|
|
355 |
MVPbkContactViewBase& aView,
|
|
356 |
TInt aIndex,
|
|
357 |
const MVPbkContactLink& aContactLink );
|
|
358 |
void ContactRemovedFromView(
|
|
359 |
MVPbkContactViewBase& aView,
|
|
360 |
TInt aIndex,
|
|
361 |
const MVPbkContactLink& aContactLink );
|
|
362 |
void ContactViewError(
|
|
363 |
MVPbkContactViewBase& aView,
|
|
364 |
TInt aError,
|
|
365 |
TBool aErrorNotified );
|
|
366 |
TAny* ContactViewObserverExtension(TUid aExtensionUid );
|
|
367 |
|
|
368 |
private: // From MVPbkContactViewUpdateObserver
|
|
369 |
void FilteredContactRemovedFromView( MVPbkContactViewBase& aView );
|
|
370 |
|
|
371 |
public: // From MPbk2PointerEventInspector
|
|
372 |
TBool FocusedItemPointed();
|
|
373 |
TBool FocusableItemPointed();
|
|
374 |
TBool SearchFieldPointed();
|
|
375 |
|
|
376 |
public: // From MCoeControlObserver
|
|
377 |
void HandleControlEventL(
|
|
378 |
CCoeControl* aControl,
|
|
379 |
TCoeEvent aEventType );
|
|
380 |
|
|
381 |
public: // From MPbk2ContactUiControlUpdate
|
|
382 |
void UpdateContact(
|
|
383 |
const MVPbkContactLink& aContactLink );
|
|
384 |
|
|
385 |
public: // From MPbk2CommandItemUpdater
|
|
386 |
void UpdateCommandItem( TInt aCommandId );
|
|
387 |
|
|
388 |
public: // from MEikScrollBarObserver
|
|
389 |
void HandleScrollEventL(CEikScrollBar* aScrollBar, TEikScrollEvent aEventType);
|
|
390 |
public: // from MEikListBoxObserver
|
|
391 |
void HandleListBoxEventL( CEikListBox* aListBox, TListBoxEvent aEventType );
|
|
392 |
public: // from MAdaptiveSearchTextObserver
|
|
393 |
|
|
394 |
void AdaptiveSearchTextChanged( CAknSearchField* aSearchField );
|
|
395 |
|
|
396 |
public: // From MAknMarkingModeObserver
|
|
397 |
|
|
398 |
/**
|
|
399 |
* This method is called when marking mode is activated or deactivated.
|
|
400 |
*
|
|
401 |
* @param aActivated @c ETrue if marking mode was activate, @c EFalse
|
|
402 |
* if marking mode was deactivated.
|
|
403 |
*/
|
|
404 |
void MarkingModeStatusChanged( TBool aActivated );
|
|
405 |
|
|
406 |
/**
|
|
407 |
* This method is called just before marking mode is closed. Client can
|
|
408 |
* either accept or decline closing.
|
|
409 |
*
|
|
410 |
* @return @c ETrue if marking mode should be closed, otherwise @c EFalse.
|
|
411 |
*/
|
|
412 |
TBool ExitMarkingMode() const;
|
|
413 |
|
|
414 |
private: // Implementation
|
|
415 |
|
|
416 |
/**
|
|
417 |
* Constructor.
|
|
418 |
*
|
|
419 |
* @param aContainer This control's container.
|
|
420 |
* @param aManager Virtual Phonebook contact manager.
|
|
421 |
* @param aView The contact view.
|
|
422 |
* @param aNameFormatter Name formatter.
|
|
423 |
* @param aStoreProperties An array containg properties
|
|
424 |
* for the stores that are shown.
|
|
425 |
* @param aThumbManager Thumbnail manager for social phonebook
|
|
426 |
*/
|
|
427 |
CPbk2NamesListControl(
|
|
428 |
const CCoeControl* aContainer,
|
|
429 |
CVPbkContactManager& aManager,
|
|
430 |
MVPbkContactViewBase& aView,
|
|
431 |
MPbk2ContactNameFormatter& aNameFormatter,
|
|
432 |
CPbk2StorePropertyArray& aStoreProperties,
|
|
433 |
CPbk2ThumbnailManager* aThumbManager );
|
|
434 |
|
|
435 |
void ConstructL(
|
|
436 |
TInt aResourceId);
|
|
437 |
void Redraw();
|
|
438 |
void DoHandleContactViewReadyL(
|
|
439 |
MVPbkContactViewBase& aView );
|
|
440 |
void DoHandleContactAdditionL(
|
|
441 |
TInt aIndex );
|
|
442 |
void DoHandleContactRemovalL(
|
|
443 |
TInt aIndex );
|
|
444 |
void SelectAndChangeReadyStateL();
|
|
445 |
void RelayoutControls();
|
|
446 |
void HandleTopViewChangedL(
|
|
447 |
MVPbkContactViewBase& aOldView );
|
|
448 |
void HandleTopViewUpdatedL();
|
|
449 |
void HandleBaseViewChangedL();
|
|
450 |
void HandleViewStackError(
|
|
451 |
TInt aError );
|
|
452 |
void HandleContactAddedToBaseView(
|
|
453 |
MVPbkContactViewBase& aBaseView,
|
|
454 |
TInt aIndex,
|
|
455 |
const MVPbkContactLink& aContactLink );
|
|
456 |
void DeleteIfAlreadyAdded(const MPbk2UiControlCmdItem* aCommand); // Fix ETKI-7NADZC
|
|
457 |
|
|
458 |
|
|
459 |
private: //from MPbk2ControlContainerForegroundEventObserver
|
|
460 |
void HandleForegroundEventL( TBool aForeground );
|
|
461 |
|
|
462 |
public: //For Storing/Restoring/Clearing the Marked Contacts
|
|
463 |
void StoreMarkedContactsAndResetViewL();
|
|
464 |
void RestoreMarkedContactsL();
|
|
465 |
void ClearMarkedContactsInfo();
|
|
466 |
|
|
467 |
public:
|
|
468 |
inline void SetMarkingMode( TBool aActived )
|
|
469 |
{
|
|
470 |
iMarkingModeOn = aActived;
|
|
471 |
}
|
|
472 |
|
|
473 |
inline TBool GetMarkingMode() const
|
|
474 |
{
|
|
475 |
return iMarkingModeOn;
|
|
476 |
}
|
|
477 |
|
|
478 |
private: // Data
|
|
479 |
/// Ref: Current state
|
|
480 |
MPbk2NamesListState* iCurrentState;
|
|
481 |
/// Own: State factory
|
|
482 |
CPbk2NamesListStateFactory* iStateFactory;
|
|
483 |
/// Own: List box
|
|
484 |
CPbk2ContactViewListBox* iListBox;
|
|
485 |
/// Own: Observers of this object
|
|
486 |
RPointerArray<MPbk2ControlObserver> iObservers;
|
|
487 |
/// Own: Previous view count
|
|
488 |
TInt iPrevCount;
|
|
489 |
/// Own: Find box
|
|
490 |
CAknSearchField* iFindBox;
|
|
491 |
/// Ref: Virtual Phonebook contact manager
|
|
492 |
CVPbkContactManager& iContactManager;
|
|
493 |
/// Ref: All contacts view
|
|
494 |
MVPbkContactViewBase* iBaseView;
|
|
495 |
/// Ref: The view that is used by the control
|
|
496 |
MPbk2FilteredViewStack* iViewStack;
|
|
497 |
/// Ref: Control container
|
|
498 |
const CCoeControl* iContainer;
|
|
499 |
/// Ref: Name formatter
|
|
500 |
MPbk2ContactNameFormatter& iNameFormatter;
|
|
501 |
/// Ref: The store's UI properties
|
|
502 |
CPbk2StorePropertyArray& iStoreProperties;
|
|
503 |
/// Own: Thumbnail loader
|
|
504 |
CPbk2ThumbnailLoader* iThumbnailLoader;
|
|
505 |
/// Ref: Command in Execution
|
|
506 |
MPbk2Command* iCommand;
|
|
507 |
/// Own: A control event sender
|
|
508 |
CPbk2UiControlEventSender* iEventSender;
|
|
509 |
/// Own: An observer for the filtered view stack
|
|
510 |
CPbk2FilteredViewStackObserver* iStackObserver;
|
|
511 |
/// Own: An observer for listbox selection mode changes
|
|
512 |
CPbk2ListBoxSelectionObserver* iListBoxSelectionObserver;
|
|
513 |
/// Own: Flag for owning the base view
|
|
514 |
TBool iOwnBaseView;
|
|
515 |
/// Own: UI extension
|
|
516 |
MPbk2ContactUiControlExtension* iUiExtension;
|
|
517 |
/// flag whether pointer moved or not for the thumbnail
|
|
518 |
TBool iDidMove;
|
|
519 |
/// Defines whether this control handles pointer events or not.
|
|
520 |
TBool iAllowPointerEvents;
|
|
521 |
/// Command items. Owns the array members.
|
|
522 |
RPointerArray<MPbk2UiControlCmdItem> iCommandItems;
|
|
523 |
/// Own: Search filter
|
|
524 |
CPbk2PredictiveSearchFilter* iSearchFilter;
|
|
525 |
//Flag to indicate Feature manager initilization
|
|
526 |
TBool iFeatureManagerInitilized;
|
|
527 |
|
|
528 |
// Own/Ref (see below): Thumbnail manager
|
|
529 |
CPbk2ThumbnailManager* iThumbManager;
|
|
530 |
// Wheter this control owns the thumbnail manager (iThumbManager) or not
|
|
531 |
TBool iOwnThumbManager;
|
|
532 |
//OWN: double list box "handle"
|
|
533 |
CPbk2ContactViewDoubleListBox* iDoubleListBox;
|
|
534 |
|
|
535 |
//Own: Selected/Marked Contacts
|
|
536 |
MVPbkContactLinkArray* iSelectedLinkArray;
|
|
537 |
|
|
538 |
//Own: Background Task Handler
|
|
539 |
CPbk2NamesListControlBgTask* iBgTask;
|
|
540 |
//Own: Mass update checker/handler
|
|
541 |
CPbk2HandleMassUpdate* iCheckMassUpdate;
|
|
542 |
//Own: Open Cca is in progress
|
|
543 |
TBool iOpeningCca;
|
|
544 |
// Flag to indicate marking mode is active
|
|
545 |
TBool iMarkingModeOn;
|
|
546 |
};
|
|
547 |
|
|
548 |
#endif // CPBK2NAMESLISTCONTROL_H
|
|
549 |
|
|
550 |
// End of File
|