|
1 /* |
|
2 * Copyright (c) 2002-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 USIM Own Numbers view. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CPSU2OWNNUMBERSVIEW_H |
|
20 #define CPSU2OWNNUMBERSVIEW_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <CPbk2ControlContainer.h> |
|
24 #include <MPbk2UIExtensionView.h> |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class CPbk2UIExtensionView; |
|
28 class CPsu2ViewManager; |
|
29 class CPsu2OwnNumberControl; |
|
30 |
|
31 // CLASS DECLARATION |
|
32 |
|
33 /** |
|
34 * Phonebook 2 USIM Own Numbers view. |
|
35 */ |
|
36 class CPsu2OwnNumbersView : public CBase, |
|
37 public MPbk2UIExtensionView |
|
38 { |
|
39 public: // Constructors and destructor |
|
40 |
|
41 /** |
|
42 * Creates a new instance of this class. |
|
43 * |
|
44 * @param aExtensionView The view from the extension framework. |
|
45 * @param aViewManager Rhe view manager of the USIM extension. |
|
46 * @return A new instance of this class. |
|
47 */ |
|
48 static CPsu2OwnNumbersView* NewL( |
|
49 CPbk2UIExtensionView& aExtensionView, |
|
50 CPsu2ViewManager& aViewManager ); |
|
51 |
|
52 /** |
|
53 * Destructor. |
|
54 */ |
|
55 ~CPsu2OwnNumbersView(); |
|
56 |
|
57 public: // Interface |
|
58 |
|
59 /** |
|
60 * Updates CBA buttons. |
|
61 */ |
|
62 void UpdateCbasL(); |
|
63 |
|
64 public: // From MPbk2UIExtensionView |
|
65 void HandleStatusPaneSizeChange(); |
|
66 CPbk2ViewState* ViewStateLC() const; |
|
67 TBool HandleCommandKeyL( |
|
68 const TKeyEvent& aKeyEvent, |
|
69 TEventCode aType ); |
|
70 void HandlePointerEventL( |
|
71 const TPointerEvent& aPointerEvent ); |
|
72 TInt GetViewSpecificMenuFilteringFlagsL() const; |
|
73 void DoActivateL( |
|
74 const TVwsViewId& aPrevViewId, |
|
75 TUid aCustomMessageId, |
|
76 const TDesC8& aCustomMessage ); |
|
77 void DoDeactivate(); |
|
78 void HandleCommandL( |
|
79 TInt aCommand ); |
|
80 void DynInitMenuPaneL( |
|
81 TInt aResourceId, |
|
82 CEikMenuPane* aMenuPane ); |
|
83 void HandleLongTapEventL( |
|
84 const TPoint& aPenEventLocation, |
|
85 const TPoint& aPenEventScreenLocation ); |
|
86 |
|
87 protected: // Implementation |
|
88 void CreateControlsL(); |
|
89 |
|
90 private: // From CPsu2NameListViewBase |
|
91 TInt NameListControlResourceId() const; |
|
92 |
|
93 private: // Implementation |
|
94 CPsu2OwnNumbersView( |
|
95 CPbk2UIExtensionView& aExtensionView, |
|
96 CPsu2ViewManager& aViewManager ); |
|
97 |
|
98 private: // Data |
|
99 /// Ref: The extension view instance |
|
100 CPbk2UIExtensionView& iExtensionView; |
|
101 /// Ref: The view manager of the extension |
|
102 CPsu2ViewManager& iViewManager; |
|
103 /// Ref: Control |
|
104 CPsu2OwnNumberControl* iControl; |
|
105 /// This view's control container type |
|
106 typedef CPbk2ControlContainer<CPsu2OwnNumberControl> CContainer; |
|
107 /// Own: This view's control container |
|
108 CContainer* iContainer; |
|
109 }; |
|
110 |
|
111 #endif // CPSU2OWNNUMBERSVIEW_H |
|
112 |
|
113 // End of File |