|
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: MediaPlayer Object Implementation Header |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef XAMEDIAPLAYER_H |
|
19 #define XAMEDIAPLAYER_H |
|
20 |
|
21 #include "openmaxalwrapper.h" |
|
22 #include "xaglobals.h" |
|
23 #include "xaobjectitf.h" |
|
24 #include "xamediaplayeradaptctxmmf.h" |
|
25 #include "xacapabilitiesmgr.h" |
|
26 /** MACROS **/ |
|
27 |
|
28 /** TYPES **/ |
|
29 |
|
30 /** ENUMERATIONS **/ |
|
31 /* Enumeration for interfaces that MediaPlayer supports. */ |
|
32 typedef enum |
|
33 { |
|
34 MP_OBJECTITF, |
|
35 MP_DIMITF, |
|
36 MP_PLAYITF, |
|
37 MP_SEEKITF, |
|
38 MP_VOLUMEITF, |
|
39 MP_PREFETCHSTATUSITF, |
|
40 MP_CONFIGEXTENSIONITF, |
|
41 MP_DYNAMICSOURCEITF, |
|
42 MP_METADATAEXTRACTIONITF, |
|
43 MP_PLAYBACKRATEITF, |
|
44 MP_NOKIAVOLUMEEXT, |
|
45 MP_NOKIALINEARVOLUME, |
|
46 MP_STREAMINFORMATIONITF, |
|
47 MP_ITFCOUNT |
|
48 } MPInterfaces; |
|
49 |
|
50 /** STRUCTURES **/ |
|
51 /* Specification for XAMediaPlayerImpl.*/ |
|
52 typedef struct XAMediaPlayerImpl_ |
|
53 { |
|
54 /* Parent for XAMediaPlayerImpl */ |
|
55 XAObjectItfImpl baseObj; |
|
56 |
|
57 /* variables */ |
|
58 XADataSource *dataSrc; |
|
59 XADataSource *bankSrc; |
|
60 XADataSink *audioSnk; |
|
61 XADataSink *imageVideoSnk; |
|
62 XADataSink *vibra; |
|
63 XADataSink *LEDArray; |
|
64 XAuint32 numRequiredInterfaces; |
|
65 XAInterfaceID *requiredItfIds; |
|
66 |
|
67 XAAdaptationBaseCtx* curAdaptCtx; |
|
68 XAAdaptationBaseCtx* adaptationCtxGst; |
|
69 XAAdaptationBaseCtx* adaptationCtxMMF; |
|
70 |
|
71 } XAMediaPlayerImpl; |
|
72 |
|
73 /** METHODS **/ |
|
74 |
|
75 /* base object XAObjectItfImpl methods */ |
|
76 XAresult XAMediaPlayerImpl_DoRealize(XAObjectItf self); |
|
77 XAresult XAMediaPlayerImpl_DoResume(XAObjectItf self); |
|
78 void XAMediaPlayerImpl_FreeResources(XAObjectItf self); |
|
79 |
|
80 /* DynamicInterfaceManagement object-specific methods */ |
|
81 XAresult XAMediaPlayerImpl_DoAddItf(XAObjectItf self, |
|
82 XAObjItfMapEntry *mapEntry); |
|
83 XAresult XAMediaPlayerImpl_DoResumeItf(XAObjectItf self, |
|
84 XAObjItfMapEntry *mapEntry); |
|
85 XAresult XAMediaPlayerImpl_DoRemoveItf(XAObjectItf self, |
|
86 XAObjItfMapEntry *mapEntry); |
|
87 |
|
88 #endif /* XAMEDIAPLAYER_H */ |