1 /* |
|
2 * Copyright (c) 2010 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: |
|
15 * This file defines the interface for creating, playing, |
|
16 * stopping, and deleting an MMF player for a tone type. |
|
17 */ |
|
18 #ifndef STSPLAYERSETTINGS_H_ |
|
19 #define STSPLAYERSETTINGS_H_ |
|
20 |
|
21 #include <e32std.h> |
|
22 #include "stssettingsmanager.h" |
|
23 |
|
24 class CStsPlayerSettings : public CStsSettingsManager::MPlayerSettings |
|
25 { |
|
26 public: |
|
27 CStsPlayerSettings(); |
|
28 virtual ~CStsPlayerSettings(); |
|
29 |
|
30 void SetFileName(const TDesC& aFileName); |
|
31 void SetNumberOfRepeats(int aNumberOfRepeats); |
|
32 void SetRepeatDelay(TTimeIntervalMicroSeconds aRepeatDelay); |
|
33 void SetVolumePercentage(int aVolumePercentage); |
|
34 void SetVolumeRamp(TTimeIntervalMicroSeconds aVolumeRamp); |
|
35 |
|
36 // inherited from CStsSettingsManager::MPlayerSettings |
|
37 virtual TPtrC GetFileName(); |
|
38 virtual int GetNumberOfRepeats(); |
|
39 virtual TTimeIntervalMicroSeconds& GetRepeatDelay(); |
|
40 virtual int GetVolumePercentage(); |
|
41 virtual TTimeIntervalMicroSeconds& GetVolumeRamp(); |
|
42 |
|
43 private: |
|
44 HBufC* iFileName; |
|
45 int iNumberOfRepeats; |
|
46 TTimeIntervalMicroSeconds iRepeatDelay; |
|
47 int iVolumePercentage; |
|
48 TTimeIntervalMicroSeconds iVolumeRamp; |
|
49 }; |
|
50 |
|
51 #endif //STSPLAYERSETTINGS_H_ |
|