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 XADEVICEVOLUMEITF_H |
|
19 #define XADEVICEVOLUMEITF_H |
|
20 |
|
21 #include "xaadptbasectx.h" |
|
22 |
|
23 /** MACROS **/ |
|
24 #define DEFAULTDEVICEVOLUME 5 |
|
25 #define DEFAULTDEVICEMINVOLUME 0 |
|
26 #define DEFAULTDEVICEMAXVOLUME 10 |
|
27 #define DEFAULTSCALEISMILLIBEL XA_BOOLEAN_FALSE |
|
28 /** TYPES **/ |
|
29 |
|
30 /** ENUMERATIONS **/ |
|
31 |
|
32 /** STRUCTURES **/ |
|
33 /* Definition of XADeviceVolumeItf implementation */ |
|
34 typedef struct XADeviceVolumeItfImpl_ |
|
35 { |
|
36 /* parent interface */ |
|
37 struct XADeviceVolumeItf_ itf; |
|
38 /* pointer to self */ |
|
39 struct XADeviceVolumeItfImpl_* self; |
|
40 |
|
41 /* variables */ |
|
42 |
|
43 XAint32 curVolume; |
|
44 XAint32 minVolume; |
|
45 XAint32 maxVolume; |
|
46 XAboolean ismBscale; |
|
47 |
|
48 /*Adaptation variables*/ |
|
49 XAAdaptationBaseCtx *adapCtx; |
|
50 |
|
51 } XADeviceVolumeItfImpl; |
|
52 |
|
53 /* Base interface XADeviceVolumeItf implementation */ |
|
54 XAresult XADeviceVolumeItfImpl_GetVolumeScale( |
|
55 XADeviceVolumeItf self, |
|
56 XAuint32 deviceID, |
|
57 XAint32 * pMinValue, |
|
58 XAint32 * pMaxValue, |
|
59 XAboolean * pIsMillibelScale); |
|
60 XAresult XADeviceVolumeItfImpl_SetVolume( |
|
61 XADeviceVolumeItf self, |
|
62 XAuint32 deviceID, |
|
63 XAint32 volume); |
|
64 XAresult XADeviceVolumeItfImpl_GetVolume( |
|
65 XADeviceVolumeItf self, |
|
66 XAuint32 deviceID, |
|
67 XAint32 * pVolume); |
|
68 |
|
69 /* XADeviceVolumeItfImpl -specific methods */ |
|
70 XADeviceVolumeItfImpl* XADeviceVolumeItfImpl_Create(XAAdaptationBaseCtx *adapCtx); |
|
71 |
|
72 void XADeviceVolumeItfImpl_Free(XADeviceVolumeItfImpl* self); |
|
73 |
|
74 #endif /* XADEVICEVOLUMEITF_H */ |
|