equal
deleted
inserted
replaced
26 #include "mcspdevsoundobserver.h" |
26 #include "mcspdevsoundobserver.h" |
27 |
27 |
28 namespace TMS { |
28 namespace TMS { |
29 |
29 |
30 // FORWARD DECLARATIONS |
30 // FORWARD DECLARATIONS |
31 class CSUplink; |
31 class TMSCSUplink; |
32 class CSDownlink; |
32 class TMSCSDownlink; |
33 class TarSettings; |
33 class TMSTarSettings; |
34 |
34 |
35 /* |
35 /* |
36 * CallCSAdapt class |
36 * CallCSAdapt class |
37 */ |
37 */ |
38 class CallCSAdpt : public CBase, |
38 class TMSCallCSAdpt : public TMSCallAdpt, |
39 public CallAdpt, |
39 public TMSCSPDevSoundObserver, |
40 public MCSPDevSoundObserver, |
40 public MTelephonyAudioRoutingObserver |
41 public MTelephonyAudioRoutingObserver |
|
42 { |
41 { |
43 public: |
42 public: |
44 CallCSAdpt(); |
43 TMSCallCSAdpt(); |
45 virtual ~CallCSAdpt(); |
44 virtual ~TMSCallCSAdpt(); |
46 virtual gint PostConstruct(); |
45 virtual gint PostConstruct(); |
47 |
46 |
48 virtual gint CreateStream(TMSCallType callType, TMSStreamType strmType, |
47 virtual gint CreateStream(TMSCallType callType, TMSStreamType strmType, |
49 gint& outStrmId); |
48 gint& outStrmId); |
50 virtual gint InitStreamL(TMSCallType callType, TMSStreamType strmType, |
49 virtual gint InitStreamL(TMSCallType callType, TMSStreamType strmType, |
100 virtual gint GetAvailableOutputsL(gint& count, CBufFlat*& outputsbuffer); |
99 virtual gint GetAvailableOutputsL(gint& count, CBufFlat*& outputsbuffer); |
101 |
100 |
102 void NotifyClient(const gint strmId, const gint aCommand, |
101 void NotifyClient(const gint strmId, const gint aCommand, |
103 const gint aStatus = KErrNone, const gint64 aInt64 = TInt64(0)); |
102 const gint aStatus = KErrNone, const gint64 aInt64 = TInt64(0)); |
104 |
103 |
105 //From MCSPDevSoundObserver |
104 //From TMSCSPDevSoundObserver |
106 void DownlinkInitCompleted(TInt status); |
105 void DownlinkInitCompleted(TInt status); |
107 void UplinkInitCompleted(TInt status); |
106 void UplinkInitCompleted(TInt status); |
108 void UplinkActivatedSuccessfully(); |
107 void UplinkActivatedSuccessfully(); |
109 void DownlinkActivatedSuccessfully(); |
108 void DownlinkActivatedSuccessfully(); |
110 void UplinkActivationFailed(); |
109 void UplinkActivationFailed(); |
119 void GetSupportedBitRatesL(CBufFlat*& brbuffer); |
118 void GetSupportedBitRatesL(CBufFlat*& brbuffer); |
120 |
119 |
121 private: |
120 private: |
122 gint iNextStreamId; |
121 gint iNextStreamId; |
123 |
122 |
124 CSUplink* iCSUplink; |
123 TMSCSUplink* iCSUplink; |
125 CSDownlink* iCSDownlink; |
124 TMSCSDownlink* iCSDownlink; |
126 CTelephonyAudioRouting* iRouting; |
125 CTelephonyAudioRouting* iRouting; |
127 TarSettings* iTarSettings; |
126 TMSTarSettings* iTarSettings; |
128 TMSStreamType iStrmtype; |
127 TMSStreamType iStrmtype; |
129 |
128 |
130 RMsgQueue<TmsMsgBuf> iMsgQueueUp; |
129 RMsgQueue<TmsMsgBuf> iMsgQueueUp; |
131 RMsgQueue<TmsMsgBuf> iMsgQueueDn; |
130 RMsgQueue<TmsMsgBuf> iMsgQueueDn; |
132 TmsMsgBuf iMsgBuffer; |
131 TmsMsgBuf iMsgBuffer; |