phoneapp/phoneuiutils/src/tphonecmdparamcallstatedata.cpp
changeset 0 5f000ab63145
equal deleted inserted replaced
-1:000000000000 0:5f000ab63145
       
     1 /*
       
     2 * Copyright (c) 2005 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: Implementation of TPhoneCmdParamCallStateData class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // INCLUDE FILES
       
    20 #include "tphonecmdparamcallstatedata.h"   
       
    21 
       
    22 // ================= MEMBER FUNCTIONS =======================
       
    23 
       
    24 // -----------------------------------------------------------------------------
       
    25 // TPhoneCmdParamCallStateData::TPhoneCmdParamCallStateData
       
    26 // C++ default constructor can NOT contain any code, that
       
    27 // might leave.
       
    28 // -----------------------------------------------------------------------------
       
    29 //
       
    30 EXPORT_C TPhoneCmdParamCallStateData::TPhoneCmdParamCallStateData() :
       
    31     TPhoneCommandParam(),
       
    32     iCallState( 0 ),
       
    33     iCallId( KErrNotFound )
       
    34     {
       
    35     iParamId = EPhoneParamIdCallStateData;
       
    36     }
       
    37 
       
    38 
       
    39 // ---------------------------------------------------------
       
    40 // TPhoneCmdParamCallStateData::SetCallState
       
    41 // Sets the call header call state
       
    42 // (other items were commented in a header).
       
    43 // ---------------------------------------------------------
       
    44 //
       
    45 EXPORT_C void TPhoneCmdParamCallStateData::SetCallState( TInt aCallState )
       
    46    {
       
    47    iCallState = aCallState;
       
    48    }
       
    49 
       
    50 // ---------------------------------------------------------
       
    51 // TPhoneCmdParamCallStateData::CallState
       
    52 // Returns the call header call state
       
    53 // (other items were commented in a header).
       
    54 // ---------------------------------------------------------
       
    55 //
       
    56 EXPORT_C TInt TPhoneCmdParamCallStateData::CallState() const
       
    57    {
       
    58    return iCallState;
       
    59    }
       
    60 
       
    61 // ---------------------------------------------------------
       
    62 // TPhoneCmdParamCallStateData::SetCallState
       
    63 // Sets the call id
       
    64 // (other items were commented in a header).
       
    65 // ---------------------------------------------------------
       
    66 //
       
    67 EXPORT_C void TPhoneCmdParamCallStateData::SetCallId( TInt aCallId )
       
    68    {
       
    69    iCallId = aCallId;
       
    70    }
       
    71 
       
    72 // ---------------------------------------------------------
       
    73 // TPhoneCmdParamCallStateData::CallId
       
    74 // Returns the call Id
       
    75 // (other items were commented in a header).
       
    76 // ---------------------------------------------------------
       
    77 //
       
    78 EXPORT_C TInt TPhoneCmdParamCallStateData::CallId() const
       
    79    {
       
    80    return iCallId;
       
    81    }
       
    82    
       
    83 //  End of File