mmserv/tms/tmsimpl/src/tmsmodemsinkbodyimpl.cpp
changeset 0 71ca22bcf22a
child 3 4f62049db6ac
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 "tmscallproxy.h"
       
    20 #include "tmsmodemsinkbodyimpl.h"
       
    21 
       
    22 using namespace TMS;
       
    23 
       
    24 TMSModemSinkBodyImpl::TMSModemSinkBodyImpl() :
       
    25     iProxy(NULL)
       
    26     {
       
    27     }
       
    28 
       
    29 TMSModemSinkBodyImpl::~TMSModemSinkBodyImpl()
       
    30     {
       
    31     }
       
    32 
       
    33 gint TMSModemSinkBodyImpl::Create(TMSModemSinkBody*& bodyimpl)
       
    34     {
       
    35     gint ret(TMS_RESULT_INSUFFICIENT_MEMORY);
       
    36     TMSModemSinkBodyImpl* self = new TMSModemSinkBodyImpl;
       
    37     if (self)
       
    38         {
       
    39         ret = self->PostConstruct();
       
    40         if (ret != TMS_RESULT_SUCCESS)
       
    41             {
       
    42             delete self;
       
    43             self = NULL;
       
    44             }
       
    45         }
       
    46     bodyimpl = self;
       
    47     return ret;
       
    48     }
       
    49 
       
    50 gint TMSModemSinkBodyImpl::PostConstruct()
       
    51     {
       
    52     gint ret(TMS_RESULT_SUCCESS);
       
    53     return ret;
       
    54     }
       
    55 
       
    56 gint TMSModemSinkBodyImpl::GetType(TMSSinkType& sourcetype)
       
    57     {
       
    58     gint ret(TMS_RESULT_SUCCESS);
       
    59     sourcetype = TMS_SINK_MODEM;
       
    60     return ret;
       
    61     }
       
    62 
       
    63 void TMSModemSinkBodyImpl::SetProxy(TMSCallProxy* aProxy,
       
    64         gpointer /*queuehandler*/)
       
    65     {
       
    66     iProxy = aProxy;
       
    67     //((CQueueHandler*) queuehandler)->AddObserver(*this, TMS_SINK_MODEM);
       
    68     }
       
    69 
       
    70 // End of file