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