equal
deleted
inserted
replaced
47 iMsgQHandler(NULL), |
47 iMsgQHandler(NULL), |
48 iObserver(NULL), |
48 iObserver(NULL), |
49 iFormat(NULL), |
49 iFormat(NULL), |
50 iStreamState(TMS_STREAM_UNINITIALIZED) |
50 iStreamState(TMS_STREAM_UNINITIALIZED) |
51 { |
51 { |
52 //TMSStream::Construct(this); |
52 TRACE_PRN_FN_ENT; |
|
53 TRACE_PRN_FN_EXT; |
53 } |
54 } |
54 |
55 |
55 TMSStreamBodyImpl::~TMSStreamBodyImpl() |
56 TMSStreamBodyImpl::~TMSStreamBodyImpl() |
56 { |
57 { |
|
58 TRACE_PRN_FN_ENT; |
57 if (iMsgQHandler) |
59 if (iMsgQHandler) |
58 { |
60 { |
59 iMsgQHandler->Cancel(); |
61 iMsgQHandler->Cancel(); |
60 } |
62 } |
61 delete iMsgQHandler; |
63 delete iMsgQHandler; |
69 if (iContext.CallProxy && (iContext.StreamId != -1)) |
71 if (iContext.CallProxy && (iContext.StreamId != -1)) |
70 { |
72 { |
71 iContext.CallProxy->DeleteStream(iContext.CallType, |
73 iContext.CallProxy->DeleteStream(iContext.CallType, |
72 iContext.StreamType, iContext.StreamId); |
74 iContext.StreamType, iContext.StreamId); |
73 } |
75 } |
|
76 TRACE_PRN_FN_EXT; |
74 } |
77 } |
75 |
78 |
76 gint TMSStreamBodyImpl::Create(TMSCallType callType, TMSStreamType stype, |
79 gint TMSStreamBodyImpl::Create(TMSCallType callType, TMSStreamType stype, |
77 TMSCallProxy* proxy, TMSStream& parent, TMSStreamBody*& bodyimpl) |
80 TMSCallProxy* proxy, TMSStream& parent, TMSStreamBody*& bodyimpl) |
78 { |
81 { |
717 |
720 |
718 void TMSStreamBodyImpl::QueueEvent(TInt aEventType, TInt aError, |
721 void TMSStreamBodyImpl::QueueEvent(TInt aEventType, TInt aError, |
719 void* user_data) |
722 void* user_data) |
720 { |
723 { |
721 TMSSignalEvent event = {}; //all elements initialized to zeros |
724 TMSSignalEvent event = {}; //all elements initialized to zeros |
722 event.reason = aError; |
725 event.reason = TMSRESULT(aError); |
723 event.user_data = user_data; |
726 event.user_data = user_data; |
724 iStreamState = aEventType; |
727 iStreamState = aEventType; |
725 |
728 |
726 switch (aEventType) |
729 switch (aEventType) |
727 { |
730 { |