34 } |
34 } |
35 |
35 |
36 gint TMSStreamImpl::PostConstruct(TMSCallType callType, TMSStreamType stype, |
36 gint TMSStreamImpl::PostConstruct(TMSCallType callType, TMSStreamType stype, |
37 TMSCallProxy* proxy) |
37 TMSCallProxy* proxy) |
38 { |
38 { |
|
39 TRACE_PRN_FN_ENT; |
39 gint ret(TMS_RESULT_INSUFFICIENT_MEMORY); |
40 gint ret(TMS_RESULT_INSUFFICIENT_MEMORY); |
40 TMSStreamBody* tmsstreamimplbody(NULL); |
41 TMSStreamBody* bodyimpl(NULL); |
41 ret = TMSStreamBodyImpl::Create(callType, stype, proxy, *this, |
42 ret = TMSStreamBodyImpl::Create(callType, stype, proxy, *this, bodyimpl); |
42 tmsstreamimplbody); |
|
43 |
43 |
44 if (ret == TMS_RESULT_SUCCESS) |
44 if (ret == TMS_RESULT_SUCCESS) |
45 { |
45 { |
46 this->iBody = tmsstreamimplbody; |
46 this->iBody = bodyimpl; |
47 } |
47 } |
|
48 TRACE_PRN_FN_EXT; |
48 return ret; |
49 return ret; |
49 } |
50 } |
50 |
51 |
51 gint TMSStreamImpl::Create(TMSCallType callType, TMSStreamType stype, |
52 gint TMSStreamImpl::Create(TMSCallType callType, TMSStreamType stype, |
52 TMSCallProxy* proxy, TMSStream*& strm) |
53 TMSCallProxy* proxy, TMSStream*& strm) |
53 { |
54 { |
|
55 TRACE_PRN_FN_ENT; |
54 gint ret(TMS_RESULT_INSUFFICIENT_MEMORY); |
56 gint ret(TMS_RESULT_INSUFFICIENT_MEMORY); |
55 TMSStreamImpl *self = new TMSStreamImpl(); |
57 TMSStreamImpl *self = new TMSStreamImpl(); |
56 |
58 |
57 if (self) |
59 if (self) |
58 { |
60 { |