|
1 /* |
|
2 * Copyright (c) 2007-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: VoIP specific function extension for |
|
15 * Service Provider Settings API |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef C_SPSETTINGSVOIPUTILS_H |
|
21 #define C_SPSETTINGSVOIPUTILS_H |
|
22 |
|
23 #include <e32base.h> |
|
24 |
|
25 class CSPSettingsEngine; |
|
26 |
|
27 /** |
|
28 * VoIP specific extension of Service provider settings API class |
|
29 * |
|
30 * |
|
31 * @lib serviceprovidersettings.lib |
|
32 * @since S60 v3.2 |
|
33 */ |
|
34 NONSHARABLE_CLASS( CSPSettingsVoIPUtils ): public CBase |
|
35 { |
|
36 public: // Constructors and destructor |
|
37 |
|
38 /** |
|
39 * Two-phased constructor. |
|
40 */ |
|
41 IMPORT_C static CSPSettingsVoIPUtils* NewL(); |
|
42 |
|
43 /** |
|
44 * Two-phased constructor. |
|
45 */ |
|
46 IMPORT_C static CSPSettingsVoIPUtils* NewLC(); |
|
47 |
|
48 /** |
|
49 * Destructors. |
|
50 */ |
|
51 IMPORT_C virtual ~CSPSettingsVoIPUtils(); |
|
52 |
|
53 public: |
|
54 |
|
55 /** |
|
56 * Checks is there any VoIP profiles available in service table. |
|
57 * |
|
58 * @since S60 v3.2 |
|
59 * @return ETrue if there is at least one VoIP profile. |
|
60 */ |
|
61 IMPORT_C TBool VoIPProfilesExistL() const; |
|
62 |
|
63 /** |
|
64 * Checks is VoIP supported. |
|
65 * |
|
66 * @since S60 v3.2 |
|
67 * @return ETrue if Common Voip and Dynamic VoIP are ON |
|
68 . */ |
|
69 IMPORT_C TBool IsVoIPSupported() const; |
|
70 |
|
71 /** |
|
72 * Checks the preferred telephony |
|
73 * |
|
74 * @since S60 v3.2 |
|
75 * @return ETrue if Common Voip (Feature Manager), |
|
76 * Dynamic VoIP (Telephony settings) and |
|
77 * Preferred telephony (Rich call settings) are ON and |
|
78 * there is at least one SIP-VoIP profile stored |
|
79 */ |
|
80 IMPORT_C TBool IsPreferredTelephonyVoIP() const; |
|
81 |
|
82 /** |
|
83 * Get the preferred service id |
|
84 * |
|
85 * @since S60 v3.2 |
|
86 * @return KErrNone if preferred service found. |
|
87 */ |
|
88 IMPORT_C TInt GetPreferredService( TUint& aServiceId ) const; |
|
89 |
|
90 private: |
|
91 |
|
92 /** |
|
93 * C++ default constructor. |
|
94 */ |
|
95 CSPSettingsVoIPUtils(); |
|
96 |
|
97 /** |
|
98 * By default Symbian 2nd phase constructor is private. |
|
99 */ |
|
100 void ConstructL(); |
|
101 |
|
102 /** |
|
103 * Checks is there any VoIP profiles available in service table. |
|
104 */ |
|
105 TBool IsVoIPSupportedL() const; |
|
106 |
|
107 /** |
|
108 * Checks the preferred telephony. |
|
109 */ |
|
110 TBool IsPreferredTelephonyVoIPL() const; |
|
111 |
|
112 /** |
|
113 * Gets the preferred service id. |
|
114 */ |
|
115 void DoGetPreferredServiceL( TUint& aServiceId ) const; |
|
116 |
|
117 private: // data |
|
118 |
|
119 /** |
|
120 * Settings engine |
|
121 * Own. |
|
122 */ |
|
123 CSPSettingsEngine* iSettingsEngine; |
|
124 |
|
125 }; |
|
126 |
|
127 #endif // C_SPSETTINGSVOIPUTILS_H |