|
1 /* |
|
2 * Copyright (c) 2005-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: Observer class derived from MMdaAudioToneObserver. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef __AKNEIKAUDIOTONEOBSERVER_H__ |
|
19 #define __AKNEIKAUDIOTONEOBSERVER_H__ |
|
20 |
|
21 // INCLUDES |
|
22 #include <mdaaudiotoneplayer.h> // base class |
|
23 |
|
24 // FORWARD DECLARATIONS |
|
25 class CEikSoundInfo; |
|
26 |
|
27 // CLASS DECLARATION |
|
28 /** |
|
29 * Simple observer class for CAknToneSoundInfo and CAknSequenceSoundInfo. |
|
30 * |
|
31 * @lib eiksrvui.lib |
|
32 * @since Series 60 3.0 |
|
33 */ |
|
34 NONSHARABLE_CLASS(CAknEikAudioToneObserver) : public CBase, public MMdaAudioToneObserver |
|
35 { |
|
36 public: // Constructors and destructors |
|
37 /** |
|
38 * Two-phased constructor. |
|
39 * @param aId The id of the observer. |
|
40 * @param aKeySoundServer Reference to the key sound server instance. |
|
41 */ |
|
42 static CAknEikAudioToneObserver* NewL(CEikSoundInfo& aSoundInfo); |
|
43 |
|
44 /** |
|
45 * Destructor. |
|
46 */ |
|
47 virtual ~CAknEikAudioToneObserver(); |
|
48 |
|
49 private: |
|
50 /** |
|
51 * C++ default constructor. |
|
52 * @param aId The id of the observer. |
|
53 */ |
|
54 CAknEikAudioToneObserver(CEikSoundInfo& aSoundInfo); |
|
55 |
|
56 /** |
|
57 * By default Symbian 2nd phase constructor is private. |
|
58 */ |
|
59 void ConstructL(); |
|
60 |
|
61 /** |
|
62 * From MMdaAudioToneObserver |
|
63 */ |
|
64 virtual void MatoPrepareComplete(TInt aError); |
|
65 |
|
66 /** |
|
67 * From MMdaAudioToneObserver |
|
68 */ |
|
69 virtual void MatoPlayComplete(TInt aError); |
|
70 |
|
71 private: // Data |
|
72 CEikSoundInfo& iSoundInfo; |
|
73 }; |
|
74 |
|
75 #endif // __AKNEIKAUDIOTONEOBSERVER_H__ |
|
76 |
|
77 // End of File |