|
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: Common defines and data types for common playback view |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef MPXCOMMONPLAYBACKVIEWDEFS_H |
|
21 #define MPXCOMMONPLAYBACKVIEWDEFS_H |
|
22 |
|
23 _LIT(KMPXCommonPlaybackViewIconFile, "mpxcommonplaybackview.mbm"); |
|
24 |
|
25 /** |
|
26 * States for soft buttons in Playback View. |
|
27 * @since 3.0 |
|
28 */ |
|
29 /** |
|
30 * Identifiers for soft buttons in Playback View. |
|
31 * @since 3.0 |
|
32 */ |
|
33 enum TMPXPbvButton |
|
34 { |
|
35 EButtonRocker, |
|
36 EButtonLast // Should always be the last value |
|
37 }; |
|
38 |
|
39 enum TMPXPbvAvkonButton |
|
40 { |
|
41 EButtonPlay, |
|
42 EButtonPause, |
|
43 EButtonFastForward, |
|
44 EButtonRewind, |
|
45 EButtonVolumeDown, |
|
46 EButtonVolumeUp, |
|
47 EButtonStop, |
|
48 }; |
|
49 |
|
50 /** |
|
51 * Identifiers for different graphical indicators visible in Playback View. |
|
52 * These constants are used by MPXPlaybackViewLayout when getting layout data |
|
53 * (MPXPlaybackViewLayout::IndicatorLayout()) and bitmaps |
|
54 * (MPXPlaybackViewLayout::GetIndicatorIconL()) for the indicators. |
|
55 * @since 3.0 |
|
56 */ |
|
57 enum TMPXPbvIndicator |
|
58 { |
|
59 // Playback status indicators |
|
60 EIconPlay, |
|
61 EIconStop, |
|
62 EIconPause, |
|
63 EIconFastForward, |
|
64 EIconRewind, |
|
65 |
|
66 // Mode indicators |
|
67 EIconRepeatOne, |
|
68 EIconRepeatAll, |
|
69 EIconRandom, |
|
70 |
|
71 // Background |
|
72 EBackgroundGraphic, // Layout and graphic for skinned background |
|
73 |
|
74 // Progressive download |
|
75 ESliderPane, // Parent pane for download/playback sliders |
|
76 ESliderBackground, // Background graphic for slider |
|
77 EPlaybackSlider, // Slider indicating current playback position |
|
78 EDownloadSlider, // Slider indicating current download position |
|
79 |
|
80 EAlbumArtArea, // Layout for album art, default graphic |
|
81 EIconRemotePlayer // layout for upnp graphic |
|
82 |
|
83 // Playback type indicators |
|
84 #ifdef RD_RA_SUPPORT_FOR_MUSIC_PLAYER |
|
85 , EIconReal |
|
86 #endif |
|
87 }; |
|
88 |
|
89 /** |
|
90 * Identifiers for different text fields visible in Playback View. |
|
91 * @since 3.0 |
|
92 */ |
|
93 enum TMPXPbvTextIndicator |
|
94 { |
|
95 ETextArtist, |
|
96 ETextTrack, |
|
97 ETextPlaylistCount, |
|
98 |
|
99 ETextEmpty, |
|
100 ETextElapsedTime, |
|
101 ETextRemainingTime, |
|
102 ETextDownloadState, |
|
103 ETextFMFrequency, |
|
104 ETextCount |
|
105 }; |
|
106 |
|
107 /** |
|
108 * Playback states for Playback View. |
|
109 * @since 3.0 |
|
110 */ |
|
111 enum TMPXPbvPlaybackMode |
|
112 { |
|
113 EInvalidMode = 0, |
|
114 EPlayMode, |
|
115 EStopMode, |
|
116 EPauseMode, |
|
117 ENoTracksMode, |
|
118 EUninitialized, |
|
119 EInitialising, |
|
120 EMediaKeySkipping, |
|
121 EBufferingMode |
|
122 }; |
|
123 |
|
124 enum TMPXPbvLayoutVariants |
|
125 { |
|
126 // Playback status indicators |
|
127 EPbvPortraitWithoutRocker, // 0 |
|
128 EPbvLandscapeWithoutRocker, // 1 |
|
129 EPbvPortraitTouchExpandedCntl, // 2 |
|
130 EPbvLandscapeTouchExpandedCntl, // 3 |
|
131 EPbvPortraitTouchCollapsedCntl, // 4 |
|
132 EPbvLandscapeTouchCollapsedCntl, // 5 |
|
133 EPbvPortraitWithRocker, // 6 |
|
134 EPbvLandscapeWithRocker, // 7 |
|
135 EPbvPortraitTouchFixedCntl, // 8 |
|
136 EPbvLandscapeTouchFixedCntl, // 9 |
|
137 EPbvPortraitNhdTouch, // 10 |
|
138 EPbvLandscapeNhdTouch, // 11 |
|
139 EPbvPortraitNhdTouchWithFM, // 12 |
|
140 EPbvLandscapeNhdTouchWithFM, // 13 |
|
141 EPbvUndefinedVariant, // 14 |
|
142 EPbvPortraitWithRockerFM, // 15 |
|
143 EPbvLandscapeWithRockerFM // 16 |
|
144 }; |
|
145 #endif // MPXCOMMONPLAYBACKVIEWDEFS_H |
|
146 |
|
147 // End of file |