0
|
1 |
/*
|
|
2 |
* Copyright (c) 2004 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: This file contains definitions of GlobalAudioSettings.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
#ifndef GLOBALAUDIOSETTINGSIMPL_H
|
|
22 |
#define GLOBALAUDIOSETTINGSIMPL_H
|
|
23 |
|
|
24 |
#include <e32property.h>
|
|
25 |
#include <e32base.h>
|
|
26 |
#include <e32debug.h>
|
|
27 |
#include "GlobalAudioSettingsData.h"
|
|
28 |
#include <GlobalAudioSettings.h>
|
|
29 |
#include <MAudioClientsListObserver.h>
|
|
30 |
|
|
31 |
class MAudioSettingsObserver;
|
|
32 |
class CGlobalAudioSettings;
|
|
33 |
class CWarningTonesObserverAO;
|
|
34 |
class CMessagingTonesObserverAO;
|
|
35 |
class CSilentProfileObserverAO;
|
|
36 |
class CVibraObserverAO;
|
|
37 |
class CAudioClientsListManagerAO;
|
|
38 |
class CMessageToneObserverAO;
|
|
39 |
class CEmailToneObserverAO;
|
|
40 |
class CRingingTypeObserverAO;
|
|
41 |
class CVideoCallToneObserverAO;
|
|
42 |
class CRingingTone1ObserverAO;
|
|
43 |
class CRingingTone2ObserverAO;
|
|
44 |
class CKeypadToneObserverAO;
|
|
45 |
class CSilenceModeObserverAO;
|
|
46 |
/**
|
|
47 |
* Defines functions that client uses to set phone profile settings.
|
|
48 |
*
|
|
49 |
* @lib GlobalAudioSettings.lib
|
|
50 |
* @since Series 60 3.2
|
|
51 |
*/
|
|
52 |
NONSHARABLE_CLASS(CGlobalAudioSettingsImpl): public CBase
|
|
53 |
{
|
|
54 |
public:
|
|
55 |
/**
|
|
56 |
* function for creating the GlobalAudioSettingsImpl
|
|
57 |
*
|
|
58 |
*/
|
|
59 |
static CGlobalAudioSettingsImpl* NewL(
|
|
60 |
CGlobalAudioSettings& aGlobalAudioSettings,
|
|
61 |
MAudioSettingsObserver& aAudioSettingsObserver);
|
|
62 |
/**
|
|
63 |
* Destructor.
|
|
64 |
*
|
|
65 |
*/
|
|
66 |
~CGlobalAudioSettingsImpl();
|
|
67 |
/**
|
|
68 |
* Returns warning tones status.
|
|
69 |
*
|
|
70 |
* @since Series 60 3.2
|
|
71 |
* @return TBool aEnable. ETrue if warning tones are enabled else EFalse.
|
|
72 |
*/
|
|
73 |
TBool IsWarningTonesEnabled();
|
|
74 |
/**
|
|
75 |
* Returns message tones status.
|
|
76 |
*
|
|
77 |
* @since Series 60 3.2
|
|
78 |
* @return TBool aEnable. ETrue if message tones are enabled else EFalse.
|
|
79 |
*/
|
|
80 |
TBool IsMessageTonesEnabled();
|
|
81 |
/**
|
|
82 |
* Returns silent profile status.
|
|
83 |
*
|
|
84 |
* @since Series 60 3.2
|
|
85 |
* @return TBool aEnable. ETrue if current profile is silent profile else EFalse.
|
|
86 |
*/
|
|
87 |
TBool IsSilentProfileEnabled();
|
|
88 |
/**
|
|
89 |
* Returns vibra is enabled or not in the current profile status.
|
|
90 |
*
|
|
91 |
* @since Series 60 3.2
|
|
92 |
* @return TBool aEnable. ETrue if current profile vibra active else EFalse.
|
|
93 |
*/
|
|
94 |
TBool IsVibraEnabled();
|
|
95 |
/**
|
|
96 |
* Returns PublicSilence is enabled or not status.
|
|
97 |
*
|
|
98 |
* @since Series 60 3.2
|
|
99 |
* @return TBool aEnable. ETrue if PublicSilence active else EFalse.
|
|
100 |
*/
|
|
101 |
TBool IsPublicSilenceEnabled();
|
|
102 |
/**
|
|
103 |
* Returns Message Alert Tone
|
|
104 |
*
|
|
105 |
*
|
|
106 |
* The filename selected as the message alert tone in the
|
|
107 |
* current profile.
|
|
108 |
*
|
|
109 |
*
|
|
110 |
*
|
|
111 |
* @return TDesC& aMessageAlertToneName. z:\\resource\\No_Sound.wav is returned if sound is off,else selected filename
|
|
112 |
* is returned
|
|
113 |
*/
|
|
114 |
|
|
115 |
|
|
116 |
TDesC& MessageAlertTone();
|
|
117 |
/**
|
|
118 |
* Returns Email Alert Tone status
|
|
119 |
*
|
|
120 |
*
|
|
121 |
* The filename selected as the email alert tone in the
|
|
122 |
* current profile
|
|
123 |
*
|
|
124 |
*
|
|
125 |
*
|
|
126 |
* @return TBool aEnable. ETrue if current profile message tone is on else EFalse.
|
|
127 |
*/
|
|
128 |
TBool IsMessageAlertToneEnabled();
|
|
129 |
/**
|
|
130 |
* Returns Email Alert Tone
|
|
131 |
*
|
|
132 |
*
|
|
133 |
* The filename selected as the email alert tone in the
|
|
134 |
* current profile
|
|
135 |
*
|
|
136 |
*
|
|
137 |
*
|
|
138 |
* @return TDesC& aEmailAlertToneName. z:\\resource\\No_Sound.wav is returned if sound is off,else selected filename
|
|
139 |
* is returned
|
|
140 |
*/
|
|
141 |
TDesC& EmailAlertTone();
|
|
142 |
/**
|
|
143 |
* Returns Email Alert Tone status
|
|
144 |
*
|
|
145 |
*
|
|
146 |
* The filename selected as the email alert tone in the
|
|
147 |
* current profile
|
|
148 |
*
|
|
149 |
*
|
|
150 |
*
|
|
151 |
* @return TBool aEnable. ETrue if current profile email alert tone is on else EFalse.
|
|
152 |
*/
|
|
153 |
TBool IsEmailAlertToneEnabled();
|
|
154 |
/**
|
|
155 |
* Returns the RingingType
|
|
156 |
*
|
|
157 |
*
|
|
158 |
* Ringing type set in the current profile
|
|
159 |
*
|
|
160 |
*
|
|
161 |
*
|
|
162 |
*
|
|
163 |
* @return TGASRingingType aRingingType.
|
|
164 |
*/
|
|
165 |
CGlobalAudioSettings::TGASRingingType RingingType();
|
|
166 |
/**
|
|
167 |
* Returns Videocall Alert Tone
|
|
168 |
*
|
|
169 |
*
|
|
170 |
* The filename selected as the video call alert tone in the
|
|
171 |
* current profile
|
|
172 |
*
|
|
173 |
*
|
|
174 |
*
|
|
175 |
* @return TDesC& aVideoCallAlertToneName. z:\\resource\\No_Sound.wav is returned if sound is off,else selected filename
|
|
176 |
* is returned
|
|
177 |
*/
|
|
178 |
TDesC& VideoCallAlertTone();
|
|
179 |
/**
|
|
180 |
* Returns Videocall Alert Tone status
|
|
181 |
*
|
|
182 |
*
|
|
183 |
* The filename selected as the video call alert tone in the
|
|
184 |
* current profile
|
|
185 |
*
|
|
186 |
*
|
|
187 |
*
|
|
188 |
* @return TBool aEnable. ETrue if current profile videocall alert tone is on else EFalse.
|
|
189 |
*/
|
|
190 |
TBool IsVideoCallAlertToneEnabled();
|
|
191 |
/**
|
|
192 |
* Returns Ringing Alert Tone
|
|
193 |
*
|
|
194 |
*
|
|
195 |
* The filename selected as the ringing alert tone in the
|
|
196 |
* current profile
|
|
197 |
*
|
|
198 |
*
|
|
199 |
* @return TDesC& aRingingAlertTone1Name. z:\\resource\\No_Sound.wav is returned if sound is off,else selected filename
|
|
200 |
* is returned
|
|
201 |
*
|
|
202 |
*/
|
|
203 |
TDesC& RingingAlertTone1();
|
|
204 |
/**
|
|
205 |
* Returns Ringing Alert Tone1 status
|
|
206 |
*
|
|
207 |
*
|
|
208 |
* The filename selected as the ringing alert tone in the
|
|
209 |
* current profile
|
|
210 |
*
|
|
211 |
*
|
|
212 |
*
|
|
213 |
* @return TBool aEnable. ETrue if current profile ringing alert tone is on else EFalse.
|
|
214 |
*/
|
|
215 |
TBool IsRingingAlertTone1Enabled();
|
|
216 |
/**
|
|
217 |
* Returns Ringing Alert Tone 2
|
|
218 |
*
|
|
219 |
*
|
|
220 |
* The filename selected as the ringing alert tone in the
|
|
221 |
* current profile for the alternate line
|
|
222 |
*
|
|
223 |
*
|
|
224 |
*
|
|
225 |
* @return TDesC& aRingingAlertTone2Name. z:\\resource\\No_Sound.wav is returned if sound is off,else selected filename
|
|
226 |
* is returned
|
|
227 |
*/
|
|
228 |
TDesC& RingingAlertTone2();
|
|
229 |
/**
|
|
230 |
* Returns Ringing Alert Tone 2
|
|
231 |
*
|
|
232 |
*
|
|
233 |
* The filename selected as the ringing alert tone in the
|
|
234 |
* current profile for the alternate line
|
|
235 |
*
|
|
236 |
*
|
|
237 |
*
|
|
238 |
* @return TBool aEnable. ETrue if current profile ringing alert tone of alternate line is on else EFalse.
|
|
239 |
*/
|
|
240 |
TBool IsRingingAlertTone2Enabled();
|
|
241 |
/**
|
|
242 |
* Returns Ringing Keypad Volume
|
|
243 |
*
|
|
244 |
*
|
|
245 |
* The key tone volume selected in the
|
|
246 |
* current profile
|
|
247 |
*
|
|
248 |
*
|
|
249 |
*
|
|
250 |
* @return TGASKeypadVolume aKeypadToneVolume.returns EGASKeypadVolumeOff sound is off,else selected volume level
|
|
251 |
* is returned
|
|
252 |
*/
|
|
253 |
CGlobalAudioSettings::TGASKeypadVolume KeyPadToneVolume();
|
|
254 |
/**
|
|
255 |
* Returns silent mode status.
|
|
256 |
*
|
|
257 |
*
|
|
258 |
* @return TBool aEnable. ETrue if the silent mode is enabled else EFalse.
|
|
259 |
*/
|
|
260 |
TBool IsSilenceModeEnabled();
|
|
261 |
/**
|
|
262 |
* Registers audio clients list observer.
|
|
263 |
*
|
|
264 |
* When registered successfully, the observer will start receiveing
|
|
265 |
* callback defined in MAudioClientsListObserver when audio clients list
|
|
266 |
* changes.
|
|
267 |
*
|
|
268 |
* @since S60 3.2
|
|
269 |
* @param MAudioClientsListObserver& aObserver. A reference to class
|
|
270 |
* implementing MAudioClientsListObserver interface.
|
|
271 |
* @return TInt. KErrNone if successful. KErrAlreadyExists if the observer
|
|
272 |
* is already registered.
|
|
273 |
*/
|
|
274 |
TInt RegisterAudioClientsListObserver(
|
|
275 |
MAudioClientsListObserver& aObserver );
|
|
276 |
|
|
277 |
/**
|
|
278 |
* Unregisters audio clients list observer.
|
|
279 |
*
|
|
280 |
* When unregistered, the observer will no longer receive callback when
|
|
281 |
* audio clients list changes.
|
|
282 |
*
|
|
283 |
* @since S60 3.2
|
|
284 |
* @param MAudioClientsListObserver& aObserver. A reference to class
|
|
285 |
* implementing MAudioClientsListObserver interface.
|
|
286 |
* @return TInt. KErrNone if successful. KErrNotFound if the observer
|
|
287 |
* is not registered.
|
|
288 |
*/
|
|
289 |
TInt UnregisterAudioClientsListObserver(
|
|
290 |
MAudioClientsListObserver& aObserver);
|
|
291 |
|
|
292 |
/**
|
|
293 |
* Gets audio clients list.
|
|
294 |
*
|
|
295 |
* On return of this function, the parameter aList will contain active
|
|
296 |
* audio client application process ids.
|
|
297 |
*
|
|
298 |
* The parameter aList will be reset in the case
|
|
299 |
*
|
|
300 |
* @since S60 3.2
|
|
301 |
* @param TAudioClientListType aFilter. Type of client list.
|
|
302 |
* @param RArray<TProcessId>& aList. A reference to RArray.
|
|
303 |
* @return TInt. KErrNone if successful. KErrBadName if
|
|
304 |
* aType is not one of the TAudioClientListType enumeration.
|
|
305 |
* Otherwise a systemwide error code.
|
|
306 |
* In case of error, the array aList will be reset.
|
|
307 |
*/
|
|
308 |
TInt GetAudioClientsList(
|
|
309 |
CGlobalAudioSettings::TAudioClientListType aType,
|
|
310 |
RArray<TProcessId>& aList );
|
|
311 |
|
|
312 |
|
|
313 |
private:
|
|
314 |
CGlobalAudioSettingsImpl(CGlobalAudioSettings &aGlobalAudioSettings,
|
|
315 |
MAudioSettingsObserver& aAudioSettingsObserver);
|
|
316 |
/**
|
|
317 |
* Second Phase Costructor for GlobalAudioSettingsImpl Instance
|
|
318 |
* @since 3.2
|
|
319 |
* @param void
|
|
320 |
*/
|
|
321 |
void ConstructL();
|
|
322 |
|
|
323 |
/*This is added to define RProperties in NCP Environment*/
|
|
324 |
void CreatePropertiesL();
|
|
325 |
void DeleteProperties();
|
|
326 |
|
|
327 |
private:
|
|
328 |
TGlobalAudioSettings iGlobalAudioSettingsData;
|
|
329 |
CGlobalAudioSettings& iGlobalAudioSettings;
|
|
330 |
MAudioSettingsObserver& iAudioSettingsObserver;
|
|
331 |
CWarningTonesObserverAO* iWarningTonesObserverAO;
|
|
332 |
CMessagingTonesObserverAO* iMessagingTonesObserverAO;
|
|
333 |
CSilentProfileObserverAO* iSilentProfileObserverAO;
|
|
334 |
CVibraObserverAO* iVibraObserverAO;
|
|
335 |
// Object managing Audio Clients List implementation
|
|
336 |
CAudioClientsListManagerAO* iCAudioClientsListManagerAO;
|
|
337 |
// Object managing Paused Clients List implementation
|
|
338 |
CAudioClientsListManagerAO* iPausedClientsListManagerAO;
|
|
339 |
// List of Audio Clients List Observer objects
|
|
340 |
RPointerArray<MAudioClientsListObserver> iAudioClientsListObserverArray;
|
|
341 |
|
|
342 |
|
|
343 |
CMessageToneObserverAO* iMessageToneObserverAO;
|
|
344 |
CEmailToneObserverAO* iEmailToneObserverAO;
|
|
345 |
CRingingTypeObserverAO* iRingingTypeObserverAO;
|
|
346 |
CVideoCallToneObserverAO* iVideoCallObserverAO;
|
|
347 |
CRingingTone1ObserverAO* iRingingTone1ObserverAO;
|
|
348 |
CRingingTone2ObserverAO* iRingingTone2ObserverAO;
|
|
349 |
CKeypadToneObserverAO* iKeypadToneObserverAO;
|
|
350 |
CSilenceModeObserverAO* iSilenceModeObserverAO;
|
|
351 |
TBool iPropertiesCreated;
|
|
352 |
};
|
|
353 |
|
|
354 |
|
|
355 |
NONSHARABLE_CLASS(CWarningTonesObserverAO) : public CActive
|
|
356 |
{
|
|
357 |
public:
|
|
358 |
// Ist Phase constr and Destr
|
|
359 |
static CWarningTonesObserverAO* NewL(CGlobalAudioSettings &aGlobalAudioSettings,
|
|
360 |
MAudioSettingsObserver& aAudioSettingsObserver,
|
|
361 |
TGlobalAudioSettings& aGlobalAudioSettingsData);
|
|
362 |
~CWarningTonesObserverAO();
|
|
363 |
void Subscribe();
|
|
364 |
|
|
365 |
protected:
|
|
366 |
// From CActive
|
|
367 |
void RunL();
|
|
368 |
void DoCancel();
|
|
369 |
TInt RunError(TInt aError);
|
|
370 |
|
|
371 |
private:
|
|
372 |
// Constr and IInd phase constr
|
|
373 |
CWarningTonesObserverAO(CGlobalAudioSettings &aGlobalAudioSettings,
|
|
374 |
MAudioSettingsObserver& aAudioSettingsObserver,
|
|
375 |
TGlobalAudioSettings& aGlobalAudioSettingsData);
|
|
376 |
void ConstructL();
|
|
377 |
CGlobalAudioSettings& iGlobalAudioSettings;
|
|
378 |
MAudioSettingsObserver& iAudioSettingsObserver;
|
|
379 |
RProperty iWarningTonesProperty;
|
|
380 |
TGlobalAudioSettings& iGlobalAudioSettingsData;
|
|
381 |
};
|
|
382 |
|
|
383 |
NONSHARABLE_CLASS(CMessagingTonesObserverAO) : public CActive
|
|
384 |
{
|
|
385 |
public:
|
|
386 |
// Ist Phase constr and Destr
|
|
387 |
static CMessagingTonesObserverAO* NewL(CGlobalAudioSettings &aGlobalAudioSettings,
|
|
388 |
MAudioSettingsObserver& aAudioSettingsObserver,
|
|
389 |
TGlobalAudioSettings& aGlobalAudioSettingsData);
|
|
390 |
~CMessagingTonesObserverAO();
|
|
391 |
void Subscribe();
|
|
392 |
|
|
393 |
protected:
|
|
394 |
// From CActive
|
|
395 |
void RunL();
|
|
396 |
void DoCancel();
|
|
397 |
TInt RunError(TInt aError);
|
|
398 |
|
|
399 |
private:
|
|
400 |
// Constr and IInd phase constr
|
|
401 |
CMessagingTonesObserverAO(CGlobalAudioSettings &aGlobalAudioSettings,
|
|
402 |
MAudioSettingsObserver& aAudioSettingsObserver,
|
|
403 |
TGlobalAudioSettings& aGlobalAudioSettingsData);
|
|
404 |
void ConstructL();
|
|
405 |
CGlobalAudioSettings& iGlobalAudioSettings;
|
|
406 |
MAudioSettingsObserver& iAudioSettingsObserver;
|
|
407 |
RProperty iMessagingTonesProperty;
|
|
408 |
TGlobalAudioSettings& iGlobalAudioSettingsData;
|
|
409 |
};
|
|
410 |
|
|
411 |
NONSHARABLE_CLASS( CSilentProfileObserverAO) : public CActive
|
|
412 |
{
|
|
413 |
public:
|
|
414 |
// Ist Phase constr and Destr
|
|
415 |
static CSilentProfileObserverAO* NewL(CGlobalAudioSettings &aGlobalAudioSettings,
|
|
416 |
MAudioSettingsObserver& aAudioSettingsObserver,
|
|
417 |
TGlobalAudioSettings& aGlobalAudioSettingsData);
|
|
418 |
~CSilentProfileObserverAO();
|
|
419 |
void Subscribe();
|
|
420 |
|
|
421 |
protected:
|
|
422 |
// From CActive
|
|
423 |
void RunL();
|
|
424 |
void DoCancel();
|
|
425 |
TInt RunError(TInt aError);
|
|
426 |
|
|
427 |
private:
|
|
428 |
// Constr and IInd phase constr
|
|
429 |
CSilentProfileObserverAO(CGlobalAudioSettings &aGlobalAudioSettings,
|
|
430 |
MAudioSettingsObserver& aAudioSettingsObserver,
|
|
431 |
TGlobalAudioSettings& aGlobalAudioSettingsData);
|
|
432 |
void ConstructL();
|
|
433 |
CGlobalAudioSettings& iGlobalAudioSettings;
|
|
434 |
MAudioSettingsObserver& iAudioSettingsObserver;
|
|
435 |
RProperty iSilentProfileProperty;
|
|
436 |
TGlobalAudioSettings& iGlobalAudioSettingsData;
|
|
437 |
};
|
|
438 |
|
|
439 |
NONSHARABLE_CLASS(CVibraObserverAO) : public CActive
|
|
440 |
{
|
|
441 |
public:
|
|
442 |
// Ist Phase constr and Destr
|
|
443 |
static CVibraObserverAO* NewL(CGlobalAudioSettings &aGlobalAudioSettings,
|
|
444 |
MAudioSettingsObserver& aAudioSettingsObserver,
|
|
445 |
TGlobalAudioSettings& aGlobalAudioSettingsData);
|
|
446 |
~CVibraObserverAO();
|
|
447 |
void Subscribe();
|
|
448 |
|
|
449 |
protected:
|
|
450 |
// From CActive
|
|
451 |
void RunL();
|
|
452 |
void DoCancel();
|
|
453 |
TInt RunError(TInt aError);
|
|
454 |
|
|
455 |
private:
|
|
456 |
// Constr and IInd phase constr
|
|
457 |
CVibraObserverAO(CGlobalAudioSettings &aGlobalAudioSettings,
|
|
458 |
MAudioSettingsObserver& aAudioSettingsObserver,
|
|
459 |
TGlobalAudioSettings& aGlobalAudioSettingsData);
|
|
460 |
void ConstructL();
|
|
461 |
CGlobalAudioSettings& iGlobalAudioSettings;
|
|
462 |
MAudioSettingsObserver& iAudioSettingsObserver;
|
|
463 |
RProperty iVibraProperty;
|
|
464 |
TGlobalAudioSettings& iGlobalAudioSettingsData;
|
|
465 |
};
|
|
466 |
|
|
467 |
|
|
468 |
NONSHARABLE_CLASS(CRingingTypeObserverAO) : public CActive
|
|
469 |
{
|
|
470 |
public:
|
|
471 |
// Ist Phase constr and Destr
|
|
472 |
static CRingingTypeObserverAO* NewL(CGlobalAudioSettings &aGlobalAudioSettings,
|
|
473 |
MAudioSettingsObserver& aAudioSettingsObserver,
|
|
474 |
TGlobalAudioSettings& aGlobalAudioSettingsData);
|
|
475 |
~CRingingTypeObserverAO();
|
|
476 |
void Subscribe();
|
|
477 |
|
|
478 |
protected:
|
|
479 |
// From CActive
|
|
480 |
void RunL();
|
|
481 |
void DoCancel();
|
|
482 |
TInt RunError(TInt aError);
|
|
483 |
|
|
484 |
private:
|
|
485 |
// Constr and IInd phase constr
|
|
486 |
CRingingTypeObserverAO(CGlobalAudioSettings &aGlobalAudioSettings,
|
|
487 |
MAudioSettingsObserver& aAudioSettingsObserver,
|
|
488 |
TGlobalAudioSettings& aGlobalAudioSettingsData);
|
|
489 |
void ConstructL();
|
|
490 |
CGlobalAudioSettings& iGlobalAudioSettings;
|
|
491 |
MAudioSettingsObserver& iAudioSettingsObserver;
|
|
492 |
RProperty iRingingTypeProperty;
|
|
493 |
TGlobalAudioSettings& iGlobalAudioSettingsData;
|
|
494 |
};
|
|
495 |
|
|
496 |
NONSHARABLE_CLASS(CMessageToneObserverAO) : public CActive
|
|
497 |
{
|
|
498 |
public:
|
|
499 |
// Ist Phase constr and Destr
|
|
500 |
static CMessageToneObserverAO* NewL(CGlobalAudioSettings &aGlobalAudioSettings,
|
|
501 |
MAudioSettingsObserver& aAudioSettingsObserver,
|
|
502 |
TGlobalAudioSettings& aGlobalAudioSettingsData);
|
|
503 |
~CMessageToneObserverAO();
|
|
504 |
void Subscribe();
|
|
505 |
|
|
506 |
protected:
|
|
507 |
// From CActive
|
|
508 |
void RunL();
|
|
509 |
void DoCancel();
|
|
510 |
TInt RunError(TInt aError);
|
|
511 |
|
|
512 |
private:
|
|
513 |
// Constr and IInd phase constr
|
|
514 |
CMessageToneObserverAO(CGlobalAudioSettings &aGlobalAudioSettings,
|
|
515 |
MAudioSettingsObserver& aAudioSettingsObserver,
|
|
516 |
TGlobalAudioSettings& aGlobalAudioSettingsData);
|
|
517 |
void ConstructL();
|
|
518 |
CGlobalAudioSettings& iGlobalAudioSettings;
|
|
519 |
MAudioSettingsObserver& iAudioSettingsObserver;
|
|
520 |
RProperty iMessageToneNameProperty;
|
|
521 |
TGlobalAudioSettings& iGlobalAudioSettingsData;
|
|
522 |
};
|
|
523 |
|
|
524 |
NONSHARABLE_CLASS(CEmailToneObserverAO) : public CActive
|
|
525 |
{
|
|
526 |
public:
|
|
527 |
// Ist Phase constr and Destr
|
|
528 |
static CEmailToneObserverAO* NewL(CGlobalAudioSettings &aGlobalAudioSettings,
|
|
529 |
MAudioSettingsObserver& aAudioSettingsObserver,
|
|
530 |
TGlobalAudioSettings& aGlobalAudioSettingsData);
|
|
531 |
~CEmailToneObserverAO();
|
|
532 |
void Subscribe();
|
|
533 |
|
|
534 |
protected:
|
|
535 |
// From CActive
|
|
536 |
void RunL();
|
|
537 |
void DoCancel();
|
|
538 |
TInt RunError(TInt aError);
|
|
539 |
|
|
540 |
private:
|
|
541 |
// Constr and IInd phase constr
|
|
542 |
CEmailToneObserverAO(CGlobalAudioSettings &aGlobalAudioSettings,
|
|
543 |
MAudioSettingsObserver& aAudioSettingsObserver,
|
|
544 |
TGlobalAudioSettings& aGlobalAudioSettingsData);
|
|
545 |
void ConstructL();
|
|
546 |
CGlobalAudioSettings& iGlobalAudioSettings;
|
|
547 |
MAudioSettingsObserver& iAudioSettingsObserver;
|
|
548 |
RProperty iEmailToneNameProperty;
|
|
549 |
TGlobalAudioSettings& iGlobalAudioSettingsData;
|
|
550 |
};
|
|
551 |
|
|
552 |
NONSHARABLE_CLASS(CVideoCallToneObserverAO) : public CActive
|
|
553 |
{
|
|
554 |
public:
|
|
555 |
// Ist Phase constr and Destr
|
|
556 |
static CVideoCallToneObserverAO* NewL(CGlobalAudioSettings &aGlobalAudioSettings,
|
|
557 |
MAudioSettingsObserver& aAudioSettingsObserver,
|
|
558 |
TGlobalAudioSettings& aGlobalAudioSettingsData);
|
|
559 |
~CVideoCallToneObserverAO();
|
|
560 |
void Subscribe();
|
|
561 |
|
|
562 |
protected:
|
|
563 |
// From CActive
|
|
564 |
void RunL();
|
|
565 |
void DoCancel();
|
|
566 |
TInt RunError(TInt aError);
|
|
567 |
|
|
568 |
private:
|
|
569 |
// Constr and IInd phase constr
|
|
570 |
CVideoCallToneObserverAO(CGlobalAudioSettings &aGlobalAudioSettings,
|
|
571 |
MAudioSettingsObserver& aAudioSettingsObserver,
|
|
572 |
TGlobalAudioSettings& aGlobalAudioSettingsData);
|
|
573 |
void ConstructL();
|
|
574 |
CGlobalAudioSettings& iGlobalAudioSettings;
|
|
575 |
MAudioSettingsObserver& iAudioSettingsObserver;
|
|
576 |
RProperty iVideoCallToneNameProperty;
|
|
577 |
TGlobalAudioSettings& iGlobalAudioSettingsData;
|
|
578 |
};
|
|
579 |
|
|
580 |
NONSHARABLE_CLASS(CRingingTone1ObserverAO) : public CActive
|
|
581 |
{
|
|
582 |
public:
|
|
583 |
// Ist Phase constr and Destr
|
|
584 |
static CRingingTone1ObserverAO* NewL(CGlobalAudioSettings &aGlobalAudioSettings,
|
|
585 |
MAudioSettingsObserver& aAudioSettingsObserver,
|
|
586 |
TGlobalAudioSettings& aGlobalAudioSettingsData);
|
|
587 |
~CRingingTone1ObserverAO();
|
|
588 |
void Subscribe();
|
|
589 |
|
|
590 |
protected:
|
|
591 |
// From CActive
|
|
592 |
void RunL();
|
|
593 |
void DoCancel();
|
|
594 |
TInt RunError(TInt aError);
|
|
595 |
|
|
596 |
private:
|
|
597 |
// Constr and IInd phase constr
|
|
598 |
CRingingTone1ObserverAO(CGlobalAudioSettings &aGlobalAudioSettings,
|
|
599 |
MAudioSettingsObserver& aAudioSettingsObserver,
|
|
600 |
TGlobalAudioSettings& aGlobalAudioSettingsData);
|
|
601 |
void ConstructL();
|
|
602 |
CGlobalAudioSettings& iGlobalAudioSettings;
|
|
603 |
MAudioSettingsObserver& iAudioSettingsObserver;
|
|
604 |
RProperty iRingingTone1NameProperty;
|
|
605 |
TGlobalAudioSettings& iGlobalAudioSettingsData;
|
|
606 |
};
|
|
607 |
|
|
608 |
NONSHARABLE_CLASS(CRingingTone2ObserverAO) : public CActive
|
|
609 |
{
|
|
610 |
public:
|
|
611 |
// Ist Phase constr and Destr
|
|
612 |
static CRingingTone2ObserverAO* NewL(CGlobalAudioSettings &aGlobalAudioSettings,
|
|
613 |
MAudioSettingsObserver& aAudioSettingsObserver,
|
|
614 |
TGlobalAudioSettings& aGlobalAudioSettingsData);
|
|
615 |
~CRingingTone2ObserverAO();
|
|
616 |
void Subscribe();
|
|
617 |
|
|
618 |
protected:
|
|
619 |
// From CActive
|
|
620 |
void RunL();
|
|
621 |
void DoCancel();
|
|
622 |
TInt RunError(TInt aError);
|
|
623 |
|
|
624 |
private:
|
|
625 |
// Constr and IInd phase constr
|
|
626 |
CRingingTone2ObserverAO(CGlobalAudioSettings &aGlobalAudioSettings,
|
|
627 |
MAudioSettingsObserver& aAudioSettingsObserver,
|
|
628 |
TGlobalAudioSettings& aGlobalAudioSettingsData);
|
|
629 |
void ConstructL();
|
|
630 |
CGlobalAudioSettings& iGlobalAudioSettings;
|
|
631 |
MAudioSettingsObserver& iAudioSettingsObserver;
|
|
632 |
RProperty iRingingTone2NameProperty;
|
|
633 |
TGlobalAudioSettings& iGlobalAudioSettingsData;
|
|
634 |
};
|
|
635 |
|
|
636 |
NONSHARABLE_CLASS(CKeypadToneObserverAO) : public CActive
|
|
637 |
{
|
|
638 |
public:
|
|
639 |
// Ist Phase constr and Destr
|
|
640 |
static CKeypadToneObserverAO* NewL(CGlobalAudioSettings &aGlobalAudioSettings,
|
|
641 |
MAudioSettingsObserver& aAudioSettingsObserver,
|
|
642 |
TGlobalAudioSettings& aGlobalAudioSettingsData);
|
|
643 |
~CKeypadToneObserverAO();
|
|
644 |
void Subscribe();
|
|
645 |
|
|
646 |
protected:
|
|
647 |
// From CActive
|
|
648 |
void RunL();
|
|
649 |
void DoCancel();
|
|
650 |
TInt RunError(TInt aError);
|
|
651 |
|
|
652 |
private:
|
|
653 |
// Constr and IInd phase constr
|
|
654 |
CKeypadToneObserverAO(CGlobalAudioSettings &aGlobalAudioSettings,
|
|
655 |
MAudioSettingsObserver& aAudioSettingsObserver,
|
|
656 |
TGlobalAudioSettings& aGlobalAudioSettingsData);
|
|
657 |
void ConstructL();
|
|
658 |
CGlobalAudioSettings& iGlobalAudioSettings;
|
|
659 |
MAudioSettingsObserver& iAudioSettingsObserver;
|
|
660 |
RProperty iKeypadToneVolumeProperty;
|
|
661 |
TGlobalAudioSettings& iGlobalAudioSettingsData;
|
|
662 |
};
|
|
663 |
|
|
664 |
NONSHARABLE_CLASS(CSilenceModeObserverAO) : public CActive
|
|
665 |
{
|
|
666 |
public:
|
|
667 |
// Ist Phase constr and Destr
|
|
668 |
static CSilenceModeObserverAO* NewL(CGlobalAudioSettings &aGlobalAudioSettings,
|
|
669 |
MAudioSettingsObserver& aAudioSettingsObserver,
|
|
670 |
TGlobalAudioSettings& aGlobalAudioSettingsData);
|
|
671 |
~CSilenceModeObserverAO();
|
|
672 |
void Subscribe();
|
|
673 |
|
|
674 |
protected:
|
|
675 |
// From CActive
|
|
676 |
void RunL();
|
|
677 |
void DoCancel();
|
|
678 |
TInt RunError(TInt aError);
|
|
679 |
|
|
680 |
private:
|
|
681 |
// Constr and IInd phase constr
|
|
682 |
CSilenceModeObserverAO(CGlobalAudioSettings &aGlobalAudioSettings,
|
|
683 |
MAudioSettingsObserver& aAudioSettingsObserver,
|
|
684 |
TGlobalAudioSettings& aGlobalAudioSettingsData);
|
|
685 |
void ConstructL();
|
|
686 |
CGlobalAudioSettings& iGlobalAudioSettings;
|
|
687 |
MAudioSettingsObserver& iAudioSettingsObserver;
|
|
688 |
RProperty iSilenceModeProperty;
|
|
689 |
TGlobalAudioSettings& iGlobalAudioSettingsData;
|
|
690 |
};
|
|
691 |
#endif // GLOBALAUDIOSETTINGSIMPL_H
|
|
692 |
|
|
693 |
// End of file
|