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