|
1 /* |
|
2 * Copyright (c) 2002-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: This class is used for setting volume to audio player |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CMMAEMCAUDIOVOLUMECONTROL_H |
|
20 #define CMMAEMCAUDIOVOLUMECONTROL_H |
|
21 |
|
22 #include <mmf/common/mmfstandardcustomcommands.h> |
|
23 #include "VolumeControl.h" |
|
24 #include "cmmavolumecontrol.h" |
|
25 |
|
26 using multimedia::MVolumeControl; |
|
27 |
|
28 class CMMAEMCAudioPlayer; |
|
29 |
|
30 // CLASS DEFINITION |
|
31 /* |
|
32 ----------------------------------------------------------------------------- |
|
33 |
|
34 DESCRIPTION |
|
35 This class is used for setting volume to audio player |
|
36 |
|
37 ----------------------------------------------------------------------------- |
|
38 */ |
|
39 |
|
40 NONSHARABLE_CLASS(CMMAEMCAudioVolumeControl): public CMMAVolumeControl |
|
41 { |
|
42 public: // constructors and destructors |
|
43 IMPORT_C static CMMAEMCAudioVolumeControl* NewL(CMMAEMCAudioPlayer& aPlayer); |
|
44 |
|
45 protected: |
|
46 IMPORT_C CMMAEMCAudioVolumeControl(CMMAEMCAudioPlayer& aPlayer); |
|
47 void ConstructL(); |
|
48 |
|
49 ~CMMAEMCAudioVolumeControl(); |
|
50 |
|
51 public: // from CMMAVolumeControl |
|
52 IMPORT_C void DoSetLevelL(TInt aLevel); |
|
53 IMPORT_C TInt DoGetLevelL(); |
|
54 |
|
55 private: // data |
|
56 MVolumeControl* iVolCntrl; |
|
57 |
|
58 // not owned |
|
59 CMMAEMCAudioPlayer& iPlayer; |
|
60 }; |
|
61 |
|
62 #endif // CMMAEMCAUDIOVOLUMECONTROL_H |