mmserv/tms/tmsimpl/src/tmsg711impl.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 "tmsutility.h"
       
    20 #include "tmsg711bodyimpl.h"
       
    21 #include "tmsg711formatimpl.h"
       
    22 
       
    23 using namespace TMS;
       
    24 
       
    25 TMSG711FormatImpl::TMSG711FormatImpl()
       
    26     {
       
    27     TRACE_PRN_FN_ENT;
       
    28     TRACE_PRN_FN_EXT;
       
    29     }
       
    30 
       
    31 TMSG711FormatImpl::~TMSG711FormatImpl()
       
    32     {
       
    33     TRACE_PRN_FN_ENT;
       
    34     TRACE_PRN_FN_EXT;
       
    35     }
       
    36 
       
    37 gint TMSG711FormatImpl::PostConstruct()
       
    38     {
       
    39     gint ret(TMS_RESULT_INSUFFICIENT_MEMORY);
       
    40     TMSG711FormatBody* bodyimpl(NULL);
       
    41     TRACE_PRN_FN_ENT;
       
    42     ret = TMSG711FormatBodyImpl::Create(bodyimpl);
       
    43 
       
    44     if (ret == TMS_RESULT_SUCCESS)
       
    45         {
       
    46         this->iBody = bodyimpl;
       
    47         this->iFormatBody = (TMSG711FormatBodyImpl*) bodyimpl;
       
    48         }
       
    49     TRACE_PRN_FN_EXT;
       
    50     return ret;
       
    51     }
       
    52 
       
    53 gint TMSG711FormatImpl::Create(TMSFormat*& tmsformat)
       
    54     {
       
    55     gint ret(TMS_RESULT_INSUFFICIENT_MEMORY);
       
    56     TMSG711FormatImpl *self = new TMSG711FormatImpl;
       
    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 TMSG711FormatImpl::SetProxy(TMSGlobalContext* context,
       
    74         gpointer queuehandler)
       
    75     {
       
    76     gint ret(TMS_RESULT_SUCCESS);
       
    77     if (this->iBody)
       
    78         {
       
    79         ((TMSG711FormatBodyImpl*) 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