mmserv/tms/tmsimpl/src/tmsclientsourceimpl.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 "tmsclientsourcebodyimpl.h"
       
    21 #include "tmsclientsourceimpl.h"
       
    22 
       
    23 using namespace TMS;
       
    24 
       
    25 TMSClientSourceImpl::TMSClientSourceImpl()
       
    26     {
       
    27     }
       
    28 
       
    29 TMSClientSourceImpl::~TMSClientSourceImpl()
       
    30     {
       
    31     }
       
    32 
       
    33 gint TMSClientSourceImpl::PostConstruct()
       
    34     {
       
    35     gint ret(TMS_RESULT_INSUFFICIENT_MEMORY);
       
    36     TMSClientSourceBody* bodyimpl(NULL);
       
    37     TRACE_PRN_FN_ENT;
       
    38     ret = TMSClientSourceBodyImpl::Create(bodyimpl);
       
    39 
       
    40     if (ret == TMS_RESULT_SUCCESS)
       
    41         {
       
    42         this->iBody = bodyimpl;
       
    43         }
       
    44     TRACE_PRN_FN_EXT;
       
    45     return ret;
       
    46     }
       
    47 
       
    48 // TO DO stop exporting this function
       
    49 gint TMSClientSourceImpl::Create(TMSSource*& tmssource)
       
    50     {
       
    51     gint ret(TMS_RESULT_INSUFFICIENT_MEMORY);
       
    52     TMSClientSourceImpl *self = new TMSClientSourceImpl;
       
    53 
       
    54     TRACE_PRN_FN_ENT;
       
    55     if (self)
       
    56         {
       
    57         ret = self->PostConstruct();
       
    58         if (ret != TMS_RESULT_SUCCESS)
       
    59             {
       
    60             delete self;
       
    61             self = NULL;
       
    62             }
       
    63         }
       
    64     tmssource = self;
       
    65     TRACE_PRN_FN_EXT;
       
    66     return ret;
       
    67     }
       
    68 
       
    69 gint TMSClientSourceImpl::SetProxy(TMSCallProxy* aProxy, gint strmid,
       
    70         gpointer queuehandler)
       
    71     {
       
    72     gint ret = TMS_RESULT_SUCCESS;
       
    73     ((TMSClientSourceBodyImpl*) this->iBody)->SetProxy(aProxy, strmid,
       
    74             queuehandler);
       
    75     return ret;
       
    76     }
       
    77 
       
    78 // End of file