phoneapp/phoneuiutils/src/tphonecmdparaminteger.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 TPhoneCmdParamInteger class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // INCLUDE FILES
       
    20 #include "tphonecmdparaminteger.h"    
       
    21 
       
    22 // ================= MEMBER FUNCTIONS =======================
       
    23 
       
    24 // -----------------------------------------------------------------------------
       
    25 // TPhoneCmdParamInteger::TPhoneCmdParamInteger
       
    26 // C++ default constructor can NOT contain any code, that
       
    27 // might leave.
       
    28 // -----------------------------------------------------------------------------
       
    29 //
       
    30 EXPORT_C TPhoneCmdParamInteger::TPhoneCmdParamInteger():
       
    31     TPhoneCommandParam(),
       
    32     iInteger( 0 )
       
    33     {
       
    34     iParamId = EPhoneParamIdInteger;
       
    35     }
       
    36 
       
    37 // ---------------------------------------------------------
       
    38 // TPhoneCmdParamInteger::SetInteger
       
    39 // Sets the integer
       
    40 // (other items were commented in a header).
       
    41 // ---------------------------------------------------------
       
    42 //
       
    43 EXPORT_C void TPhoneCmdParamInteger::SetInteger( TInt aInteger )
       
    44    {
       
    45    iInteger = aInteger;   
       
    46    }
       
    47 
       
    48 // ---------------------------------------------------------
       
    49 // TPhoneCmdParamInteger::Integer
       
    50 // Returns the integer 
       
    51 // (other items were commented in a header).
       
    52 // ---------------------------------------------------------
       
    53 //
       
    54 EXPORT_C TInt TPhoneCmdParamInteger::Integer() const
       
    55    {
       
    56    return iInteger;
       
    57    }
       
    58 
       
    59 //  End of File