mmserv/tms/tmsimpl/src/tmsmodemsourceimpl.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 "tmsmodemsourceimpl.h"
       
    21 #include "tmsmodemsourcebodyimpl.h"
       
    22 
       
    23 using namespace TMS;
       
    24 
       
    25 TMSModemSourceImpl::TMSModemSourceImpl()
       
    26     {
       
    27     }
       
    28 
       
    29 TMSModemSourceImpl::~TMSModemSourceImpl()
       
    30     {
       
    31     }
       
    32 
       
    33 gint TMSModemSourceImpl::PostConstruct()
       
    34     {
       
    35     gint ret(TMS_RESULT_INSUFFICIENT_MEMORY);
       
    36     TMSModemSourceBody* bodyimpl(NULL);
       
    37     TRACE_PRN_FN_ENT;
       
    38     ret = TMSModemSourceBodyImpl::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 gint TMSModemSourceImpl::Create(TMSSource*& tmssource)
       
    49     {
       
    50     gint ret(TMS_RESULT_INSUFFICIENT_MEMORY);
       
    51     TRACE_PRN_FN_ENT;
       
    52     TMSModemSourceImpl *self = new TMSModemSourceImpl;
       
    53     if (self)
       
    54         {
       
    55         ret = self->PostConstruct();
       
    56         if (ret != TMS_RESULT_SUCCESS)
       
    57             {
       
    58             delete self;
       
    59             self = NULL;
       
    60             }
       
    61         }
       
    62     tmssource = self;
       
    63     TRACE_PRN_FN_EXT;
       
    64     return ret;
       
    65     }
       
    66 
       
    67 gint TMSModemSourceImpl::SetProxy(TMSCallProxy* /*aProxy*/,
       
    68         gpointer /*queuehandler*/)
       
    69     {
       
    70     gint ret = TMS_RESULT_SUCCESS;
       
    71 //   ((TMSModemSourceBodyImpl*) this->iBody)->SetProxy(aProxy, queuehandler);
       
    72     return ret;
       
    73     }
       
    74 
       
    75 // End of file