|
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: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef XANLINEARVOLUMEITF_H |
|
19 #define XANLINEARVOLUMEITF_H |
|
20 |
|
21 #include "openmaxalwrapper.h" |
|
22 #include "xaadaptationmmf.h" |
|
23 |
|
24 /** MACROS **/ |
|
25 |
|
26 /** TYPES **/ |
|
27 |
|
28 /** ENUMERATIONS **/ |
|
29 |
|
30 /** STRUCTURES **/ |
|
31 /* Definition of XANokiaLinearVolumeItf implementation */ |
|
32 typedef struct XANokiaLinearVolumeItfImpl_ |
|
33 { |
|
34 /* parent interface */ |
|
35 struct XANokiaLinearVolumeItf_ itf; |
|
36 /* pointer to self */ |
|
37 struct XANokiaLinearVolumeItfImpl_* self; |
|
38 |
|
39 XAmillibel volumeLevel; |
|
40 XAuint32 eventFlags; |
|
41 |
|
42 XANokiaLinearVolumeItf cbPtrToSelf; |
|
43 xaNokiaLinearVolumeCallback callback; |
|
44 void *context; |
|
45 |
|
46 /*Adaptation variables*/ |
|
47 XAAdaptationBaseCtx *adapCtx; |
|
48 |
|
49 } XANokiaLinearVolumeItfImpl; |
|
50 |
|
51 /** METHODS **/ |
|
52 |
|
53 /* Base interface XANokiaLinearVolumeItf implementation */ |
|
54 XAresult XANokiaLinearVolumeItfImpl_SetVolumeLevel(XANokiaLinearVolumeItf self, XAuint32 *percentage); |
|
55 |
|
56 XAresult XANokiaLinearVolumeItfImpl_GetVolumeLevel(XANokiaLinearVolumeItf self, XAuint32 *percentage); |
|
57 |
|
58 XAresult XANokiaLinearVolumeItfImpl_GetStepCount(XANokiaLinearVolumeItf self, XAuint32 *pStepCount); |
|
59 |
|
60 XAresult XANokiaLinearVolumeItfImpl_RegisterVolumeCallback(XANokiaLinearVolumeItf self, |
|
61 xaNokiaLinearVolumeCallback callback, |
|
62 void * pContext); |
|
63 XAresult XANokiaLinearVolumeItfImpl_SetCallbackEventsMask(XANokiaLinearVolumeItf self, XAuint32 eventFlags ); |
|
64 XAresult XANokiaLinearVolumeItfImpl_GetCallbackEventsMask(XANokiaLinearVolumeItf self, XAuint32 * pEventFlags); |
|
65 /* XANokiaLinearVolumeItfImpl -specific methods */ |
|
66 XANokiaLinearVolumeItfImpl* XANokiaLinearVolumeItfImpl_Create(XAAdaptationBaseCtx *adapCtx); |
|
67 void XANokiaLinearVolumeItfImpl_Free(XANokiaLinearVolumeItfImpl* self); |
|
68 void XANokiaLinearVolumeItfImpl_AdaptCb( void *pHandlerCtx, XAAdaptEvent *event ); |
|
69 |
|
70 #endif /* XANLINEARVOLUMEITF_H */ |