1 /* |
|
2 * Copyright (c) 2009 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: VoIP-specific view customization implementation. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef C_CPHONEVIEWCUSTOMIZATIONVOIP_H |
|
19 #define C_CPHONEVIEWCUSTOMIZATIONVOIP_H |
|
20 |
|
21 #include <e32base.h> |
|
22 #include "mphoneviewcustomization.h" |
|
23 #include "phoneviewcommanddefinitions.h" |
|
24 |
|
25 class CConvergedServiceSelector; |
|
26 class MPhoneViewBlockingDialogObserver; |
|
27 class TPhoneCommandParam; |
|
28 class MPhoneCustomization; |
|
29 |
|
30 /** |
|
31 * Voip-specific view customization implementation. |
|
32 * |
|
33 * @lib PhoneUIVoIPExtension.dll |
|
34 * @since S60 v5.1 |
|
35 */ |
|
36 NONSHARABLE_CLASS( CPhoneViewCustomizationVoip ) |
|
37 : public CBase, public MPhoneViewCustomization |
|
38 { |
|
39 |
|
40 public: |
|
41 |
|
42 /** |
|
43 * Two-phased constructor. |
|
44 * @param aCustomization: Handle to phone customization |
|
45 */ |
|
46 static CPhoneViewCustomizationVoip* NewL( |
|
47 MPhoneCustomization& aCustomization ); |
|
48 |
|
49 /** |
|
50 * Two-phased constructor. |
|
51 * @param aCustomization: Handle to phone customization |
|
52 */ |
|
53 static CPhoneViewCustomizationVoip* NewLC( |
|
54 MPhoneCustomization& aCustomization ); |
|
55 |
|
56 /** |
|
57 * Destructor. |
|
58 */ |
|
59 virtual ~CPhoneViewCustomizationVoip(); |
|
60 |
|
61 // from base class MPhoneViewCustomization |
|
62 |
|
63 /** |
|
64 * From MPhoneViewCustomization. |
|
65 * Handles custom view commands. |
|
66 * |
|
67 * @param aBlockingObserver Blocking dialog observer. |
|
68 * @param aCmdId Command identifier. |
|
69 * @param aCommandParam Command parameter. |
|
70 * @return ETrue if command was handled. |
|
71 */ |
|
72 TBool HandleCommandL( |
|
73 MPhoneViewBlockingDialogObserver& aBlockingObserver, |
|
74 TPhoneViewCommandId aCmdId, |
|
75 TPhoneCommandParam* aCommandParam ); |
|
76 |
|
77 |
|
78 /** |
|
79 * From MPhoneViewCustomization. |
|
80 * Removes blocking dialogs. |
|
81 */ |
|
82 void RemoveDialog(); |
|
83 |
|
84 private: |
|
85 |
|
86 CPhoneViewCustomizationVoip( MPhoneCustomization& aCustomization ); |
|
87 |
|
88 void ConstructL(); |
|
89 |
|
90 /** |
|
91 * Makes service selection. |
|
92 * @param aBlockingObserver Blocking dialog observer. |
|
93 * @param aCommandParam A command parameter. |
|
94 * @return ETrue if service was selected. |
|
95 */ |
|
96 TBool SelectVoipService( |
|
97 MPhoneViewBlockingDialogObserver& aBlockingObserver, |
|
98 TPhoneCommandParam* aCommandParam ); |
|
99 |
|
100 private: // data |
|
101 |
|
102 /** |
|
103 * Service selector. |
|
104 * Own. |
|
105 */ |
|
106 CConvergedServiceSelector* iServiceSelector; |
|
107 |
|
108 /* |
|
109 * Handle to customization |
|
110 */ |
|
111 MPhoneCustomization& iPhoneCustomization; |
|
112 }; |
|
113 |
|
114 #endif // C_CPHONEVIEWCUSTOMIZATIONVOIP_H |
|