mmserv/tms/tmsimpl/src/tmsinbandtonebodyimpl.cpp
changeset 20 b67dd1fc57c5
parent 12 5a06f39ad45b
equal deleted inserted replaced
19:4a629bc82c5e 20:b67dd1fc57c5
    62 
    62 
    63 gint TMSInbandToneBodyImpl::PostConstruct()
    63 gint TMSInbandToneBodyImpl::PostConstruct()
    64     {
    64     {
    65     gint ret(TMS_RESULT_SUCCESS);
    65     gint ret(TMS_RESULT_SUCCESS);
    66     iClientId = 1;
    66     iClientId = 1;
    67     iProxy = new TMSProxy;
    67     iProxy = new TMSProxy();
    68 
    68 
    69     if (!iProxy)
    69     if (!iProxy)
    70         {
    70         {
    71         ret = TMS_RESULT_INSUFFICIENT_MEMORY;
    71         ret = TMS_RESULT_INSUFFICIENT_MEMORY;
    72         }
    72         }
    94             {
    94             {
    95             ret = iProxy->SetMsgQueueNotifier(EMsgQueueInbandToneType,
    95             ret = iProxy->SetMsgQueueNotifier(EMsgQueueInbandToneType,
    96                     iObserver, iParent, iClientId);
    96                     iObserver, iParent, iClientId);
    97             if (ret == TMS_RESULT_SUCCESS)
    97             if (ret == TMS_RESULT_SUCCESS)
    98                 {
    98                 {
    99                 //ret = iProxy->StartInbandToneNotifier();
    99                 //ret = iProxy->StartInbandToneNotifier(); //TODO: remove?
   100                 }
   100                 }
   101             }
   101             }
   102         else
   102         else
   103             {
   103             {
   104             ret = TMS_RESULT_DOES_NOT_EXIST;
   104             ret = TMS_RESULT_DOES_NOT_EXIST;
   117     if (iProxy && (&obsrvr == iObserver))
   117     if (iProxy && (&obsrvr == iObserver))
   118         {
   118         {
   119         ret = iProxy->RemoveMsgQueueNotifier(EMsgQueueInbandToneType,
   119         ret = iProxy->RemoveMsgQueueNotifier(EMsgQueueInbandToneType,
   120                 iObserver);
   120                 iObserver);
   121         iObserver = NULL;
   121         iObserver = NULL;
   122         //iProxy->CancelInbandToneNotifier();
   122         //iProxy->CancelInbandToneNotifier(); //TODO: remove?
   123         }
   123         }
   124     else
   124     else
   125         {
   125         {
   126         ret = TMS_RESULT_DOES_NOT_EXIST;
   126         ret = TMS_RESULT_DOES_NOT_EXIST;
   127         }
   127         }