|
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 USIM UI Extension service dialing info view. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CPSU2SERVICEDIALINGINFOVIEW_H |
|
20 #define CPSU2SERVICEDIALINGINFOVIEW_H |
|
21 |
|
22 // INCLUDES |
|
23 #include "CPsu2InfoViewBase.h" |
|
24 |
|
25 // CLASS DECLARATION |
|
26 |
|
27 /** |
|
28 * Phonebook 2 USIM UI Extension service dialing info view. |
|
29 * Responsible for implementing service dialing info view. |
|
30 */ |
|
31 class CPsu2ServiceDialingInfoView : public CPsu2InfoViewBase |
|
32 { |
|
33 public: // Constructors and destructor |
|
34 |
|
35 /** |
|
36 * Creates a new instance of this class. |
|
37 * |
|
38 * @param aExtensionView The view from the extension framework. |
|
39 * @param aViewManager The view manager of USIM extension. |
|
40 * @return A new instance of this class. |
|
41 */ |
|
42 static CPsu2ServiceDialingInfoView* NewL( |
|
43 CPbk2UIExtensionView& aExtensionView, |
|
44 CPsu2ViewManager& aViewManager ); |
|
45 |
|
46 /** |
|
47 * Destructor. |
|
48 */ |
|
49 ~CPsu2ServiceDialingInfoView(); |
|
50 |
|
51 public: // From CPsu2InfoViewBase |
|
52 TBool HandleCommandKeyL( |
|
53 const TKeyEvent& aKeyEvent, |
|
54 TEventCode aType ); |
|
55 void DoActivateL( |
|
56 const TVwsViewId& aPrevViewId, |
|
57 TUid aCustomMessageId, |
|
58 const TDesC8& aCustomMessage ); |
|
59 void DoDeactivate(); |
|
60 public: // From MPbk2ControlObserver |
|
61 void HandleControlEventL( |
|
62 MPbk2ContactUiControl& aControl, |
|
63 const TPbk2ControlEvent& aEvent ); |
|
64 private: // From MPbk2UIExtensionView |
|
65 void HandleCommandL( |
|
66 TInt aCommand ); |
|
67 void DynInitMenuPaneL( |
|
68 TInt aResourceId, |
|
69 CEikMenuPane* aMenuPane ); |
|
70 |
|
71 private: // From CPsu2InfoViewBase |
|
72 TInt NameListControlResourceId() const; |
|
73 HBufC* NaviPaneLabelL() const; |
|
74 void UpdateCbasL(); |
|
75 |
|
76 private: // Implementation |
|
77 CPsu2ServiceDialingInfoView( |
|
78 CPbk2UIExtensionView& aExtensionView, |
|
79 CPsu2ViewManager& aViewManager ); |
|
80 void ConstructL(); |
|
81 TBool ContactHasPhoneNumberL( |
|
82 const MVPbkStoreContact* aContact ); |
|
83 }; |
|
84 |
|
85 #endif // CPSU2SERVICEDIALINGINFOVIEW_H |
|
86 |
|
87 // End of File |