mmserv/tms/tmsimpl/src/tmsglobalroutingimpl.cpp
changeset 0 71ca22bcf22a
child 7 3d8c721bf319
equal deleted inserted replaced
-1:000000000000 0:71ca22bcf22a
       
     1 /*
       
     2  * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3  * All rights reserved.
       
     4  * This component and the accompanying materials are made available
       
     5  * under the terms of "Eclipse Public License v1.0"
       
     6  * which accompanies this distribution, and is available
       
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8  *
       
     9  * Initial Contributors:
       
    10  * Nokia Corporation - initial contribution.
       
    11  *
       
    12  * Contributors:
       
    13  *
       
    14  * Description: Telephony Multimedia Service
       
    15  *
       
    16  */
       
    17 
       
    18 #include <tms.h>
       
    19 #include "tmsutility.h"
       
    20 #include "tmsglobalroutingbodyimpl.h"
       
    21 #include "tmsglobalroutingimpl.h"
       
    22 
       
    23 using namespace TMS;
       
    24 
       
    25 TMSGlobalRoutingImpl::TMSGlobalRoutingImpl()
       
    26     {
       
    27     TRACE_PRN_FN_ENT;
       
    28     TRACE_PRN_FN_EXT;
       
    29     }
       
    30 
       
    31 TMSGlobalRoutingImpl::~TMSGlobalRoutingImpl()
       
    32     {
       
    33     TRACE_PRN_FN_ENT;
       
    34     TRACE_PRN_FN_EXT;
       
    35     }
       
    36 
       
    37 gint TMSGlobalRoutingImpl::PostConstruct()
       
    38     {
       
    39     gint ret(TMS_RESULT_INSUFFICIENT_MEMORY);
       
    40     TMSGlobalRoutingBody* bodyimpl(NULL);
       
    41     TRACE_PRN_FN_ENT;
       
    42     ret = TMSGlobalRoutingBodyImpl::Create(bodyimpl);
       
    43 
       
    44     if (ret == TMS_RESULT_SUCCESS)
       
    45         {
       
    46         this->iBody = bodyimpl;
       
    47         }
       
    48     TRACE_PRN_FN_EXT;
       
    49     return ret;
       
    50     }
       
    51 
       
    52 // TO DO stop exporting this function
       
    53 EXPORT_C gint TMSGlobalRoutingImpl::Create(TMSGlobalRouting*& globrouting)
       
    54     {
       
    55     gint ret(TMS_RESULT_INSUFFICIENT_MEMORY);
       
    56     TMSGlobalRoutingImpl *self = new TMSGlobalRoutingImpl();
       
    57 
       
    58     TRACE_PRN_FN_ENT;
       
    59     if (self)
       
    60         {
       
    61         ret = self->PostConstruct();
       
    62         if (ret != TMS_RESULT_SUCCESS)
       
    63             {
       
    64             delete self;
       
    65             self = NULL;
       
    66             }
       
    67         }
       
    68     globrouting = self;
       
    69     TRACE_PRN_FN_EXT;
       
    70     return ret;
       
    71     }
       
    72 
       
    73 EXPORT_C gint TMSGlobalRoutingImpl::Delete(TMSGlobalRouting*& globrouting)
       
    74     {
       
    75     gint ret(TMS_RESULT_SUCCESS);
       
    76     TRACE_PRN_FN_ENT;
       
    77     delete (TMSGlobalRoutingImpl*) globrouting;
       
    78     globrouting = NULL;
       
    79     TRACE_PRN_FN_EXT;
       
    80     return ret;
       
    81     }
       
    82 
       
    83 // End of file