mmserv/tms/tmsimpl/src/tmsg729impl.cpp
changeset 0 71ca22bcf22a
child 10 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 "tmsg729bodyimpl.h"
       
    20 #include "tmsutility.h"
       
    21 #include "tmsg729formatimpl.h"
       
    22 
       
    23 using namespace TMS;
       
    24 
       
    25 TMSG729FormatImpl::TMSG729FormatImpl()
       
    26     {
       
    27     TRACE_PRN_FN_ENT;
       
    28     TRACE_PRN_FN_EXT;
       
    29     }
       
    30 
       
    31 TMSG729FormatImpl::~TMSG729FormatImpl()
       
    32     {
       
    33     TRACE_PRN_FN_ENT;
       
    34     TRACE_PRN_FN_EXT;
       
    35     }
       
    36 
       
    37 gint TMSG729FormatImpl::PostConstruct()
       
    38     {
       
    39     gint ret(TMS_RESULT_INSUFFICIENT_MEMORY);
       
    40     TMSG729FormatBody* bodyimpl(NULL);
       
    41     TRACE_PRN_FN_ENT;
       
    42     ret = TMSG729FormatBodyImpl::Create(bodyimpl);
       
    43 
       
    44     if (ret == TMS_RESULT_SUCCESS)
       
    45         {
       
    46         this->iBody = bodyimpl;
       
    47         this->iFormatBody = (TMSG729FormatBodyImpl*) bodyimpl;
       
    48         }
       
    49     TRACE_PRN_FN_EXT;
       
    50     return ret;
       
    51     }
       
    52 
       
    53 gint TMSG729FormatImpl::Create(TMSFormat*& tmsformat)
       
    54     {
       
    55     gint ret(TMS_RESULT_INSUFFICIENT_MEMORY);
       
    56     TMSG729FormatImpl *self = new TMSG729FormatImpl;
       
    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     tmsformat = self;
       
    69     TRACE_PRN_FN_EXT;
       
    70     return ret;
       
    71     }
       
    72 
       
    73 gint TMSG729FormatImpl::SetProxy(TMSGlobalContext* context,
       
    74         gpointer queuehandler)
       
    75     {
       
    76     gint ret(TMS_RESULT_SUCCESS);
       
    77     if (this->iBody)
       
    78         {
       
    79         ((TMSG729FormatBodyImpl*) this->iBody)->SetProxy(context, queuehandler);
       
    80         }
       
    81     else
       
    82         {
       
    83         ret = TMS_RESULT_UNINITIALIZED_OBJECT;
       
    84         }
       
    85     return ret;
       
    86     }
       
    87 
       
    88 // End of file