|
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 no navigation navigator. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CPBK2VOIDNAVIGATION_H |
|
20 #define CPBK2VOIDNAVIGATION_H |
|
21 |
|
22 // INCLUDES |
|
23 #include "CPbk2NavigationBase.h" |
|
24 |
|
25 // FORWARD DECLARATIONS |
|
26 class MVPbkContactLink; |
|
27 class MVPbkContactViewBase; |
|
28 class MPbk2NavigationObserver; |
|
29 class MVPbkContactStore; |
|
30 |
|
31 // CLASS DECLARATION |
|
32 |
|
33 /** |
|
34 * Phonebook 2 contact no navigation navigator. |
|
35 * Responsible for implementing the void navigation strategy. |
|
36 */ |
|
37 class CPbk2VoidNavigation : public CPbk2NavigationBase |
|
38 { |
|
39 public: // Constructors and destructor |
|
40 |
|
41 /** |
|
42 * Creates a new instance of this class. |
|
43 * |
|
44 * @param aViewId View id. |
|
45 * @param aObserver Observer. |
|
46 * @param aNavigationLoader Navigation interface for |
|
47 * loading contacts. |
|
48 * @param aStoreList List of stores this |
|
49 * navigator observes. |
|
50 * @return A new instance of this class. |
|
51 */ |
|
52 static CPbk2VoidNavigation* NewL( |
|
53 TUid aViewId, |
|
54 MPbk2NavigationObserver& aObserver, |
|
55 MPbk2ContactNavigationLoader& aNavigationLoader, |
|
56 TArray<MVPbkContactStore*> aStoreList ); |
|
57 |
|
58 /** |
|
59 * Destructor. |
|
60 */ |
|
61 ~CPbk2VoidNavigation(); |
|
62 |
|
63 public: // From MPbk2ContactNavigation |
|
64 void UpdateNaviIndicatorsL( |
|
65 const MVPbkContactLink& aContactLink ) const; |
|
66 TBool HandleCommandKeyL( |
|
67 const TKeyEvent& aKeyEvent, |
|
68 TEventCode aType ); |
|
69 |
|
70 private: // Implementation |
|
71 CPbk2VoidNavigation( |
|
72 TUid aViewId, |
|
73 MPbk2NavigationObserver& aObserver, |
|
74 MPbk2ContactNavigationLoader& aNavigationLoader, |
|
75 TArray<MVPbkContactStore*> aStoreList ); |
|
76 void ConstructL(); |
|
77 void SetTabTextToEmptyL( |
|
78 const TUid aViewId ) const; |
|
79 |
|
80 private: // Data |
|
81 /// Own: View id |
|
82 TUid iViewId; |
|
83 /// Own: Scroll view |
|
84 MVPbkContactViewBase* iScrollView; |
|
85 }; |
|
86 |
|
87 #endif // CPBK2VOIDNAVIGATION_H |
|
88 |
|
89 // End of File |