|
1 /* |
|
2 * Copyright (c) 2006 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: Module for holding control groups belonging to SoundSource3D. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CAMMSSOUNDSOURCE3D_H |
|
20 #define CAMMSSOUNDSOURCE3D_H |
|
21 |
|
22 // INCLUDES |
|
23 #include "cammsmodule.h" |
|
24 |
|
25 // FORWARD DECLARATIONS |
|
26 class CMMAPlayer; |
|
27 class CAMMSGlobalManager; |
|
28 |
|
29 |
|
30 // CLASS DECLARATION |
|
31 |
|
32 /** |
|
33 * Module for holding control groups belonging to SoundSource3D. |
|
34 * |
|
35 * |
|
36 * |
|
37 * @since 3.0 |
|
38 */ |
|
39 NONSHARABLE_CLASS(CAMMSSoundSource3D): public CAMMSModule |
|
40 { |
|
41 public: |
|
42 /** |
|
43 * Two-phased constructor. |
|
44 * |
|
45 * @param aSpectator Spectator. |
|
46 * @param aGlobalManager Global manager. |
|
47 */ |
|
48 static CAMMSSoundSource3D* NewLC(CAMMSModule* aSpectator, |
|
49 CAMMSGlobalManager* aGlobalManager); |
|
50 |
|
51 /** |
|
52 * Destructor. |
|
53 */ |
|
54 ~CAMMSSoundSource3D(); |
|
55 |
|
56 public: // New functions |
|
57 |
|
58 /** |
|
59 * From CAMMSModule. |
|
60 */ |
|
61 void AddPlayerNoStateCheckL(CMMAPlayer* aPlayer); |
|
62 |
|
63 /** |
|
64 * From CAMMSModule. |
|
65 */ |
|
66 TInt RemovePlayerNoStateCheck(CMMAPlayer* aPlayer); |
|
67 |
|
68 protected: |
|
69 /** |
|
70 * C++ default constructor. |
|
71 * |
|
72 * @param aSpectator Spectator. |
|
73 * @param aGlobalManager Global manager. |
|
74 */ |
|
75 CAMMSSoundSource3D(CAMMSModule* aSpectator, |
|
76 CAMMSGlobalManager* aGlobalManager); |
|
77 |
|
78 protected: |
|
79 /** |
|
80 * Protected because derived classes must call ConstructL. |
|
81 */ |
|
82 void ConstructL(); |
|
83 |
|
84 private: // Data |
|
85 |
|
86 CAMMSModule* iSpectator; // Not owned. |
|
87 CAMMSGlobalManager* iGlobalManager; // Not owned. |
|
88 }; |
|
89 |
|
90 #endif // CAMMSSOUNDSOURCE3D_H |
|
91 |
|
92 |