1 // Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @internalComponent |
|
19 */ |
|
20 |
|
21 #ifndef CMTPPLAYBACKPROPERTY_H |
|
22 #define CMTPPLAYBACKPROPERTY_H |
|
23 |
|
24 #include "mtpplaybackcontroldpconst.h" |
|
25 #include "mtpdebug.h" |
|
26 #include "cmtpplaybackcommand.h" |
|
27 |
|
28 class CMTPPlaybackControlDataProvider; |
|
29 class TMTPPbCtrlData; |
|
30 |
|
31 /** |
|
32 Implements the CMTPPlaybackProperty. |
|
33 @internalComponent |
|
34 */ |
|
35 class CMTPPlaybackProperty : public CBase |
|
36 { |
|
37 |
|
38 public: |
|
39 |
|
40 static CMTPPlaybackProperty* NewL(); |
|
41 ~CMTPPlaybackProperty(); |
|
42 |
|
43 /** |
|
44 Get the devide property value by property code, |
|
45 @param aProp, DevicePropertyCode, |
|
46 @param aValue, Return value of the property, |
|
47 */ |
|
48 void GetDefaultPropertyValueL(TMTPDevicePropertyCode aProp, TInt32& aValue); |
|
49 |
|
50 /** |
|
51 Get the devide property value by property code, |
|
52 @param aProp, DevicePropertyCode, |
|
53 @param aValue, Return value of the property, |
|
54 */ |
|
55 void GetDefaultPropertyValueL(TMTPDevicePropertyCode aProp, TUint32& aValue); |
|
56 |
|
57 /** |
|
58 Get the default devide property value, |
|
59 @param aValue, Value of the property, |
|
60 */ |
|
61 void GetDefaultPropertyValueL(TMTPPbCtrlData& aValue); |
|
62 |
|
63 /** |
|
64 Get the default volume data set, |
|
65 @param aValue, Value of the property, |
|
66 */ |
|
67 void GetDefaultVolSet(TMTPPbDataVolume& aValue); |
|
68 |
|
69 /** |
|
70 Set the default volume data set, |
|
71 @param aValue, Value of the property, |
|
72 */ |
|
73 void SetDefaultVolSetL(const TMTPPbDataVolume& aValue); |
|
74 |
|
75 /** |
|
76 Check if the input is equalt to the default devide property value, |
|
77 @param aValue, Value of the property, |
|
78 @return ETrue if equal. |
|
79 */ |
|
80 TBool IsDefaultPropertyValueL(const TMTPPbCtrlData& aValue) const; |
|
81 |
|
82 private: |
|
83 CMTPPlaybackProperty(); |
|
84 void ConstructL(); |
|
85 |
|
86 private: // Owned. |
|
87 |
|
88 __FLOG_DECLARATION_MEMBER_MUTABLE; |
|
89 TMTPPbDataVolume* iPlaybackVolumeData; |
|
90 }; |
|
91 |
|
92 #endif //CMTPPLAYBACKPROPERTY_H |
|
93 |
|