phoneapp/phoneuiutils/src/tphonecmdparamsfidata.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 TPhoneCmdParamSfiData class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // INCLUDE FILES
       
    20 #include "tphonecmdparamsfidata.h"   
       
    21 
       
    22 // ================= MEMBER FUNCTIONS =======================
       
    23 
       
    24 // -----------------------------------------------------------------------------
       
    25 // TPhoneCmdParamSfiData::TPhoneCmdParamSfiData
       
    26 // C++ default constructor can NOT contain any code, that
       
    27 // might leave.
       
    28 // -----------------------------------------------------------------------------
       
    29 //
       
    30 EXPORT_C TPhoneCmdParamSfiData::TPhoneCmdParamSfiData() :
       
    31     TPhoneCommandParam(),
       
    32     iNumber( KNullDesC ),
       
    33     iName( KNullDesC )
       
    34     {
       
    35     iParamId = EPhoneParamIdSfiData;
       
    36     }
       
    37 
       
    38 // ---------------------------------------------------------
       
    39 // TPhoneCmdParamSfiData::SetLabelText
       
    40 // Sets the call header label text
       
    41 // (other items were commented in a header).
       
    42 // ---------------------------------------------------------
       
    43 //
       
    44 EXPORT_C void TPhoneCmdParamSfiData::SetNumber( 
       
    45    const TDesC& aNumber )
       
    46    {
       
    47    iNumber.Set( aNumber );
       
    48    }
       
    49 
       
    50 // ---------------------------------------------------------
       
    51 // TPhoneCmdParamSfiData::SetShortLabelText
       
    52 // Sets the call header short label text
       
    53 // (other items were commented in a header).
       
    54 // ---------------------------------------------------------
       
    55 //
       
    56 EXPORT_C void TPhoneCmdParamSfiData::SetName( 
       
    57    const TDesC& aName )
       
    58    {
       
    59    iName.Set( aName );
       
    60    }
       
    61 
       
    62 // ---------------------------------------------------------
       
    63 // TPhoneCmdParamSfiData::LabelText
       
    64 // Returns the call header label text
       
    65 // (other items were commented in a header).
       
    66 // ---------------------------------------------------------
       
    67 //
       
    68 EXPORT_C const TDesC& TPhoneCmdParamSfiData::Number() const
       
    69    {
       
    70    return iNumber;
       
    71    }
       
    72 
       
    73 // ---------------------------------------------------------
       
    74 // TPhoneCmdParamSfiData::ShortLabelText
       
    75 // Returns the call header short label text
       
    76 // (other items were commented in a header).
       
    77 // ---------------------------------------------------------
       
    78 //
       
    79 EXPORT_C const TDesC& TPhoneCmdParamSfiData::Name() const
       
    80    {
       
    81    return iName;
       
    82    }
       
    83 
       
    84 //  End of File