|
1 /* |
|
2 * Copyright (c) 2005 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: SmilPlayerTimeObserver declaration |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef SMILPLAYERTIMEOBSERVER_H |
|
21 #define SMILPLAYERTIMEOBSERVER_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 |
|
26 // CONSTANTS |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 |
|
30 // DATA TYPES |
|
31 |
|
32 // CLASS DECLARATION |
|
33 |
|
34 /** |
|
35 * This interface class is implemented by time indicator timer observer. |
|
36 * |
|
37 * @lib smilplayer.lib |
|
38 * @since 3.0 |
|
39 */ |
|
40 NONSHARABLE_CLASS(MSmilPlayerTimeObserver) |
|
41 { |
|
42 public: |
|
43 |
|
44 /** |
|
45 * Called by timer when time string has changed. |
|
46 * |
|
47 * @since 3.0 |
|
48 * |
|
49 * @param aTimeString IN Changed time string. |
|
50 */ |
|
51 virtual void TimeChangedL( const TDesC& aTimeString ) = 0; |
|
52 |
|
53 /** |
|
54 * Called by timer to retrieve current time. |
|
55 * |
|
56 * @since 3.0 |
|
57 * |
|
58 * @return Current time on milliseconds. |
|
59 */ |
|
60 virtual TInt CurrentTime() const = 0; |
|
61 |
|
62 /** |
|
63 * Called by timer to retrieve presentation duration. |
|
64 * |
|
65 * @since 3.0 |
|
66 * |
|
67 * @return Presentation duration on milliseconds. |
|
68 */ |
|
69 virtual TInt PresentationDuration() const = 0; |
|
70 |
|
71 /** |
|
72 * Called by timer check if presentation duration is finite. |
|
73 * |
|
74 * @since 3.0 |
|
75 * |
|
76 * @return ETrue is duration is finite and EFalse if it is infinite. |
|
77 */ |
|
78 virtual TBool IsDurationFinite() const = 0; |
|
79 }; |
|
80 |
|
81 |
|
82 #endif // SMILPLAYERTIMEOBSERVER_H |
|
83 |
|
84 // End of File |