uifw/EikStd/coctlsrc/akncommandbuttonstate.cpp
changeset 0 2f259fa3e83a
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     1 /*
       
     2 * Copyright (c) 2008 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:  Button state for CAknButton use in CEikCba.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include "akncommandbuttonstate.h"
       
    20 
       
    21 // ============================ MEMBER FUNCTIONS =============================
       
    22 
       
    23 // ---------------------------------------------------------------------------
       
    24 // CAknCommandButtonState::~CAknCommandButtonState
       
    25 // Destructor
       
    26 // ---------------------------------------------------------------------------
       
    27 //
       
    28 CAknCommandButtonState::~CAknCommandButtonState()
       
    29     {
       
    30     }
       
    31 
       
    32 
       
    33 // ---------------------------------------------------------------------------
       
    34 // CAknCommandButtonState::CAknCommandButtonState
       
    35 // Constructor
       
    36 // ---------------------------------------------------------------------------
       
    37 //
       
    38 CAknCommandButtonState::CAknCommandButtonState( const TInt aFlags,
       
    39                                                 const TInt aCommandId )
       
    40     : CAknButtonState( aFlags ), iCommandId( aCommandId )
       
    41     {
       
    42     }
       
    43 
       
    44 
       
    45 // ---------------------------------------------------------------------------
       
    46 // CAknCommandButtonState::SetCommand
       
    47 // Sets the command attached with this state.
       
    48 // ---------------------------------------------------------------------------
       
    49 //
       
    50 void CAknCommandButtonState::SetCommand( const TInt aCommandId )
       
    51     {
       
    52     iCommandId = aCommandId;
       
    53     }
       
    54 
       
    55 // ---------------------------------------------------------------------------
       
    56 // CAknCommandButtonState::CommandId
       
    57 // Gets the command attached with this state.
       
    58 // ---------------------------------------------------------------------------
       
    59 //
       
    60 TInt CAknCommandButtonState::CommandId() const
       
    61     {
       
    62     return iCommandId;
       
    63     }
       
    64 
       
    65