|
1 /* |
|
2 * Copyright (c) 2005, 2007-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: Get count of VoIP profiles. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef MSGVOIPEXTENSION_H |
|
20 #define MSGVOIPEXTENSION_H |
|
21 |
|
22 #include <e32base.h> |
|
23 |
|
24 // FORWARD DECLARATIONS |
|
25 class CSPSettings; |
|
26 |
|
27 // CLASS DECLARATION |
|
28 |
|
29 /** |
|
30 * Internal class to get count of VoIP profiles and |
|
31 * the value of the settings Preferred Telephone. |
|
32 * Allows also to drop RCSE component from rom. |
|
33 * |
|
34 * @since Series 60 3.0 |
|
35 */ |
|
36 class CMsgVoIPExtension: |
|
37 public CBase |
|
38 { |
|
39 |
|
40 public: |
|
41 /** |
|
42 * Two-phased constructor. |
|
43 */ |
|
44 IMPORT_C static CMsgVoIPExtension* NewL(); |
|
45 |
|
46 /** |
|
47 * Destructor. |
|
48 */ |
|
49 virtual ~CMsgVoIPExtension(); |
|
50 |
|
51 /** |
|
52 * Check if any VoIP profiles saved in the phone. |
|
53 * @since Series60 3.0 |
|
54 * @return ETrue if VoIP profiles exist, else EFalse. |
|
55 */ |
|
56 IMPORT_C TBool VoIPProfilesExistL() const; |
|
57 |
|
58 /** |
|
59 * Check Preferred Telephony key value VoIP |
|
60 * @since Series60 3.0 |
|
61 * @return ETrue if Send key creates VoIP call, else EFalse. |
|
62 */ |
|
63 IMPORT_C TBool IsPreferredTelephonyVoIP() const; |
|
64 |
|
65 /** |
|
66 * Check if Dynamic VoIP setting is on |
|
67 * @since Series60 3.2 |
|
68 * @return ETrue if VoIP is supported |
|
69 */ |
|
70 IMPORT_C TBool IsVoIPSupported() const; |
|
71 |
|
72 private: |
|
73 /** |
|
74 * C++ default constructor. |
|
75 */ |
|
76 CMsgVoIPExtension(); |
|
77 |
|
78 /** |
|
79 * By default Symbian 2nd phase constructor is private. |
|
80 */ |
|
81 void ConstructL(); |
|
82 |
|
83 private: |
|
84 |
|
85 /** |
|
86 * A Service provider settings |
|
87 * Own. |
|
88 */ |
|
89 CSPSettings* iSPSettings; |
|
90 /** |
|
91 * A VOIP support |
|
92 * This member has been added to check if VOIP is enabled via FeatureManager, instead of using #define __VOIP |
|
93 * Own. |
|
94 */ |
|
95 TBool iVoIPFeatureSupport; |
|
96 }; |
|
97 #endif // MsgVoIPEXTENSION_H |
|
98 |
|
99 // End of File |