|
1 /* |
|
2 * Copyright (c) 2005-2008 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 profile handler |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CAUIVOIPEXTENSION_H |
|
21 #define CAUIVOIPEXTENSION_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include <badesca.h> |
|
26 #include <PhCltTypes.h> |
|
27 #include <spdefinitions.h> //RIdArray |
|
28 |
|
29 /** |
|
30 * Mapping for list items. |
|
31 * |
|
32 * @lib CaUiEngine.lib |
|
33 * @since 3.2 |
|
34 */ |
|
35 NONSHARABLE_CLASS( TListMappingItem ) |
|
36 { |
|
37 public: //Data |
|
38 // Index of the list item. |
|
39 TInt iIndex; |
|
40 // Call type ot the list item. |
|
41 TPhCltCallType iCallType; |
|
42 }; |
|
43 |
|
44 // DATATYPES |
|
45 typedef CArrayFixFlat <TListMappingItem> CListMappingArray; |
|
46 |
|
47 // CLASS DECLARATION |
|
48 /** |
|
49 * VoIP profile handler. |
|
50 * |
|
51 * |
|
52 * @lib CaUiEngine.lib |
|
53 * @since Series60 3.0 |
|
54 */ |
|
55 NONSHARABLE_CLASS( CCaUiVoIPExtension ) : public CBase |
|
56 { |
|
57 public: // Constructors and destructor |
|
58 |
|
59 /** |
|
60 * Two-phased constructor. |
|
61 */ |
|
62 static CCaUiVoIPExtension* NewL(); |
|
63 |
|
64 /** |
|
65 * Destructor. |
|
66 */ |
|
67 virtual ~CCaUiVoIPExtension(); |
|
68 |
|
69 |
|
70 public: // New functions |
|
71 |
|
72 /** |
|
73 * Check has user set VoIP profiles. |
|
74 * @return TBool, ETrue if profiles exists |
|
75 */ |
|
76 TBool IsVoIPProfilesL(); |
|
77 |
|
78 /** |
|
79 * @see CCaUiEngApi::GetVoIPServiceIdsL |
|
80 */ |
|
81 void GetVoIPServiceIdsL( RIdArray& aVoipServiceIds ) const; |
|
82 |
|
83 /** |
|
84 * @see CCaUiEngApi::GetVoipServiceNameL |
|
85 */ |
|
86 void GetVoipServiceNameL( TServiceId aServiceId, TDes& aServiceName ) const; |
|
87 |
|
88 private: |
|
89 |
|
90 /** |
|
91 * C++ default constructor. |
|
92 */ |
|
93 CCaUiVoIPExtension(); |
|
94 |
|
95 /** |
|
96 * By default Symbian 2nd phase constructor is private. |
|
97 */ |
|
98 void ConstructL(); |
|
99 |
|
100 private: // Data |
|
101 }; |
|
102 |
|
103 #endif // CAUIVOIPEXTENSION_H |
|
104 |
|
105 // End of File |