equal
deleted
inserted
replaced
23 #include "tmscallsession.h" |
23 #include "tmscallsession.h" |
24 |
24 |
25 using namespace TMS; |
25 using namespace TMS; |
26 |
26 |
27 const guint KArrayExpandSize = 8; |
27 const guint KArrayExpandSize = 8; |
|
28 const guint KNumOfElements = 10; |
28 |
29 |
29 // ----------------------------------------------------------------------------- |
30 // ----------------------------------------------------------------------------- |
30 // TMSCallSession::TMSCallSession |
31 // TMSCallSession::TMSCallSession |
31 // ----------------------------------------------------------------------------- |
32 // ----------------------------------------------------------------------------- |
32 // |
33 // |
287 gint status(TMS_RESULT_DOES_NOT_EXIST); |
288 gint status(TMS_RESULT_DOES_NOT_EXIST); |
288 if (iCallAdpt) |
289 if (iCallAdpt) |
289 { |
290 { |
290 TMSCliSrvStreamInitDataStructBufPckg pckg; |
291 TMSCliSrvStreamInitDataStructBufPckg pckg; |
291 aMessage.ReadL(0, pckg); |
292 aMessage.ReadL(0, pckg); |
292 status = iCallAdpt->InitStreamL(pckg().CallType, pckg().StreamType, |
293 status = iCallAdpt->InitStream(pckg().CallType, pckg().StreamType, |
293 pckg().StreamId, pckg().FormatType, aMessage); |
294 pckg().StreamId, pckg().FormatType, aMessage); |
294 |
295 |
295 switch (pckg().StreamType) |
296 switch (pckg().StreamType) |
296 { |
297 { |
297 case TMS_STREAM_DOWNLINK: |
298 case TMS_STREAM_DOWNLINK: |
1095 gint status(TMS_RESULT_DOES_NOT_EXIST); |
1096 gint status(TMS_RESULT_DOES_NOT_EXIST); |
1096 TPckgBuf<gint> countpkg; |
1097 TPckgBuf<gint> countpkg; |
1097 gint count; |
1098 gint count; |
1098 if (iCallAdpt) |
1099 if (iCallAdpt) |
1099 { |
1100 { |
1100 CBufFlat* outputbuf = CBufFlat::NewL(10); |
1101 CBufFlat* outputbuf = CBufFlat::NewL(KNumOfElements); |
1101 CleanupStack::PushL(outputbuf); |
1102 CleanupStack::PushL(outputbuf); |
1102 status = iCallAdpt->GetAvailableOutputsL(count, outputbuf); |
1103 status = iCallAdpt->GetAvailableOutputsL(count, outputbuf); |
1103 |
1104 |
1104 countpkg() = count; |
1105 countpkg() = count; |
1105 aMessage.WriteL(0, countpkg); |
1106 aMessage.WriteL(0, countpkg); |