20 |
20 |
21 // INCLUDES |
21 // INCLUDES |
22 #include <TelephonyAudioRouting.h> |
22 #include <TelephonyAudioRouting.h> |
23 #include <MTelephonyAudioRoutingObserver.h> |
23 #include <MTelephonyAudioRoutingObserver.h> |
24 #include <e32msgqueue.h> |
24 #include <e32msgqueue.h> |
|
25 #include <etelmm.h> |
|
26 #include <rmmcustomapi.h> |
25 #include "tmsclientserver.h" |
27 #include "tmsclientserver.h" |
26 #include "tmscalladpt.h" |
28 #include "tmscalladpt.h" |
27 #include "tmscsdevsoundobserver.h" |
29 #include "tmscsdevsoundobserver.h" |
28 |
30 |
29 namespace TMS { |
31 namespace TMS { |
30 |
32 |
31 // FORWARD DECLARATIONS |
33 // FORWARD DECLARATIONS |
32 class TMSCSUplink; |
34 class TMSCSUplink; |
33 class TMSCSDownlink; |
35 class TMSCSDownlink; |
34 class TMSTarSettings; |
36 class TMSTarSettings; |
|
37 class TMSSyncVol; |
35 |
38 |
36 /* |
39 /* |
37 * TMSCallCSAdpt class |
40 * TMSCallCSAdpt class |
38 */ |
41 */ |
39 class TMSCallCSAdpt : public TMSCallAdpt, |
42 class TMSCallCSAdpt : public TMSCallAdpt, |
48 // From TMSStream |
51 // From TMSStream |
49 virtual gint CreateStream(const TMSCallType callType, |
52 virtual gint CreateStream(const TMSCallType callType, |
50 const TMSStreamType strmType, gint& outStrmId); |
53 const TMSStreamType strmType, gint& outStrmId); |
51 virtual gint InitStream(const TMSCallType callType, |
54 virtual gint InitStream(const TMSCallType callType, |
52 const TMSStreamType strmType, const gint strmId, |
55 const TMSStreamType strmType, const gint strmId, |
53 const TMSFormatType frmtType, const RMessage2& message); |
56 const TMSFormatType frmtType, const gint retryTime, |
|
57 const RMessage2& message); |
54 virtual gint StartStream(const TMSCallType callType, |
58 virtual gint StartStream(const TMSCallType callType, |
55 const TMSStreamType strmType, const gint strmId); |
59 const TMSStreamType strmType, const gint strmId, |
|
60 const gint retrytime); |
56 virtual gint PauseStream(const TMSCallType callType, |
61 virtual gint PauseStream(const TMSCallType callType, |
57 const TMSStreamType strmType, const gint strmId); |
62 const TMSStreamType strmType, const gint strmId); |
58 virtual gint StopStream(const TMSCallType callType, |
63 virtual gint StopStream(const TMSCallType callType, |
59 const TMSStreamType strmType, const gint strmId); |
64 const TMSStreamType strmType, const gint strmId); |
60 virtual gint DeinitStream(const TMSCallType callType, |
65 virtual gint DeinitStream(const TMSCallType callType, |
114 |
119 |
115 private: |
120 private: |
116 TMSCallCSAdpt(); |
121 TMSCallCSAdpt(); |
117 void ConstructL(); |
122 void ConstructL(); |
118 |
123 |
119 gint InitUplink(); |
124 gint InitUplink(const gint retrytime); |
120 gint InitDownlink(); |
125 gint InitDownlink(const gint retrytime); |
121 void AvailableOutputsChanged( |
126 void AvailableOutputsChanged( |
122 CTelephonyAudioRouting& aTelephonyAudioRouting); |
127 CTelephonyAudioRouting& aTelephonyAudioRouting); |
123 void OutputChanged(CTelephonyAudioRouting& aTelephonyAudioRouting); |
128 void OutputChanged(CTelephonyAudioRouting& aTelephonyAudioRouting); |
124 void SetOutputComplete(CTelephonyAudioRouting& aTelephonyAudioRouting, |
129 void SetOutputComplete(CTelephonyAudioRouting& aTelephonyAudioRouting, |
125 gint status); |
130 gint status); |
137 // Message queues for communication and data transfer back to the client |
142 // Message queues for communication and data transfer back to the client |
138 RMsgQueue<TmsMsgBuf> iMsgQueueUp; |
143 RMsgQueue<TmsMsgBuf> iMsgQueueUp; |
139 RMsgQueue<TmsMsgBuf> iMsgQueueDn; |
144 RMsgQueue<TmsMsgBuf> iMsgQueueDn; |
140 TmsMsgBuf iMsgBuffer; |
145 TmsMsgBuf iMsgBuffer; |
141 |
146 |
142 gboolean iUplinkInitialized; |
|
143 gint iUplinkStreamId; |
147 gint iUplinkStreamId; |
144 gboolean iDnlinkInitialized; |
|
145 gint iDnlinkStreamId; |
148 gint iDnlinkStreamId; |
|
149 TMSSyncVol* iResetVolNotifier; |
146 }; |
150 }; |
147 |
151 |
148 } //namespace TMS |
152 } //namespace TMS |
149 |
153 |
150 #endif // CALLCSADPT_H |
154 #endif // CALLCSADPT_H |
151 |
155 |
152 // End of file |
|