mmserv/tms/tmsimpl/src/tmsstreamimpl.cpp
branchRCL_3
changeset 46 0ac9a5310753
parent 45 095bea5f582e
equal deleted inserted replaced
45:095bea5f582e 46:0ac9a5310753
    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         {
    64             delete self;
    62             delete self;
    65             self = NULL;
    63             self = NULL;
    66             }
    64             }
    67         }
    65         }
    68     strm = self;
    66     strm = self;
    69     TRACE_PRN_FN_EXT;
       
    70     return ret;
    67     return ret;
    71     }
    68     }
    72 
    69 
    73 gint TMSStreamImpl::Delete(TMSStream*& strm)
    70 gint TMSStreamImpl::Delete(TMSStream*& strm)
    74     {
    71     {
    75     TRACE_PRN_FN_ENT;
    72     TRACE_PRN_FN_ENT;
    76     gint ret(TMS_RESULT_SUCCESS);
    73     gint ret(TMS_RESULT_SUCCESS);
    77     delete (static_cast<TMSStreamImpl*> (strm));
    74     delete (static_cast<TMSStreamImpl*>(strm));
    78     strm = NULL;
    75     strm = NULL;
    79     TRACE_PRN_FN_EXT;
    76     TRACE_PRN_FN_EXT;
    80     return ret;
    77     return ret;
    81     }
    78     }
    82 
    79