|
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: A service dialing name list view |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CPSU2SERVICEDIALINGVIEW_H |
|
21 #define CPSU2SERVICEDIALINGVIEW_H |
|
22 |
|
23 // INCLUDES |
|
24 #include "CPsu2NameListViewBase.h" |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class CAknNavigationControlContainer; |
|
28 class CAknNavigationDecorator; |
|
29 |
|
30 // CLASS DECLARATION |
|
31 |
|
32 /** |
|
33 * A service dialing name list view |
|
34 */ |
|
35 class CPsu2ServiceDialingView : public CPsu2NameListViewBase |
|
36 { |
|
37 public: // Constructors and destructor |
|
38 |
|
39 /** |
|
40 * Two-phased constructor. |
|
41 * @param aExtensionView the view from the extension framework |
|
42 * @param aViewManager the view manager of the USIM extension |
|
43 * @return a new instance of this class |
|
44 */ |
|
45 static CPsu2ServiceDialingView* NewL(CPbk2UIExtensionView& aExtensionView, |
|
46 CPsu2ViewManager& aViewManager); |
|
47 |
|
48 /** |
|
49 * Destructor. |
|
50 */ |
|
51 ~CPsu2ServiceDialingView(); |
|
52 |
|
53 public: // Functions from base classes |
|
54 /** |
|
55 * From MPbk2UIExtensionView |
|
56 */ |
|
57 TBool HandleCommandKeyL(const TKeyEvent& aKeyEvent, |
|
58 TEventCode aType); |
|
59 |
|
60 /** |
|
61 * From CPsu2NameListViewBase |
|
62 */ |
|
63 void DoActivateL(const TVwsViewId& aPrevViewId, |
|
64 TUid aCustomMessageId, const TDesC8& aCustomMessage); |
|
65 |
|
66 /** |
|
67 * From CPsu2NameListViewBase |
|
68 */ |
|
69 void DoDeactivate(); |
|
70 public: // From MPbk2ControlObserver |
|
71 void HandleControlEventL( |
|
72 MPbk2ContactUiControl& aControl, |
|
73 const TPbk2ControlEvent& aEvent ); |
|
74 private: // Implementation |
|
75 CPsu2ServiceDialingView( |
|
76 CPbk2UIExtensionView& aExtensionView, |
|
77 CPsu2ViewManager& aViewManager ); |
|
78 |
|
79 private: // Functions from base classes |
|
80 |
|
81 /** |
|
82 * From CPsu2NameListViewBase |
|
83 */ |
|
84 void HandleCommandL(TInt aCommand); |
|
85 |
|
86 /** |
|
87 * From CPsu2NameListViewBase |
|
88 */ |
|
89 void DynInitMenuPaneL(TInt aResourceId, CEikMenuPane* aMenuPane); |
|
90 |
|
91 /** |
|
92 * From CPsu2NameListViewBase |
|
93 */ |
|
94 TInt NameListControlResourceId() const; |
|
95 |
|
96 /** |
|
97 * From CPsu2NameListViewBase |
|
98 */ |
|
99 void UpdateCbasL(); |
|
100 |
|
101 private: |
|
102 |
|
103 /** |
|
104 * Open service dialing info view |
|
105 * *@param aUiControl |
|
106 */ |
|
107 void OpenInfoViewCmdL(MPbk2ContactUiControl& aUiControl) const; |
|
108 |
|
109 private: // Data |
|
110 |
|
111 /// Ref: Navipane for setting activity text to it |
|
112 CAknNavigationControlContainer* iNaviPane; |
|
113 /// Own: Decorator for navipane, used to set the text to the navipane |
|
114 CAknNavigationDecorator* iNaviDecorator; |
|
115 |
|
116 }; |
|
117 |
|
118 #endif // CPSU2SERVICEDIALINGVIEW_H |
|
119 |
|
120 // End of File |