10 * Nokia Corporation - initial contribution. |
10 * Nokia Corporation - initial contribution. |
11 * |
11 * |
12 * Contributors: |
12 * Contributors: |
13 * |
13 * |
14 * Description: MUSSettingsPlugin model class. |
14 * Description: MUSSettingsPlugin model class. |
15 * Version : %version: 11 % << Don't touch! Updated by Synergy at check-out. |
|
16 * |
15 * |
17 */ |
16 */ |
18 |
17 |
19 |
18 |
20 |
19 |
21 #ifndef C_MUSSETTINGSMODEL_H |
20 #ifndef C_MUSSETTINGSMODEL_H |
22 #define C_MUSSETTINGSMODEL_H |
21 #define C_MUSSETTINGSMODEL_H |
23 |
22 |
24 #include <e32base.h> |
23 #include "mussettings.h" |
25 #include <badesca.h> |
|
26 |
24 |
27 class MMusSIPProfileHandler; |
25 class MMusSIPProfileHandler; |
28 class CMusSIPProfileModel; |
26 class CMusSIPProfileModel; |
|
27 class MultimediaSharingSettings; |
|
28 |
29 class CAknMemorySelectionDialogMultiDrive; |
29 class CAknMemorySelectionDialogMultiDrive; |
30 |
30 |
31 |
31 |
32 /** |
32 /** |
33 * CMusSettingsModel is the model class of GS application. |
33 * CMusSettingsModel is the model class of GS application. |
34 * It provides functions to get and set setting values. |
34 * It provides functions to get and set setting values. |
|
35 * |
|
36 * @since S60 v3.2 |
35 */ |
37 */ |
36 class CMusSettingsModel : public CBase |
38 class CMusSettingsModel : public CBase |
37 { |
39 { |
38 public: |
40 public: |
39 |
41 |
48 * Destructor. |
50 * Destructor. |
49 */ |
51 */ |
50 ~CMusSettingsModel(); |
52 ~CMusSettingsModel(); |
51 |
53 |
52 /** |
54 /** |
|
55 * Returns operator variant mode. |
|
56 * @return 0: Standard (MusSettingsKeys::EStandard) |
|
57 * 1: Operator Specific (MusSettingsKeys::EOperatorSpecific) |
|
58 */ |
|
59 MusSettingsKeys::TOperatorVariant VSSettingsOperatorVariantL(); |
|
60 |
|
61 /** |
|
62 * Returns VS activation mode. |
|
63 * @return 0: Always (MusSettingsKeys::EAlwaysActive) |
|
64 * 1: Automatic (MusSettingsKeys::EActiveInHomeNetworks) |
|
65 * 2: Off (MusSettingsKeys::ENever) |
|
66 */ |
|
67 MusSettingsKeys::TActivation VSSettingsActivationL(); |
|
68 |
|
69 /** |
|
70 * Returns SIP profile mode. |
|
71 * @return 0: Use default SIP profile. |
|
72 * 1: Use user selected SIP profile. |
|
73 */ |
|
74 TInt VSSettingsProfileL(); |
|
75 |
|
76 /** |
|
77 * Returns video autorecord mode. |
|
78 * @return 0: on (MusSettingsKeys::EAutoRecordOn) |
|
79 * 1: off (MusSettingsKeys::EAutoRecordOff) |
|
80 */ |
|
81 MusSettingsKeys::TAutoRecord VSSettingsAutoRecordL(); |
|
82 |
|
83 /** |
53 * Returns recorded video saving mode. |
84 * Returns recorded video saving mode. |
54 * @return 2: phone memory |
85 * @return 2: phone memory |
55 * 4: memory card |
86 * 4: memory card |
56 */ |
87 */ |
57 TInt VSSettingsRecordedVideoSavingL(); |
88 TInt VSSettingsRecordedVideoSavingL(); |
58 |
89 |
59 /** |
90 /** |
60 * operator specific variant |
91 * Returns state of note (on/off). This setting is called "Capability |
61 * Sets activation item |
92 * auditory note" in standard variant and "Alerts" in operator specific |
62 * @param aActive (enabled/disabled). |
93 * variant. |
63 */ |
94 * @return 0: enabled (MusSettingsKeys::EAuditoryNotificationOn) |
64 void SetActivationItem( TBool aActive ); |
95 * 1: disabled (MusSettingsKeys::EAuditoryNotificationOff) |
65 |
96 */ |
66 /** |
97 MusSettingsKeys::TAuditoryNotification VSSettingsNoteL(); |
67 * operator specific variant |
98 |
68 * @return activation item |
99 /** |
69 */ |
100 * Sets packet data VS activation mode. |
70 TBool ActivationItem(); |
101 * @param aActivation Activation mode. |
71 |
102 */ |
|
103 void SetVSSettingsActivationL( |
|
104 const MusSettingsKeys::TActivation aActivation ); |
|
105 |
|
106 /** |
|
107 * Sets SIP profile mode. |
|
108 * @param aProfile Profile id. |
|
109 */ |
|
110 void SetVSSettingsProfileL( const TInt aProfile ); |
|
111 |
|
112 /** |
|
113 * Sets video autorecord mode. |
|
114 * @param aAutoRecord save mode of video. |
|
115 */ |
|
116 void SetVSSettingsAutoRecordL( |
|
117 const MusSettingsKeys::TAutoRecord aAutoRecord ); |
|
118 |
|
119 /** |
|
120 * Sets location of video saving. |
|
121 * @param aVideoLocation location of video |
|
122 */ |
|
123 void SetVSSettingsRecordedVideoSavingL( const TInt aVideoLocation ); |
|
124 |
|
125 /** |
|
126 * Sets mode of note ("Capability auditory note" in standard variant and |
|
127 * "Alerts" in operator specific variant). |
|
128 * @param aValue New state for note (enabled/disabled). |
|
129 */ |
|
130 void SetVSSettingsNoteL( |
|
131 const MusSettingsKeys::TAuditoryNotification aValue ); |
|
132 |
72 /** |
133 /** |
73 * Returns the array containing the profile names. |
134 * Returns the array containing the profile names. |
74 * NOTE! The ownership of the array is transferred to the caller. |
135 * NOTE! The ownership of the array is transferred to the caller. |
75 * @return Array consisting of the names of the SIP profiles. |
136 * @return Array consisting of the names of the SIP profiles. |
76 */ |
137 */ |
77 CDesCArray* ListOfProfileNamesL(); |
138 CDesCArray* ListOfProfileNamesL(); |
78 |
139 |
79 /** |
140 /** |
80 * Gets a SIP profile name by ID. |
141 * Gets a SIP profile name by ID. |
81 * Ownership is transferred to caller. |
142 * Ownership is transferred to caller. |
82 * @return SIP profile name. |
143 * @return SIP profile name. |
83 */ |
144 */ |
84 HBufC* ProfileNameL( TInt aId ); |
145 HBufC* ProfileNameL( TInt aId ); |
85 |
146 |
86 /** |
147 /** |
87 * Gets the index of the default SIP profile. |
148 * Gets the index of the default SIP profile. |
88 * @return KErrNotFound, if one does not exist, otherwise index of the |
149 * @return KErrNotFound, if one does not exist, otherwise index of the |
89 * default SIP profile. |
150 * default SIP profile. |
90 */ |
151 */ |
91 TInt DefaultProfileIndex(); |
152 TInt DefaultProfileIndex(); |
92 |
153 |
93 /** |
154 /** |
94 * Gets the id of the default SIP profile. |
155 * Gets the id of the default SIP profile. |
95 * @return KErrNotFound, if one does not exist, otherwise id of the |
156 * @return KErrNotFound, if one does not exist, otherwise id of the |
96 * default SIP profile. |
157 * default SIP profile. |
97 */ |
158 */ |
98 TUint32 DefaultProfileId(); |
159 TUint32 DefaultProfileId(); |
99 |
160 |
100 /** |
161 /** |
101 * Returns SIP profile index on locally cached array based on id. |
162 * Returns SIP profile index on locally cached array based on id. |
102 * @param aId Profile id |
163 * @param aId Profile id |
103 * @return Profile index or KErrNotFound if no matching profile is found. |
164 * @return Profile index or KErrNotFound if no matching profile is found. |
116 * Returns memory section dialog |
177 * Returns memory section dialog |
117 * @return Memory selction dialog reference |
178 * @return Memory selction dialog reference |
118 */ |
179 */ |
119 CAknMemorySelectionDialogMultiDrive* MemorySelectionDialogLC(); |
180 CAknMemorySelectionDialogMultiDrive* MemorySelectionDialogLC(); |
120 |
181 |
121 /** |
|
122 * Initialize SIP profile enabler data. |
|
123 */ |
|
124 void InitializeProfileEnablerL(); |
|
125 |
182 |
126 public: // constants |
183 public: // constants |
127 |
184 |
128 /** |
185 /** |
129 * Default SIP profile. |
186 * Default SIP profile. |
130 */ |
187 */ |
131 static const TInt KVsSipProfileDefault; |
188 static const TInt KVsSipProfileDefault; |
132 |
189 |
133 /** |
190 /** |
134 * SIP profile select. |
191 * SIP profile select. |
135 */ |
192 */ |
136 static const TInt KVsSipProfileSelect; |
193 static const TInt KVsSipProfileSelect; |
137 |
194 |
138 /** |
195 /** |
139 * Null selection SIP profile. |
196 * Null selection SIP profile. |
140 */ |
197 */ |
141 static const TInt KVsSipProfileSelectNone; |
198 static const TInt KVsSipProfileSelectNone; |
142 |
199 |
143 private: |
200 private: |
144 |
201 |
145 /** |
202 /** |
146 * C++ constructor. |
203 * C++ constructor. |
147 * @param aHandler Reference to SIP profile manipulator. |
204 * @param aHandler Reference to SIP profile manipulator. |
148 */ |
205 */ |
149 CMusSettingsModel( MMusSIPProfileHandler& aHandler ); |
206 CMusSettingsModel( MMusSIPProfileHandler& aHandler ); |
150 |
207 |
151 void ConstructL(); |
208 void ConstructL(); |
152 |
209 |
153 private: // data |
210 private: // data |
154 |
211 |
155 /** |
212 /** |
156 * SIP profile handler. |
213 * SIP profile handler. |
157 */ |
214 */ |
158 MMusSIPProfileHandler& iHandler; |
215 MMusSIPProfileHandler& iHandler; |
159 |
216 |
160 /** |
217 /** |
161 * Operator variant. If SIP profile disabled |
218 * Central repository keys of video sharing. |
162 */ |
219 * Own. |
163 TBool iProfileDisabled; |
220 */ |
|
221 MultimediaSharingSettings* iMSSettingsKeys; |
164 |
222 |
165 }; |
223 }; |
166 |
224 |
167 #endif // C_MUSSETTINGSMODEL_H |
225 #endif // C_MUSSETTINGSMODEL_H |