|
1 /* |
|
2 * Copyright (c) 2009 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: Seek Interface Header |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef XASEEKITF_H |
|
19 #define XASEEKITF_H |
|
20 |
|
21 #include "xamediaplayer.h" |
|
22 /** MACROS **/ |
|
23 |
|
24 /** TYPES **/ |
|
25 |
|
26 /** ENUMERATIONS **/ |
|
27 |
|
28 /** STRUCTURES **/ |
|
29 /* Definition of XASeekItf implementation */ |
|
30 typedef struct XASeekItfImpl_ |
|
31 { |
|
32 /* parent interface */ |
|
33 struct XASeekItf_ itf; |
|
34 /* pointer to self */ |
|
35 struct XASeekItfImpl_* self; |
|
36 |
|
37 /* variables */ |
|
38 XAmillisecond playbackPosition; |
|
39 XAuint32 seekMode; |
|
40 XAboolean loopEnable; |
|
41 XAmillisecond startPos; |
|
42 XAmillisecond endPos; |
|
43 |
|
44 /*Adaptation variables*/ |
|
45 XAAdaptationBaseCtx *adapCtx; |
|
46 }XASeekItfImpl; |
|
47 |
|
48 /** METHODS **/ |
|
49 |
|
50 /* Base interface XASeekItf implementation */ |
|
51 XAresult XASeekItfImpl_SetPosition(XASeekItf self, XAmillisecond pos, |
|
52 XAuint32 seekMode); |
|
53 |
|
54 XAresult XASeekItfImpl_SetLoop(XASeekItf self, XAboolean loopEnable, |
|
55 XAmillisecond startPos, |
|
56 XAmillisecond endPos); |
|
57 |
|
58 XAresult XASeekItfImpl_GetLoop(XASeekItf self, XAboolean *pLoopEnabled, |
|
59 XAmillisecond *pStartPos, |
|
60 XAmillisecond *pEndPos); |
|
61 |
|
62 /* XASeekItfImpl -specific methods */ |
|
63 XASeekItfImpl* XASeekItfImpl_Create( XAMediaPlayerImpl* impl ); |
|
64 void XASeekItfImpl_Free(XASeekItfImpl* self); |
|
65 |
|
66 #endif /* XASEEKITF_H */ |