mmserv/tms/tmsimpl/src/tmsringtonebodyimpl.cpp
changeset 33 5e8b14bae8c3
parent 20 b67dd1fc57c5
equal deleted inserted replaced
28:ebf79c79991a 33:5e8b14bae8c3
    79 gint TMSRingToneBodyImpl::PostConstruct()
    79 gint TMSRingToneBodyImpl::PostConstruct()
    80     {
    80     {
    81     gint ret(TMS_RESULT_SUCCESS);
    81     gint ret(TMS_RESULT_SUCCESS);
    82     iClientId = 1;
    82     iClientId = 1;
    83     iProxy = new TMSProxy();
    83     iProxy = new TMSProxy();
    84 
       
    85     if (!iProxy)
    84     if (!iProxy)
    86         {
    85         {
    87         ret = TMS_RESULT_INSUFFICIENT_MEMORY;
    86         ret = TMS_RESULT_INSUFFICIENT_MEMORY;
    88         }
    87         }
    89     RET_REASON_IF_ERR(ret);
    88     else
    90 
    89         {
    91     if (iProxy->Connect() != TMS_RESULT_SUCCESS)
    90         if (iProxy->Connect() != TMS_RESULT_SUCCESS)
    92         {
    91             {
    93         delete iProxy;
    92             delete iProxy;
    94         iProxy = NULL;
    93             iProxy = NULL;
    95         ret = TMS_RESULT_FATAL_ERROR;
    94             ret = TMS_RESULT_FATAL_ERROR;
       
    95             }
    96         }
    96         }
    97     RET_REASON_IF_ERR(ret);
    97     RET_REASON_IF_ERR(ret);
    98     return ret;
    98     return ret;
    99     }
    99     }
   100 
   100 
   221         ret = TMS_RESULT_DOES_NOT_EXIST;
   221         ret = TMS_RESULT_DOES_NOT_EXIST;
   222         }
   222         }
   223     return ret;
   223     return ret;
   224     }
   224     }
   225 
   225 
   226 
       
   227 void TMSRingToneBodyImpl::SetParent(TMSRingTone*& parent)
   226 void TMSRingToneBodyImpl::SetParent(TMSRingTone*& parent)
   228     {
   227     {
   229     iParent = parent;
   228     iParent = parent;
   230     }
   229     }
   231 
   230