mmserv/tms/tmsimpl/src/tmsringtonebodyimpl.cpp
changeset 22 128eb6a32b84
parent 12 5a06f39ad45b
child 33 5e8b14bae8c3
equal deleted inserted replaced
16:43d09473c595 22:128eb6a32b84
    33 TMSRingToneBodyImpl::~TMSRingToneBodyImpl()
    33 TMSRingToneBodyImpl::~TMSRingToneBodyImpl()
    34     {
    34     {
    35     if (iProxy)
    35     if (iProxy)
    36         {
    36         {
    37         iProxy->Close();
    37         iProxy->Close();
    38         delete iProxy;
    38         }
    39         iProxy = NULL;
    39     delete iProxy;
    40         }
       
    41     iObserver = NULL;
    40     iObserver = NULL;
    42     iParent = NULL;
    41     iParent = NULL;
    43     iUserData = NULL;
       
    44     }
    42     }
    45 
    43 
    46 gint TMSRingToneBodyImpl::Create(TMSRingToneBody*& bodyimpl)
    44 gint TMSRingToneBodyImpl::Create(TMSRingToneBody*& bodyimpl)
    47     {
    45     {
    48     gint ret(TMS_RESULT_INSUFFICIENT_MEMORY);
    46     gint ret(TMS_RESULT_INSUFFICIENT_MEMORY);
    49     TMSRingToneBodyImpl* self = new TMSRingToneBodyImpl;
    47     TMSRingToneBodyImpl* self = new TMSRingToneBodyImpl();
    50     if (self)
    48     if (self)
    51         {
    49         {
    52         ret = self->PostConstruct();
    50         ret = self->PostConstruct();
    53         if (ret != TMS_RESULT_SUCCESS)
    51         if (ret != TMS_RESULT_SUCCESS)
    54             {
    52             {
    62 
    60 
    63 gint TMSRingToneBodyImpl::Create(TMSRingToneBody*& bodyimpl,
    61 gint TMSRingToneBodyImpl::Create(TMSRingToneBody*& bodyimpl,
    64         RWindow& /*window*/, gint /*scrid*/)
    62         RWindow& /*window*/, gint /*scrid*/)
    65     {
    63     {
    66     gint ret(TMS_RESULT_INSUFFICIENT_MEMORY);
    64     gint ret(TMS_RESULT_INSUFFICIENT_MEMORY);
    67     TMSRingToneBodyImpl* self = new TMSRingToneBodyImpl;
    65     TMSRingToneBodyImpl* self = new TMSRingToneBodyImpl();
    68     if (self)
    66     if (self)
    69         {
    67         {
    70         ret = self->PostConstruct();
    68         ret = self->PostConstruct();
    71         if (ret != TMS_RESULT_SUCCESS)
    69         if (ret != TMS_RESULT_SUCCESS)
    72             {
    70             {
    80 
    78 
    81 gint TMSRingToneBodyImpl::PostConstruct()
    79 gint TMSRingToneBodyImpl::PostConstruct()
    82     {
    80     {
    83     gint ret(TMS_RESULT_SUCCESS);
    81     gint ret(TMS_RESULT_SUCCESS);
    84     iClientId = 1;
    82     iClientId = 1;
    85     iProxy = new TMSProxy;
    83     iProxy = new TMSProxy();
    86 
    84 
    87     if (!iProxy)
    85     if (!iProxy)
    88         {
    86         {
    89         ret = TMS_RESULT_INSUFFICIENT_MEMORY;
    87         ret = TMS_RESULT_INSUFFICIENT_MEMORY;
    90         }
    88         }