1 /* |
|
2 * Copyright (c) 2005 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 the header file for CPEAudioOutputPreferenceMonitor class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CPEAUDIOOUTPUTPREFERENCEMONITOR_H |
|
20 #define CPEAUDIOOUTPUTPREFERENCEMONITOR_H |
|
21 |
|
22 //INCLUDES |
|
23 #include "cpepubsubmonitor.h" |
|
24 |
|
25 // CONSTANTS |
|
26 // None. |
|
27 |
|
28 // MACROS |
|
29 // None. |
|
30 |
|
31 // DATA TYPES |
|
32 // None. |
|
33 |
|
34 // FUNCTION PROTOTYPES |
|
35 // None. |
|
36 |
|
37 // FORWARD DECLARATIONS |
|
38 class MPEPhoneModelInternal; |
|
39 |
|
40 // CLASS DECLARATION |
|
41 |
|
42 /** |
|
43 * CPEAudioOutputPreferenceMonitor |
|
44 * Not exposed externally |
|
45 * Monitors the audio output preference P&S key for changes |
|
46 * and retrieves current settings |
|
47 * |
|
48 * @since Series60_4.0 |
|
49 */ |
|
50 NONSHARABLE_CLASS( CPEAudioOutputPreferenceMonitor ) |
|
51 : public CPEPubSubMonitor |
|
52 { |
|
53 public: |
|
54 /** |
|
55 * Two-phased constructor. |
|
56 */ |
|
57 static CPEAudioOutputPreferenceMonitor* NewL( MPEPhoneModelInternal& aModel ); |
|
58 |
|
59 protected: |
|
60 /** |
|
61 * C++ default constructor. |
|
62 */ |
|
63 CPEAudioOutputPreferenceMonitor( MPEPhoneModelInternal& aModel ); |
|
64 |
|
65 /** |
|
66 * Second-phase constructor. |
|
67 */ |
|
68 void ConstructL(); |
|
69 |
|
70 protected: |
|
71 /** |
|
72 * Defines the actions that take place when a change indication |
|
73 * is received. Most common approach would be to save the data to internal |
|
74 * data store and send a message via phone model if neccessary. |
|
75 */ |
|
76 virtual void UpdateL(); |
|
77 |
|
78 }; |
|
79 |
|
80 #endif // CPEAUDIOOUTPUTPREFERENCEMONITOR_H |
|