mmserv/tms/tmsimpl/src/tmsg711impl.cpp
changeset 33 5e8b14bae8c3
parent 20 b67dd1fc57c5
child 46 0ac9a5310753
equal deleted inserted replaced
28:ebf79c79991a 33:5e8b14bae8c3
    41     ret = TMSG711FormatBodyImpl::Create(bodyimpl);
    41     ret = TMSG711FormatBodyImpl::Create(bodyimpl);
    42 
    42 
    43     if (ret == TMS_RESULT_SUCCESS)
    43     if (ret == TMS_RESULT_SUCCESS)
    44         {
    44         {
    45         this->iBody = bodyimpl;
    45         this->iBody = bodyimpl;
    46         this->iFormatBody = static_cast<TMSG711FormatBodyImpl*>(bodyimpl);
    46         this->iFormatBody = static_cast<TMSG711FormatBodyImpl*> (bodyimpl);
    47         }
    47         }
    48     TRACE_PRN_FN_EXT;
    48     TRACE_PRN_FN_EXT;
    49     return ret;
    49     return ret;
    50     }
    50     }
    51 
    51 
    52 gint TMSG711FormatImpl::Create(TMSFormat*& tmsformat)
    52 gint TMSG711FormatImpl::Create(TMSFormat*& tmsformat)
    53     {
    53     {
    54     gint ret(TMS_RESULT_INSUFFICIENT_MEMORY);
    54     gint ret(TMS_RESULT_INSUFFICIENT_MEMORY);
    55     TMSG711FormatImpl *self = new TMSG711FormatImpl();
    55     TMSG711FormatImpl* self = new TMSG711FormatImpl();
    56 
    56 
    57     TRACE_PRN_FN_ENT;
    57     TRACE_PRN_FN_ENT;
    58     if (self)
    58     if (self)
    59         {
    59         {
    60         ret = self->PostConstruct();
    60         ret = self->PostConstruct();
    73         gpointer queuehandler)
    73         gpointer queuehandler)
    74     {
    74     {
    75     gint ret(TMS_RESULT_SUCCESS);
    75     gint ret(TMS_RESULT_SUCCESS);
    76     if (this->iBody)
    76     if (this->iBody)
    77         {
    77         {
    78         static_cast<TMSG711FormatBodyImpl*>(this->iBody)->SetProxy(context,
    78         static_cast<TMSG711FormatBodyImpl*> (this->iBody)->SetProxy(context,
    79                 queuehandler);
    79                 queuehandler);
    80         }
    80         }
    81     else
    81     else
    82         {
    82         {
    83         ret = TMS_RESULT_UNINITIALIZED_OBJECT;
    83         ret = TMS_RESULT_UNINITIALIZED_OBJECT;
    84         }
    84         }
    85     return ret;
    85     return ret;
    86     }
    86     }
    87 
    87 
    88 // End of file