convergedcallengine/callprovider/src/cccpcallparameters.cpp
changeset 0 ff3b6d0fd310
equal deleted inserted replaced
-1:000000000000 0:ff3b6d0fd310
       
     1 /*
       
     2 * Copyright (c) 2005-2006 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:  Methods for call paramsclass.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // INCLUDE FILES
       
    20 #include <e32base.h>
       
    21 #include <mccpcall.h>
       
    22 #include <cccpcallparameters.h>
       
    23 
       
    24 
       
    25 
       
    26 
       
    27 // ============================ MEMBER FUNCTIONS ===============================
       
    28 
       
    29 
       
    30 // -----------------------------------------------------------------------------
       
    31 // Ccallprovider::NewL
       
    32 // Two-phased constructor.
       
    33 // -----------------------------------------------------------------------------
       
    34 //
       
    35 EXPORT_C CCCPCallParameters* CCCPCallParameters::NewL()
       
    36     {
       
    37     CCCPCallParameters* self = new(ELeave)CCCPCallParameters();
       
    38     CleanupStack::PushL( self );
       
    39     self->ConstructL();
       
    40     CleanupStack::Pop( self );
       
    41     return self;
       
    42     }
       
    43 
       
    44 // -----------------------------------------------------------------------------
       
    45 // Ccallprovider::NewLC
       
    46 // Two-phased constructor.
       
    47 // -----------------------------------------------------------------------------
       
    48 //
       
    49 EXPORT_C CCCPCallParameters::~CCCPCallParameters()
       
    50     {
       
    51     }
       
    52 
       
    53 CCCPCallParameters* CCCPCallParameters::CloneL() const
       
    54     {
       
    55     CCCPCallParameters* clone = CCCPCallParameters::NewL();
       
    56     clone->SetServiceId( iServiceId );
       
    57     clone->SetCallType( iCallType );
       
    58     return clone;    
       
    59     }
       
    60 
       
    61 EXPORT_C void CCCPCallParameters::SetServiceId(TUint32 aServiceId)
       
    62     {
       
    63     iServiceId = aServiceId;
       
    64     }
       
    65 
       
    66 
       
    67 EXPORT_C TUint32 CCCPCallParameters::ServiceId() const
       
    68     {
       
    69     return iServiceId;
       
    70     }
       
    71 
       
    72 
       
    73 EXPORT_C void CCCPCallParameters::SetCallType(CCPCall::TCallType aCallType)
       
    74     {
       
    75     iCallType = aCallType;
       
    76     }
       
    77 
       
    78 
       
    79 EXPORT_C CCPCall::TCallType CCCPCallParameters::CallType() const
       
    80     {
       
    81     return iCallType;
       
    82     }
       
    83 
       
    84 EXPORT_C CCCPCallParameters::CCCPCallParameters()
       
    85     {
       
    86     }
       
    87 
       
    88 
       
    89 EXPORT_C void CCCPCallParameters::ConstructL()
       
    90     {
       
    91     }
       
    92