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 XARDSITF_H |
|
19 #define XARDSITF_H |
|
20 |
|
21 #include "xaadptbasectx.h" |
|
22 /** MACROS **/ |
|
23 /** TYPES **/ |
|
24 |
|
25 /** ENUMERATIONS **/ |
|
26 |
|
27 /** STRUCTURES **/ |
|
28 /* Definition of XAEqualizerItf implementation */ |
|
29 typedef struct XARDSItfImpl_ |
|
30 { |
|
31 /* parent interface */ |
|
32 struct XARDSItf_ itf; |
|
33 /* pointer to self */ |
|
34 struct XARDSItfImpl_* self; |
|
35 |
|
36 /* variables */ |
|
37 |
|
38 xaRDSCallback rdsCallback; |
|
39 void *rdsContext; |
|
40 XARDSItf rdsCbPtrToSelf; |
|
41 |
|
42 xaGetODAGroupCallback odaGroupCallback; |
|
43 void *odaGroupContext; |
|
44 XARDSItf odaGroupCbPtrToSelf; |
|
45 |
|
46 xaNewODADataCallback odaDataCallback; |
|
47 void *odaDataContext; |
|
48 XARDSItf odaDataCbPtrToSelf; |
|
49 |
|
50 /*Adaptation variables*/ |
|
51 XAAdaptationBaseCtx *adapCtx; |
|
52 } XARDSItfImpl; |
|
53 |
|
54 /** METHODS **/ |
|
55 |
|
56 /* Base interface XARDSItf implementation */ |
|
57 |
|
58 XAresult XARDSItfImpl_QueryRDSSignal(XARDSItf self, XAboolean * isSignal); |
|
59 |
|
60 XAresult XARDSItfImpl_GetProgrammeServiceName(XARDSItf self, XAchar * ps); |
|
61 |
|
62 XAresult XARDSItfImpl_GetRadioText(XARDSItf self, XAchar * rt); |
|
63 |
|
64 XAresult XARDSItfImpl_GetRadioTextPlus(XARDSItf self, |
|
65 XAuint8 contentType, |
|
66 XAchar * informationElement, |
|
67 XAchar * descriptor, |
|
68 XAuint8 * descriptorContentType); |
|
69 |
|
70 XAresult XARDSItfImpl_GetProgrammeType(XARDSItf self, XAuint32 * pty); |
|
71 |
|
72 XAresult XARDSItfImpl_GetProgrammeTypeString(XARDSItf self, |
|
73 XAboolean isLengthMax16, |
|
74 XAchar * pty); |
|
75 |
|
76 XAresult XARDSItfImpl_GetProgrammeIdentificationCode(XARDSItf self, XAint16 * pi); |
|
77 |
|
78 XAresult XARDSItfImpl_GetClockTime(XARDSItf self, XAtime * dateAndTime); |
|
79 |
|
80 XAresult XARDSItfImpl_GetTrafficAnnouncement(XARDSItf self, XAboolean * ta); |
|
81 |
|
82 XAresult XARDSItfImpl_GetTrafficProgramme(XARDSItf self, XAboolean * tp); |
|
83 |
|
84 XAresult XARDSItfImpl_SeekByProgrammeType(XARDSItf self, |
|
85 XAuint32 pty, |
|
86 XAboolean upwards); |
|
87 |
|
88 XAresult XARDSItfImpl_SeekTrafficAnnouncement(XARDSItf self, XAboolean upwards); |
|
89 |
|
90 XAresult XARDSItfImpl_SeekTrafficProgramme(XARDSItf self, XAboolean upwards); |
|
91 |
|
92 XAresult XARDSItfImpl_SetAutomaticSwitching(XARDSItf self, XAboolean automatic); |
|
93 |
|
94 XAresult XARDSItfImpl_GetAutomaticSwitching(XARDSItf self, XAboolean * automatic); |
|
95 |
|
96 XAresult XARDSItfImpl_SetAutomaticTrafficAnnouncement(XARDSItf self, XAboolean automatic); |
|
97 |
|
98 XAresult XARDSItfImpl_GetAutomaticTrafficAnnouncement(XARDSItf self, XAboolean * automatic); |
|
99 |
|
100 XAresult XARDSItfImpl_GetODAGroup(XARDSItf self, |
|
101 XAuint16 AID, |
|
102 xaGetODAGroupCallback callback, |
|
103 void * pContext); |
|
104 |
|
105 XAresult XARDSItfImpl_SubscribeODAGroup(XARDSItf self, |
|
106 XAint16 group, |
|
107 XAboolean useErrorCorrection); |
|
108 |
|
109 XAresult XARDSItfImpl_UnsubscribeODAGroup(XARDSItf self, XAint16 group); |
|
110 |
|
111 XAresult XARDSItfImpl_ListODAGroupSubscriptions(XARDSItf self, |
|
112 XAint16* pGroups, |
|
113 XAuint32* pLength); |
|
114 |
|
115 XAresult XARDSItfImpl_RegisterRDSCallback(XARDSItf self, |
|
116 xaRDSCallback callback, |
|
117 void * pContext); |
|
118 |
|
119 XAresult XARDSItfImpl_RegisterODADataCallback(XARDSItf self, |
|
120 xaNewODADataCallback callback, |
|
121 void * pContext); |
|
122 |
|
123 |
|
124 /* XARDSItfImpl -specific methods */ |
|
125 XARDSItfImpl* XARDSItfImpl_Create(XAAdaptationBaseCtx *adapCtx); |
|
126 |
|
127 void XARDSItfImpl_AdaptCb( void *pHandlerCtx, XAAdaptEvent *event ); |
|
128 void XARDSItfImpl_Free(XARDSItfImpl* self); |
|
129 |
|
130 #endif /* XARDSITF_H */ |
|