|
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: handle callback messages return from testplaybackview |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef TESTPLAYBACKVIEWOBSERVER_H |
|
19 #define TESTPLAYBACKVIEWOBSERVER_H |
|
20 |
|
21 |
|
22 /* TestPlaybackView commands. Refer TMPXPlaybackCommand if possible*/ |
|
23 enum TTestPlaybackViewCommand |
|
24 { |
|
25 ETPbViewCmdPlay, |
|
26 ETPbViewCmdPause, |
|
27 ETPbViewCmdStop, |
|
28 ETPbViewCmdNext, |
|
29 ETPbViewCmdPrevious, |
|
30 ETPbViewCmdStartSeekForward, |
|
31 ETPbViewCmdStartSeekBackward, |
|
32 ETPbViewCmdStopSeeking, |
|
33 ETPbViewCmdIncreaseVolume, |
|
34 ETPbViewCmdDecreaseVolume, |
|
35 ETPbViewCmdClose, |
|
36 ETPbViewCmdEnd, |
|
37 }; |
|
38 |
|
39 /* TestPlaybackView playback state. Refer TMPXPlaybackState if possible*/ |
|
40 enum TTestPlaybackState |
|
41 { |
|
42 ETPbStateNotInitialised, |
|
43 ETPbStateInitialising, |
|
44 ETPbStatePlaying, |
|
45 ETPbStatePaused, |
|
46 ETPbStateStopped, |
|
47 ETPbStateSeekingForward, |
|
48 ETPbStateSeekingBackward, |
|
49 ETPbStateShuttingDown, |
|
50 ETPbStateBuffering, |
|
51 ETPbStateDownloading, |
|
52 ETPbStatEnd, |
|
53 }; |
|
54 |
|
55 /** |
|
56 * Handle callback message from CTestPlaybackView |
|
57 * |
|
58 * This interface class serves as generalized message issued from |
|
59 * view class. |
|
60 * |
|
61 * @lib testplaybackutility.lib |
|
62 * @since S60 v3.0 |
|
63 */ |
|
64 class MTestPlaybackViewObserver |
|
65 { |
|
66 public: |
|
67 |
|
68 /** |
|
69 * Handle View received command |
|
70 * @param aCmd a command received in view |
|
71 */ |
|
72 virtual void HandleUiCommandL(TTestPlaybackViewCommand aCmd) = 0; |
|
73 |
|
74 }; |
|
75 |
|
76 |
|
77 #endif // TESTPLAYBACKVIEWOBSERVER_H |